public class ReplaceObject extends XMLRequest
Constructor and Description |
---|
ReplaceObject(GetReplaceList list)
This request is used to replace the use of all selected objects
provided by the
GetReplaceList request. |
ReplaceObject(GetReplaceList list,
java.util.List<java.lang.String> itemsToReplace)
This request is used to replace the use of selected objects
|
ReplaceObject(GetReplaceList list,
UC4ObjectName name,
int replaceMax)
Replaces an UC4 Object.
|
ReplaceObject(UC4ObjectName oldName,
java.lang.String type,
UC4ObjectName newName,
SearchResultItem... results)
Replaces an UC4 Object based on a search result.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleContent, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public ReplaceObject(GetReplaceList list)
GetReplaceList
request.list
- Replace listpublic ReplaceObject(GetReplaceList list, java.util.List<java.lang.String> itemsToReplace)
list
- Replace listitemsToReplace
- ID of itemspublic ReplaceObject(GetReplaceList list, UC4ObjectName name, int replaceMax)
list
- List of occurrencename
- Name of the replacementreplaceMax
- Maximum number of replaces at oncepublic ReplaceObject(UC4ObjectName oldName, java.lang.String type, UC4ObjectName newName, SearchResultItem... results)
oldName
- Name of the object which should be replacedtype
- Object type, for example JOBSnewName
- Object name of the replacementresults
- Items to replace based on a search result (search for use)protected 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 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
otherwiseprotected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest