Package eu.xenit.alfred.api.filefolder
Interface IFileFolderService
public interface IFileFolderService
Service for operations related to files and folders.
-
Method Summary
Modifier and TypeMethodDescriptioncreateFolder(NodeRef parent, String folderName) Create a folder within a given parent node with a given name.voiddeleteFolder(NodeRef folderNodeRef) Deletes a folder with a specific noderef.booleanexistsFolder(NodeRef parent, String name) Checks if a folder exists.getChildNodeRef(NodeRef parent, String name) Get NodeRef of node with a given parent and a given name.getChildNodeRef(NodeRef parent, String[] path) Get NodeRef of node with a given parent and a given relative path.Get the company home folder of the alfresco.Get the data dictionary folder of the alfrescogetRootFolder(StoreRef storeRef)
-
Method Details
-
getDataDictionary
NodeRef getDataDictionary()Get the data dictionary folder of the alfresco- Returns:
- The noderef of the data dictionary folder
-
getPath
- Parameters:
nodeRef- The noderef of which the path is requested.- Returns:
- The path (from the root node in alfresco) of the node.
-
getRootFolder
- Parameters:
storeRef- The store of which the root folder is requested.- Returns:
- The root folder of the storeRef.
-
getCompanyHome
NodeRef getCompanyHome()Get the company home folder of the alfresco.- Returns:
- The noderef of the company home folder.
-
existsFolder
Checks if a folder exists.- Parameters:
parent- The parent in which the folder could be.name- The name of the folder.- Returns:
- Whether a folder with the given name exists in the given parent folder.
-
getChildNodeRef
Get NodeRef of node with a given parent and a given name.- Parameters:
parent- The parent of the requested node.name- The name of the requested node.- Returns:
- The NodeRef of node with a given parent and a given name.
-
getChildNodeRef
Get NodeRef of node with a given parent and a given relative path.- Parameters:
parent- The parent of the requested node.path- The path from the parent node to the requested node.- Returns:
- The NodeRef of node with a given parent and a relative path from that parent node.
-
createFolder
Create a folder within a given parent node with a given name.- Parameters:
parent- The folder in which to create a new folder.folderName- The name of the new folder.- Returns:
- The Noderef of the newly created folder.
-
deleteFolder
Deletes a folder with a specific noderef.- Parameters:
folderNodeRef- The noderef of the folder that is requested to be deleted.
-