Interface IDocumentManager

  • All Known Implementing Classes:
    DocumentManager

    public interface IDocumentManager
    • Method Detail

      • get

        DocumentConfig get​(SessionConfig sessionConfig,
                           String documentId,
                           ITransaction transaction)
                    throws PortalException
        Returns the DocumentConfig for a document with the given id.
        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

        Collection<String> getFolderIdsByParentAndName​(SessionConfig sessionConfig,
                                                       String serviceInstanceId,
                                                       String parentFolderId,
                                                       String folderName,
                                                       ITransaction transaction)
                                                throws PortalException
        Returns the ids of the folders child of the given parent and with the given name.
        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

        String getFolderPath​(SessionConfig sessionConfig,
                             String folderId,
                             ITransaction transaction)
                      throws PortalException
        Returns the virtual path to the folder.
        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

        void moveDocument​(SessionConfig sessionConfig,
                          String documentId,
                          String destFolderId,
                          ITransaction transaction)
                   throws PortalException
        Moves a document (or a folder) to another folder.
        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