Class LinkRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.LinkRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MultiLinkRequest
Request object for linking a template to folders or unlinking a template from folders
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet of folder IDs to handle.Node ID for handling channel local folders.boolean
isDelete()
True to delete the template, if it is unlinked from the last folder.boolean
True if the template shall be linked to or unlinked from the given folders recursively (including all subfolders).void
setDelete
(boolean delete) Set delete flagvoid
setFolderIds
(Set<String> folderIds) Set folder IDs to handlevoid
Set the Node ID for linking to channel local foldersvoid
setRecursive
(boolean recursive) Set whether linking shall be done recursively
-
Field Details
-
recursive
@DefaultValue("false") protected boolean recursiveFlag to link/unlink recursively -
nodeId
Node ID -
folderIds
Set of folder IDs (may be globalIds) -
delete
@DefaultValue("false") protected boolean deleteFlag to delete the template(s) when unlinked from the last folder
-
-
Constructor Details
-
LinkRequest
public LinkRequest()Create empty request
-
-
Method Details
-
isRecursive
public boolean isRecursive()True if the template shall be linked to or unlinked from the given folders recursively (including all subfolders). The default is false (not recursive)- Returns:
- true for recursive, false if not
-
setRecursive
public void setRecursive(boolean recursive) Set whether linking shall be done recursively- Parameters:
recursive
- true for recursive, false if not
-
getFolderIds
Set of folder IDs to handle. Folder IDs may either be local or global IDs.- Returns:
- set of folder IDs
-
setFolderIds
Set folder IDs to handle- Parameters:
folderIds
- handled folder IDs
-
getNodeId
Node ID for handling channel local folders. Note that linking templates to folders is always done for the master objects. It is not possible to have a different linking for inherited or localized templates or folders.- Returns:
- node ID
-
setNodeId
Set the Node ID for linking to channel local folders- Parameters:
nodeId
- node ID
-
isDelete
public boolean isDelete()True to delete the template, if it is unlinked from the last folder.- Returns:
- true to delete
-
setDelete
public void setDelete(boolean delete) Set delete flag- Parameters:
delete
- delete flag
-