Class TemplateSaveRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.TemplateSaveRequest
Request for saving a template
-
Constructor Summary
ConstructorDescriptionCreate an empty instanceTemplateSaveRequest
(Template template) Create an instance with the given template -
Method Summary
Modifier and TypeMethodDescriptionList of tag names to be deleted from the templategetSync()
Optional list of tags in pages to synchronize (if syncPages is true).Template to be savedboolean
True to force synchronization of incompatible tags in pages (if syncPages is true)boolean
True to synchronize the pages while saving the template, false if notboolean
isUnlock()
True, if the template shall be unlocked after saving, false if notvoid
Get the list of tagnames to be deleted from the templatevoid
setForceSync
(boolean forceSync) Set force sync flagvoid
Set tag names to synchronizevoid
setSyncPages
(boolean syncPages) Set true to synchronize the pages while saving the template, false to not synchronizevoid
setTemplate
(Template template) Set the template to be savedvoid
setUnlock
(boolean unlock) Set true to unlock the template after saving
-
Constructor Details
-
TemplateSaveRequest
public TemplateSaveRequest()Create an empty instance -
TemplateSaveRequest
Create an instance with the given template- Parameters:
template
- template
-
-
Method Details
-
getTemplate
Template to be saved- Returns:
- the template
-
setTemplate
Set the template to be saved- Parameters:
template
- the template to set
-
isUnlock
public boolean isUnlock()True, if the template shall be unlocked after saving, false if not- Returns:
- true to unlock
-
setUnlock
public void setUnlock(boolean unlock) Set true to unlock the template after saving- Parameters:
true
- to unlock
-
isSyncPages
public boolean isSyncPages()True to synchronize the pages while saving the template, false if not- Returns:
- true to synchronize pages
-
setSyncPages
public void setSyncPages(boolean syncPages) Set true to synchronize the pages while saving the template, false to not synchronize- Parameters:
syncPages
- true to synchronize pages
-
getSync
Optional list of tags in pages to synchronize (if syncPages is true). If left empty, all tags will be synchronized.- Returns:
- list of tag names
-
setSync
Set tag names to synchronize- Parameters:
sync
- list of tag names
-
isForceSync
public boolean isForceSync()True to force synchronization of incompatible tags in pages (if syncPages is true)- Returns:
- true to force sync
-
setForceSync
public void setForceSync(boolean forceSync) Set force sync flag- Parameters:
forceSync
- flag
-
getDelete
List of tag names to be deleted from the template- Returns:
- list of tag names to be deleted
-
setDelete
Get the list of tagnames to be deleted from the template- Parameters:
list
- of tag names to be deleted
-