Package com.uc4.communication.requests
Class FolderTree
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.FolderTree
-
public class FolderTree extends XMLRequest
Returns the folder structure of the UC4 client.
-
-
Constructor Summary
Constructors Constructor Description FolderTree()
-
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.IFoldergetFavoritesFolder()Returns anIFolderobject which represents the "Favorites Folder".IFoldergetFolder(java.lang.String path)Returns the folder for the given path ornullif the folder was not found.IFoldergetFolderByID(java.lang.String id)Returns an folder object with the specified ID ornullif not found.IFoldergetNoFolder()Returns anIFolderobject which represents the "No Folder".IFoldergetRecentObjects()Returns anIFolderobject which represents the "Recent Objects" folder.IFoldergetRecycleBin()Returns anIFolderobject which represents the "Recycle Bin" folder.protected java.lang.StringgetSrc()Returns the request source.IFoldergetTransportFolder()Returns anIFolderobject which represents the transport case folder.IFoldergetVersionManagement()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 booleanisAllowedInClientZero()This method is used internally.IFolderroot()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
-
-
-
-
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
-
handleContent
protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)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
public IFolder getFolder(java.lang.String path)
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
public IFolder 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
public IFolder 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
public IFolder 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
public IFolder 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
public IFolder 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
public IFolder getFavoritesFolder()
Returns anIFolderobject which represents the "Favorites Folder".- Returns:
- IFolder instance
-
root
public IFolder root()
Returns the root folder of the client.- Returns:
- Root folder
-
getFolderByID
public IFolder getFolderByID(java.lang.String id)
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
-
-