Class TagTypeMigrationRequest
- java.lang.Object
-
- com.gentics.contentnode.rest.model.request.migration.TagTypeMigrationRequest
-
- All Implemented Interfaces:
Serializable
public class TagTypeMigrationRequest extends Object implements Serializable
Tag Type Migration Request- Author:
- Taylor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagTypeMigrationRequest()
Create an empty instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MigrationPostProcessor>
getEnabledPostProcessors()
Returns the list of enabled post processors that were specified for this migration requestList<MigrationPreProcessor>
getEnabledPreProcessors()
Returns the list of enabled pre processors that were specified for this migration requestList<TagTypeMigrationMapping>
getMappings()
Return the list ofTagTypeMigrationMapping
List<Integer>
getObjectIds()
Returns the list of object idsList<Integer>
getRestrictedNodeIds()
List of IDs of nodes, to which a global migration shall be restricted.String
getType()
Return the type of the objects.boolean
isHandleAllNodes()
Returns whether the handleAllNodes flag was enabledboolean
isHandleGlobalObjTagDefs()
Whether a global migration shall handle object property definitionsboolean
isHandleGlobalPages()
Whether a global migration shall handle pagesboolean
isHandleGlobalTemplates()
Whether a global migration shall handle templatesboolean
isHandlePagesByTemplate()
Returns whether the handlePagesByTemplate flag was enabled for this request.boolean
isPreventTriggerEvent()
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
setType(String type)
Set the type for the migration job.
-
-
-
Method Detail
-
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
public List<MigrationPreProcessor> getEnabledPreProcessors()
Returns the list of enabled pre processors that were specified for this migration request- Returns:
-
setEnabledPreProcessors
public void setEnabledPreProcessors(List<MigrationPreProcessor> enabledPreProcessors)
Sets the map of enabled pre processors for this migration request- Parameters:
enabledPreProcessors
-
-
getEnabledPostProcessors
public List<MigrationPostProcessor> getEnabledPostProcessors()
Returns the list of enabled post processors that were specified for this migration request- Returns:
-
setEnabledPostProcessors
public void setEnabledPostProcessors(List<MigrationPostProcessor> enabledPostProcessors)
Sets the map of enabled post processors for this migration request- Parameters:
enabledPostProcessors
-
-
getMappings
public List<TagTypeMigrationMapping> getMappings()
Return the list ofTagTypeMigrationMapping
- Returns:
-
setMappings
public void setMappings(List<TagTypeMigrationMapping> mappings)
Set the list ofTagTypeMigrationMapping
- Parameters:
mappings
-
-
getType
public String getType()
Return the type of the objects. This can either be 'page','template' or 'objtagdef'- Returns:
-
setType
public void setType(String type)
Set the type for the migration job. This can either be 'page','template' or 'objtagdef'- Parameters:
type
-
-
setObjectIds
public void setObjectIds(List<Integer> objectIds)
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
public List<Integer> 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
-
-