public class GetReplaceList extends XMLRequest
Modifier and Type | Class and Description |
---|---|
static class |
GetReplaceList.ReplaceListItem
Represents an item in the replace list.
|
Constructor and Description |
---|
GetReplaceList(RenameObject rename)
Creates a new
GetReplaceList request using the specified RenameObject instance. |
GetReplaceList(UC4ObjectName obj)
Creates a new
GetReplaceList request to replace
the specified object. |
Modifier and Type | Method and Description |
---|---|
void |
appendRows(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element result,
int startFrom,
int replaceMax)
Deprecated.
Do not use it. Internal only.
|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
java.lang.String |
getCountDescription()
Returns the description of the item count.
|
UC4ObjectName |
getObjName()
Returns the name of the AE Object.
|
java.lang.String |
getPlatform()
Returns the information about the platform.
|
protected org.w3c.dom.Element |
getReplaceElement() |
java.util.List<GetReplaceList.ReplaceListItem> |
getReplaceList()
Returns the list of items to replace.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
java.lang.String |
getType()
Returns the type of the AE Object.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
boolean |
hasMore()
There is more to replace.
|
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
int |
size()
Returns the number of items.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public GetReplaceList(RenameObject rename)
GetReplaceList
request using the specified RenameObject
instance.
The RenameObject
instance must already be executed and its return value
must be message box with the number 4005704.
This message number means that the object which should renamed is used in other objects.
The newly created instance of GetReplaceList
can be used to get the list of these objects.rename
- Already executed RenameObject requestpublic GetReplaceList(UC4ObjectName obj)
GetReplaceList
request to replace
the specified object. The returned list does not actually replace
the object. this is done using the request ReplaceObject
obj
- Name of the object to replaceprotected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
public java.lang.String getPlatform()
public java.util.List<GetReplaceList.ReplaceListItem> getReplaceList()
protected org.w3c.dom.Element getReplaceElement()
public int size()
public java.lang.String getCountDescription()
@Deprecated public void appendRows(com.uc4.util.XMLDocument doc, org.w3c.dom.Element result, int startFrom, int replaceMax)
doc
- XML documentresult
- DOM element (not described here)startFrom
- See AWI sourcereplaceMax
- See AWI sourcepublic UC4ObjectName getObjName()
public java.lang.String getType()
public boolean hasMore()
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwise