Interface PublicationServiceLocal


  • public interface PublicationServiceLocal
    Interface for a publication service class.

    Since:
    4.5.0-object-storage
    • Method Detail

      • duplicatePublication

        PublicationId duplicatePublication​(java.lang.String sessionId,
                                           PublicationId publicationId,
                                           PublicationId destinationParentPublicationId,
                                           java.lang.String name,
                                           boolean tryToUseDocumentTemplate)
        Duplicates a publication with documents and subpublications
        Parameters:
        sessionId - id of the user session
        publicationId - id of the publication to duplicate
        destinationParentPublicationId - id of the destination publication
        name - new name of the publication or empty for the same name
        tryToUseDocumentTemplate - duplicates documents within publication(s) based on the document template from the source document
        Returns:
        id of the new created (duplicated) publication
      • createPublication

        PublicationId createPublication​(java.lang.String sessionId,
                                        PublicationId parentPublicationId,
                                        java.lang.String label,
                                        java.lang.String description,
                                        PublicationTypeId publicationTypeId)
        Creates a new publication
        Parameters:
        sessionId - id of the user session
        parentPublicationId - id of the parent publication
        label - publication label
        description - publication description
        publicationTypeId - publication type id
        Returns:
        id of the new created publication