Class CopyPublicationElementsParams
java.lang.Object
com.priint.pubserverapi.publication.CopyPublicationElementsParams
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreates a new Builder instance with required source and destination publication IDs.Returns the destination publication Id.Returns the source publication Id.booleanIndicates if document templates should be copied.booleanIndicates if page template should be copied.booleanIndicates if parameters should be copied.booleanIndicates if rights should be copied.booleanIndicates if template 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 nulldestinationPublicationId- the Id of the destination publication; must not be null- Returns:
- a new Builder initialized with the required IDs
-
getSourcePublicationId
Returns the source publication Id.- Returns:
- source publication Id
-
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
-