Package com.uc4.communication.requests
Class FolderTree
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.FolderTree
Returns the folder structure of the UC4 client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.Returns anIFolderobject which represents the "Favorites Folder".Returns the folder for the given path ornullif the folder was not found.getFolderByID(String id) Returns an folder object with the specified ID ornullif not found.Returns anIFolderobject which represents the "No Folder".Returns anIFolderobject which represents the "Recent Objects" folder.Returns anIFolderobject which represents the "Recycle Bin" folder.protected StringgetSrc()Returns the request source.Returns anIFolderobject which represents the transport case folder.Returns anIFolderobject which represents the "Version Management" folder.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.protected booleanThis method is used internally.root()Returns the root folder of the client.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, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
Constructor Details
-
FolderTree
public FolderTree()
-
-
Method Details
-
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, 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
-
handleContent
Description copied from class:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContentin classXMLRequest- Parameters:
doc- XML Documentsession- Info about the user session
-
getFolder
Returns the folder for the given path ornullif the folder was not found. The folders are separated by forward slashes.Example:
/FOLDER1/FOLDER2 ... returns FOLDER2. FOLDER1 must be directly under the root folder.- Parameters:
path- path- Returns:
- folder or
nullif not found
-
getTransportFolder
Returns anIFolderobject which represents the transport case folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
nullif the priviledge is not held
-
getRecentObjects
Returns anIFolderobject which represents the "Recent Objects" folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder instance
-
getRecycleBin
Returns anIFolderobject which represents the "Recycle Bin" folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
nullif the priviledge is not held
-
getVersionManagement
Returns anIFolderobject which represents the "Version Management" folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
nullif the priviledge is not held
-
getNoFolder
Returns anIFolderobject which represents the "No Folder". The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
nullif the priviledge is not held
-
getFavoritesFolder
Returns anIFolderobject which represents the "Favorites Folder".- Returns:
- IFolder instance
-
root
Returns the root folder of the client.- Returns:
- Root folder
-
getFolderByID
Returns an folder object with the specified ID ornullif not found.- Parameters:
id- ID of the folder- Returns:
- folder object or null
-
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
-