Class TagTypeMigrationRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.migration.TagTypeMigrationRequest
- All Implemented Interfaces:
Serializable
Tag Type Migration Request
- Author:
- Taylor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of enabled post processors that were specified for this migration requestReturns the list of enabled pre processors that were specified for this migration requestReturn the list ofTagTypeMigrationMapping
Returns the list of object idsList of IDs of nodes, to which a global migration shall be restricted.getType()
Return the type of the objects.boolean
Returns whether the handleAllNodes flag was enabledboolean
Whether a global migration shall handle object property definitionsboolean
Whether a global migration shall handle pagesboolean
Whether a global migration shall handle templatesboolean
Returns whether the handlePagesByTemplate flag was enabled for this request.boolean
Check whether the trigger events should be prevented.void
setEnabledPostProcessors
(List<MigrationPostProcessor> enabledPostProcessors) Sets the map of enabled post processors for this migration requestvoid
setEnabledPreProcessors
(List<MigrationPreProcessor> enabledPreProcessors) Sets the map of enabled pre processors for this migration requestvoid
setHandleAllNodes
(boolean handleAllNodes) Set the handleAllNodes flagvoid
setHandleGlobalObjTagDefs
(boolean handleGlobalObjTagDefs) Set whether a global migration shall handle object property definitionsvoid
setHandleGlobalPages
(boolean handleGlobalPages) Set whether a global migration shall handle pagesvoid
setHandleGlobalTemplates
(boolean handleGlobalTemplates) Set whether a global migration shall handle templatesvoid
setHandlePagesByTemplate
(boolean handlePagesByTemplate) Sets the handlePagesByTemplate option which specifies whether the migration should be applied to ALL pages using this page's template.void
setMappings
(List<TagTypeMigrationMapping> mappings) Set the list ofTagTypeMigrationMapping
void
setObjectIds
(List<Integer> objectIds) Set the list of object idsvoid
setPreventTriggerEvent
(boolean preventTriggerEvent) Sets the prevent tigger event optionvoid
setRestrictedNodeIds
(List<Integer> restrictedNodeIds) Set list of node IDs to which a global migration shall be restrictedvoid
Set the type for the migration job.
-
Constructor Details
-
TagTypeMigrationRequest
public TagTypeMigrationRequest()Create an empty instance
-
-
Method Details
-
isPreventTriggerEvent
public boolean isPreventTriggerEvent()Check whether the trigger events should be prevented.- Returns:
- true if trigger events should be prevented, otherwise false
-
setPreventTriggerEvent
public void setPreventTriggerEvent(boolean preventTriggerEvent) Sets the prevent tigger event option- Parameters:
handlePagesByTemplate
-
-
isHandlePagesByTemplate
public boolean isHandlePagesByTemplate()Returns whether the handlePagesByTemplate flag was enabled for this request.- Returns:
- true if the migration should use the page as a refernce to fetch all the template's pages, otherwise false
-
setHandlePagesByTemplate
public void setHandlePagesByTemplate(boolean handlePagesByTemplate) Sets the handlePagesByTemplate option which specifies whether the migration should be applied to ALL pages using this page's template.- Parameters:
handlePagesByTemplate
-
-
isHandleAllNodes
public boolean isHandleAllNodes()Returns whether the handleAllNodes flag was enabled- Returns:
- true if pages of all nodes shall be handled, false if only of the same node as the selected page
-
setHandleAllNodes
public void setHandleAllNodes(boolean handleAllNodes) Set the handleAllNodes flag- Parameters:
handleAllNodes
- true to handle pages of all nodes, false for only the same node as the selected page
-
getEnabledPreProcessors
Returns the list of enabled pre processors that were specified for this migration request- Returns:
-
setEnabledPreProcessors
Sets the map of enabled pre processors for this migration request- Parameters:
enabledPreProcessors
-
-
getEnabledPostProcessors
Returns the list of enabled post processors that were specified for this migration request- Returns:
-
setEnabledPostProcessors
Sets the map of enabled post processors for this migration request- Parameters:
enabledPostProcessors
-
-
getMappings
Return the list ofTagTypeMigrationMapping
- Returns:
-
setMappings
Set the list ofTagTypeMigrationMapping
- Parameters:
mappings
-
-
getType
Return the type of the objects. This can either be 'page','template' or 'objtagdef'- Returns:
-
setType
Set the type for the migration job. This can either be 'page','template' or 'objtagdef'- Parameters:
type
-
-
getObjectIds
Returns the list of object ids- Returns:
-
setObjectIds
Set the list of object ids- Parameters:
objectIds
-
-
isHandleGlobalPages
public boolean isHandleGlobalPages()Whether a global migration shall handle pages- Returns:
- true to handle pages
-
setHandleGlobalPages
public void setHandleGlobalPages(boolean handleGlobalPages) Set whether a global migration shall handle pages- Parameters:
handleGlobalPages
- true to handle pages
-
isHandleGlobalTemplates
public boolean isHandleGlobalTemplates()Whether a global migration shall handle templates- Returns:
- true to handle templates
-
setHandleGlobalTemplates
public void setHandleGlobalTemplates(boolean handleGlobalTemplates) Set whether a global migration shall handle templates- Parameters:
handleGlobalTemplates
- true to handle templates
-
isHandleGlobalObjTagDefs
public boolean isHandleGlobalObjTagDefs()Whether a global migration shall handle object property definitions- Returns:
- true to handle object property definitions
-
setHandleGlobalObjTagDefs
public void setHandleGlobalObjTagDefs(boolean handleGlobalObjTagDefs) Set whether a global migration shall handle object property definitions- Parameters:
handleGlobalObjTagDefs
- true to handle object property definitions
-
getRestrictedNodeIds
List of IDs of nodes, to which a global migration shall be restricted. Empty to apply global migration to all nodes- Returns:
- list of node IDs
-
setRestrictedNodeIds
Set list of node IDs to which a global migration shall be restricted- Parameters:
restrictedNodeIds
- list of node IDs
-