Class ContentRepositoryManager

java.lang.Object
com.primavera.integration.client.bo.cr.ContentRepositoryManager

public class ContentRepositoryManager extends Object
Helper class containing methods to read content repository related information from UCM (Universal Content Management).
  • Constructor Details

    • ContentRepositoryManager

      public ContentRepositoryManager(Session session)
  • Method Details

    • getActivityRecentUCMDocumentVersions

      public DocumentDetail[] getActivityRecentUCMDocumentVersions(ObjectId objId) throws Exception
      Gets the most recent version of each UCM document associated with an Activity.
      Parameters:
      objId - ObjectId of an Activity
      Returns:
      the most recent versions of UCM documents.
      Throws:
      Exception - if a problem occurred.
    • getUCMDocument

      public byte[] getUCMDocument(String uuid, String version) throws Exception
      Gets the byte array of UCM document.
      Parameters:
      uuid - the UCM ID of a document.
      version - the version of the document.
      Returns:
      the contents of a UCM document.
      Throws:
      Exception - if a problem occurred.
    • getUCMVersionHistory

      public DocumentVersion[] getUCMVersionHistory(String uuid) throws Exception
      Gets all the versions of a UCM document.
      Parameters:
      uuid - the UCM ID of a document.
      Returns:
      the versions of a UCM document.
      Throws:
      Exception - if a problem occurred.
    • getUCMDocumentDetail

      public DocumentDetail getUCMDocumentDetail(String uuid) throws Exception
      Gets the most recent version of a UCM document.
      Parameters:
      uuid - the UCM ID of a document.
      Returns:
      the most recent version a UCM document.
      Throws:
      Exception - if a problem occurred.