Class CopyPublicationElementsParams

java.lang.Object
com.priint.pubserverapi.publication.CopyPublicationElementsParams

public class CopyPublicationElementsParams extends Object
Encapsulates parameters for copying elements between publications.

This class uses the Builder pattern to enforce required parameters sourcePublicationId and destinationPublicationId and allows optional flags for specifying which elements should be copied.

  • Method Details

    • builder

      public static CopyPublicationElementsParams.Builder builder(String sourcePublicationId, String destinationPublicationId)
      Creates a new Builder instance with required source and destination publication IDs.
      Parameters:
      sourcePublicationId - the Id of the source publication; must not be null
      destinationPublicationId - the Id of the destination publication; must not be null
      Returns:
      a new Builder initialized with the required IDs
    • getSourcePublicationId

      public String getSourcePublicationId()
      Returns the source publication Id.
      Returns:
      source publication Id
    • getDestinationPublicationId

      public String getDestinationPublicationId()
      Returns the destination publication Id.
      Returns:
      destination publication Id
    • isCopyRights

      public boolean isCopyRights()
      Indicates if rights should be copied.
      Returns:
      true if rights should be copied, false otherwise
    • isCopyDocumentTemplates

      public boolean isCopyDocumentTemplates()
      Indicates if document templates should be copied.
      Returns:
      true if document templates should be copied, false otherwise
    • isCopyPageTemplates

      public boolean isCopyPageTemplates()
      Indicates if page template should be copied.
      Returns:
      true if page template should be copied, false otherwise
    • isCopyTemplates

      public boolean isCopyTemplates()
      Indicates if template should be copied.
      Returns:
      true if template should be copied, false otherwise
    • isCopyParameters

      public boolean isCopyParameters()
      Indicates if parameters should be copied.
      Returns:
      true if parameters should be copied, false otherwise