Package org.alfresco.util.config
Class RepositoryFolderConfigBean
- java.lang.Object
-
- org.alfresco.util.config.RepositoryPathConfigBean
-
- org.alfresco.util.config.RepositoryFolderConfigBean
-
- Direct Known Subclasses:
ImapConfigMountPointsBean
public class RepositoryFolderConfigBean extends RepositoryPathConfigBean
Composite property bean to identify a folder in the repository. This uses thepathto identify a root and then a folder-name path to identify a folder.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description RepositoryFolderConfigBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFolderPath()org.alfresco.service.cmr.repository.NodeRefgetFolderPath(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, FileFolderService fileFolderService)Helper method to find the folder path referenced by this bean.org.alfresco.service.cmr.repository.NodeRefgetFolderPathOrNull(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, FileFolderService fileFolderService)Helper method to find the folder path referenced by this bean.org.alfresco.service.cmr.repository.NodeRefgetOrCreateFolderPath(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, FileFolderService fileFolderService)Helper method to find or create the folder path referenced by this bean.voidsetFolderPath(java.lang.String folderPath)Set the folder name path relative to thepath.java.lang.StringtoString()-
Methods inherited from class org.alfresco.util.config.RepositoryPathConfigBean
getRootPath, getStore, getStoreRef, resolveNodePath, setRootPath, setStore
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFolderPath
public java.lang.String getFolderPath()
- Returns:
- Returns the string representation of the folder path
-
setFolderPath
public void setFolderPath(java.lang.String folderPath)
Set the folder name path relative to thepath.- Parameters:
folderPath- a folder-name path using the '/' path separator e.g. 'IMAP HOME/MAIL-1'
-
getFolderPath
public org.alfresco.service.cmr.repository.NodeRef getFolderPath(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, FileFolderService fileFolderService)Helper method to find the folder path referenced by this bean. Thepathto the start of the folder path must exist.Authentication and transactions are the client's responsibility.
- Returns:
- Returns an existing folder reference
- Throws:
org.alfresco.error.AlfrescoRuntimeException- if path cannot be resolved or found node is not a folder
-
getFolderPathOrNull
public org.alfresco.service.cmr.repository.NodeRef getFolderPathOrNull(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, FileFolderService fileFolderService)Helper method to find the folder path referenced by this bean. Thepathto the start of the folder path must exist.Authentication and transactions are the client's responsibility.
- Returns:
- Returns an existing folder reference or null
-
getOrCreateFolderPath
public org.alfresco.service.cmr.repository.NodeRef getOrCreateFolderPath(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, FileFolderService fileFolderService)Helper method to find or create the folder path referenced by this bean. Thepathto the start of the folder path must exist. The folder path will be created, if required.Authentication and transactions are the client's responsibility.
- Returns:
- Returns an existing or new folder reference
-
-