Class CopyPublicationElementsParams.Builder
java.lang.Object
com.priint.pubserverapi.publication.CopyPublicationElementsParams.Builder
- Enclosing class:
CopyPublicationElementsParams
Builder for
CopyPublicationElementsParams.
Allows setting optional duplication flags.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theCopyPublicationElementsParamsinstance.copyDocumentTemplates(boolean val) Sets whether to copy document templates.copyPageTemplates(boolean val) Sets whether to copy page templates.copyParameters(boolean val) Sets whether to copy parameters.copyRights(boolean val) Sets whether to copy rights.copyTemplate(boolean val) Sets whether to copy templates.
-
Constructor Details
-
Builder
Constructs a Builder with mandatory publication IDs.- Parameters:
sourcePublicationId- the source publication Id; must not be nulldestinationPublicationId- the destination publication Id; must not be null- Throws:
IllegalArgumentException- if either Id is null
-
-
Method Details
-
copyRights
Sets whether to copy rights.- Parameters:
val- true to copy rights; false otherwise- Returns:
- this Builder for chaining
-
copyDocumentTemplates
Sets whether to copy document templates.- Parameters:
val- true to copy document templates; false otherwise- Returns:
- this Builder for chaining
-
copyPageTemplates
Sets whether to copy page templates.- Parameters:
val- true to copy page templates; false otherwise- Returns:
- this Builder for chaining
-
copyTemplate
Sets whether to copy templates.- Parameters:
val- true to copy templates; false otherwise- Returns:
- this Builder for chaining
-
copyParameters
Sets whether to copy parameters.- Parameters:
val- true to copy parameters; false otherwise- Returns:
- this Builder for chaining
-
build
Builds theCopyPublicationElementsParamsinstance.- Returns:
- a new instance of
CopyPublicationElementsParamswith the configured values
-