Package com.uc4.communication.requests
Class DeleteObject
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.DeleteObject
-
public class DeleteObject extends XMLRequest
Deletes an UC4 object.
-
-
Constructor Summary
Constructors Constructor Description DeleteObject(IFolder folder)This constructor is used to delete FOLD objects in UC4.DeleteObject(IFolder[] folders)This constructor is used to delete multiple FOLD objects in AE.DeleteObject(UserListItem user)Constructs aDeleteObjectto remove a user based on the user list in the system overview.DeleteObject(UserListItem[] users)Constructs aDeleteObjectto remove multiple users.DeleteObject(UC4ObjectName objectName)Deletes the specified object.DeleteObject(UC4ObjectName[] names)Deletes UC4 Objects with the specified names.DeleteObject(UC4ObjectName[] names, IFolder[] folders)This constructor is used to delete multiple FOLD and UC4Object objects in AE.DeleteObject(UC4ObjectName objectName, IFolder folder)Constructs aDeleteObjectusing the specified UC4 object name.DeleteObject(java.lang.String[] userIds)Delete all the objects with the matching ids.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Creates the XML Document for the request.protected java.lang.StringgetSrc()Returns the request source.protected booleanisAllowedInClientZero()This method is used internally.-
Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleContent, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
-
-
-
Constructor Detail
-
DeleteObject
public DeleteObject(UC4ObjectName objectName, IFolder folder)
Constructs aDeleteObjectusing the specified UC4 object name.- Parameters:
objectName- Name of the UC4 Objectfolder- Folder
-
DeleteObject
public DeleteObject(UserListItem user)
Constructs aDeleteObjectto remove a user based on the user list in the system overview.- Parameters:
user- User in the system overview
-
DeleteObject
public DeleteObject(UserListItem[] users)
Constructs aDeleteObjectto remove multiple users.- Parameters:
users- Users which should be deleted
-
DeleteObject
public DeleteObject(java.lang.String[] userIds)
Delete all the objects with the matching ids.- Parameters:
userIds- Ids of the objects to be removed.
-
DeleteObject
public DeleteObject(UC4ObjectName[] names)
Deletes UC4 Objects with the specified names.- Parameters:
names- Array of names
-
DeleteObject
public DeleteObject(UC4ObjectName objectName)
Deletes the specified object.- Parameters:
objectName- Name of the UC4 Object
-
DeleteObject
public DeleteObject(IFolder folder)
This constructor is used to delete FOLD objects in UC4. Folder cannot be deleted using the constructorDeleteObject(UC4ObjectName objectName, IFolder folder)because a folder name is not unique in an UC4 client. For example a folder can contain a folder with the same name as sub folder.- Parameters:
folder- Folder which should be deleted
-
DeleteObject
public DeleteObject(IFolder[] folders)
This constructor is used to delete multiple FOLD objects in AE.- Parameters:
folders- Array of Folder which should be deleted.
-
DeleteObject
public DeleteObject(UC4ObjectName[] names, IFolder[] folders)
This constructor is used to delete multiple FOLD and UC4Object objects in AE.- Parameters:
names- Array of Names which should to be deletedfolders- Array of Folder which should be deleted
-
-
Method Detail
-
getSrc
protected java.lang.String getSrc()
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin classXMLRequest- Parameters:
doc- Document, used to create new Elementsrequest- Request Element - classes append information to this request elementsessionInfo- Information about the session
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()
Description copied from class:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-
-