Package com.logicaldoc.core.automation
Class FolderTool
- java.lang.Object
-
- com.logicaldoc.core.automation.FolderTool
-
public class FolderTool extends Object
Utility methods to handle folders from within the Automation- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description FolderTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
displayUrl(long tenantId, long folderId)
Prints the URL to display the folder inside the User InterfaceString
displayUrl(Folder folder)
Prints the URL to display the folder inside the User InterfaceString
displayUrl(FolderHistory history)
Prints the URL to display the folder inside the User InterfaceFolder
findByPath(String path)
Finds the folder by it's pathFolder
findByPath(String path, Long tenantId)
Finds the folder by it's pathString
getPath(Long folderId)
Calculates the full path of a folder
-
-
-
Method Detail
-
displayUrl
public String displayUrl(long tenantId, long folderId)
Prints the URL to display the folder inside the User Interface- Parameters:
tenantId
- identifier of the tenantfolderId
- identifier of the folder- Returns:
- the display URL
-
displayUrl
public String displayUrl(Folder folder)
Prints the URL to display the folder inside the User Interface- Parameters:
folder
- the folder to display- Returns:
- the display URL
-
displayUrl
public String displayUrl(FolderHistory history)
Prints the URL to display the folder inside the User Interface- Parameters:
history
- event from which to get the folder's to display- Returns:
- the display URL
-
getPath
public String getPath(Long folderId)
Calculates the full path of a folder- Parameters:
folderId
- identifier of the folder- Returns:
- the path
-
findByPath
public Folder findByPath(String path)
Finds the folder by it's path- Parameters:
path
- the path to process- Returns:
- the found folder
-
-