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 the path to identify a root and then a folder-name path to identify a folder.
Since:
3.2
Author:
Derek Hulley
  • Constructor Details

    • RepositoryFolderConfigBean

      public RepositoryFolderConfigBean()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFolderPath

      public String getFolderPath()
      Returns:
      Returns the string representation of the folder path
    • setFolderPath

      public void setFolderPath(String folderPath)
      Set the folder name path relative to the path.
      Parameters:
      folderPath - a folder-name path using the '/' path separator e.g. 'IMAP HOME/MAIL-1'
    • getFolderPath

      public NodeRef getFolderPath(NamespaceService namespaceService, NodeService nodeService, SearchService searchService, FileFolderService fileFolderService)
      Helper method to find the folder path referenced by this bean. The path to 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 NodeRef getFolderPathOrNull(NamespaceService namespaceService, NodeService nodeService, SearchService searchService, FileFolderService fileFolderService)
      Helper method to find the folder path referenced by this bean. The path to 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 NodeRef getOrCreateFolderPath(NamespaceService namespaceService, NodeService nodeService, SearchService searchService, FileFolderService fileFolderService)
      Helper method to find or create the folder path referenced by this bean. The path to 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