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 void
createRequest
(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.Returns anIFolder
object which represents the "Favorites Folder".Returns the folder for the given path ornull
if the folder was not found.getFolderByID
(String id) Returns an folder object with the specified ID ornull
if not found.Returns anIFolder
object which represents the "No Folder".Returns anIFolder
object which represents the "Recent Objects" folder.Returns anIFolder
object which represents the "Recycle Bin" folder.protected String
getSrc()
Returns the request source.Returns anIFolder
object which represents the transport case folder.Returns anIFolder
object which represents the "Version Management" folder.protected void
handleContent
(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.protected boolean
This 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:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in 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:XMLRequest
Sub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContent
in classXMLRequest
- Parameters:
doc
- XML Documentsession
- Info about the user session
-
getFolder
Returns the folder for the given path ornull
if 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
null
if not found
-
getTransportFolder
Returns anIFolder
object which represents the transport case folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
null
if the priviledge is not held
-
getRecentObjects
Returns anIFolder
object which represents the "Recent Objects" folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder instance
-
getRecycleBin
Returns anIFolder
object which represents the "Recycle Bin" folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
null
if the priviledge is not held
-
getVersionManagement
Returns anIFolder
object which represents the "Version Management" folder. The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
null
if the priviledge is not held
-
getNoFolder
Returns anIFolder
object which represents the "No Folder". The returned instance can be used to list the content of this folder.- Returns:
- IFolder or
null
if the priviledge is not held
-
getFavoritesFolder
Returns anIFolder
object 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 ornull
if not found.- Parameters:
id
- ID of the folder- Returns:
- folder object or null
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()Description copied from class:XMLRequest
This method is used internally. Tests if thisXMLRequest
is allowed in client 0. The default implementation returnsfalse
, subclasses may override.- Overrides:
isAllowedInClientZero
in classXMLRequest
- Returns:
true
if this request is allowed in client 0,false
otherwise
-