public class ActivateObject extends XMLRequest
Constructor and Description |
---|
ActivateObject(java.util.List<UC4ObjectName> names)
Toggles the active state of the given objects.
|
ActivateObject(UC4ObjectName name)
Toggles the active state of the given object.
|
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.
|
void |
setActive(boolean active)
Sets the active state exclusively (no toggle) to the state which is passed.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleContent, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public ActivateObject(UC4ObjectName name)
name
- name of object which state should be toggled.public ActivateObject(java.util.List<UC4ObjectName> names)
names
- names of objects which state should be toggled.public void setActive(boolean active)
active
- sets the object(s) to active if true.protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
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
otherwise