Class DocumentManager

  • All Implemented Interfaces:
    IDocumentManager

    public class DocumentManager
    extends java.lang.Object
    implements IDocumentManager
    Since:
    4.0.0
    Version:
    $Revision: 19963 $ $Date: 2017-02-21 19:28:29 -0300 (Tue, 21 Feb 2017) $
    • Constructor Detail

      • DocumentManager

        public DocumentManager()
    • Method Detail

      • get

        public DocumentConfig get​(SessionConfig sessionConfig,
                                  java.lang.String documentId,
                                  ITransaction transaction)
                           throws PortalException
        Description copied from interface: IDocumentManager
        Returns the DocumentConfig for a document with the given id.
        Specified by:
        get in interface IDocumentManager
        Parameters:
        sessionConfig - identifier for the session.
        documentId - the id of the document.
        transaction - the transaction for persistence access.
        Returns:
        the DocumentConfig for the document, or null if it is not found.
        Throws:
        PortalException
      • getFolderIdsByParentAndName

        public java.util.Collection<java.lang.String> getFolderIdsByParentAndName​(SessionConfig sessionConfig,
                                                                                  java.lang.String serviceInstanceId,
                                                                                  java.lang.String parentFolderId,
                                                                                  java.lang.String folderName,
                                                                                  ITransaction transaction)
                                                                           throws PortalException
        Description copied from interface: IDocumentManager
        Returns the ids of the folders child of the given parent and with the given name.
        Specified by:
        getFolderIdsByParentAndName in interface IDocumentManager
        Parameters:
        sessionConfig - identifier for the session.
        serviceInstanceId - the content's service instance id.
        parentFolderId - the parent folder's id. Null if the folder must not have parent.
        folderName - the folder name.
        transaction - the transaction for persistence access.
        Returns:
        Throws:
        PortalException
      • getFolderPath

        public java.lang.String getFolderPath​(SessionConfig sessionConfig,
                                              java.lang.String folderId,
                                              ITransaction transaction)
                                       throws PortalException
        Description copied from interface: IDocumentManager
        Returns the virtual path to the folder.
        Specified by:
        getFolderPath in interface IDocumentManager
        Parameters:
        sessionConfig - identifier for the session.
        folderId - the id of the folder.
        transaction - the transaction for persistence access.
        Returns:
        the virtual path to the folder.
        Throws:
        PortalException
      • moveDocument

        public void moveDocument​(SessionConfig sessionConfig,
                                 java.lang.String documentId,
                                 java.lang.String destFolderId,
                                 ITransaction transaction)
                          throws PortalException
        Description copied from interface: IDocumentManager
        Moves a document (or a folder) to another folder.
        Specified by:
        moveDocument in interface IDocumentManager
        Parameters:
        sessionConfig - identifier for the session.
        documentId - the document's id.
        destFolderId - the id of the destination folder.
        transaction - the transaction for persistence access.
        Throws:
        PortalException