Class PageCopyRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.page.PageCopyRequest
Request for a batch copy call
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Flag that indicates whether to create a new page when an existing page with the same filename was found in the target folder.protected Integer
Node ID for the source pagesList of pages id's that should be copiedprotected List<TargetFolder>
List of target folders in which the pages should be copied. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNode ID for the source pages.The list of source page id's that should be copied to the target folders.The list of target folder in which the pages should be copied.boolean
Whether new copies should be created in folders in which already pages with the same name reside.void
setCreateCopy
(boolean createCopy) Set the create copy flag.void
Set the node IDvoid
setSourcePageIds
(List<Integer> sourcePageIds) Set the list of source page id's.void
setTargetFolders
(List<TargetFolder> targetFolders) Set the target folders into which the pages should be copied.
-
Field Details
-
createCopy
protected boolean createCopyFlag that indicates whether to create a new page when an existing page with the same filename was found in the target folder. By default no copy will be created. In this case the found page id would be returned by the response. -
nodeId
Node ID for the source pages -
sourcePageIds
List of pages id's that should be copied -
targetFolders
List of target folders in which the pages should be copied.
-
-
Constructor Details
-
PageCopyRequest
public PageCopyRequest()
-
-
Method Details
-
getTargetFolders
The list of target folder in which the pages should be copied.- Returns:
- List of target folder entries
-
getSourcePageIds
The list of source page id's that should be copied to the target folders.- Returns:
- List of source page id's
-
setSourcePageIds
Set the list of source page id's.- Parameters:
sourcePageIds
-
-
setTargetFolders
Set the target folders into which the pages should be copied.- Parameters:
targetFolders
-
-
isCreateCopy
public boolean isCreateCopy()Whether new copies should be created in folders in which already pages with the same name reside.- Returns:
- true, when the create copy flag is set and new copies should be created. Otherwise false.
-
setCreateCopy
public void setCreateCopy(boolean createCopy) Set the create copy flag. A new page will be created in the target folder even when an existing page with the same name was found that folder. This applies for all target folders.- Parameters:
createCopy
-
-
getNodeId
Node ID for the source pages. If this is set to a channel, the channel variant of the given page will be copied.- Returns:
- node ID for the source pages
-
setNodeId
Set the node ID- Parameters:
nodeId
- node ID
-