Class TemplateSaveRequest
- java.lang.Object
-
- com.gentics.contentnode.rest.model.request.TemplateSaveRequest
-
public class TemplateSaveRequest extends Object
Request for saving a template
-
-
Constructor Summary
Constructors Constructor Description TemplateSaveRequest()
Create an empty instanceTemplateSaveRequest(Template template)
Create an instance with the given template
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getDelete()
List of tag names to be deleted from the templateList<String>
getSync()
Optional list of tags in pages to synchronize (if syncPages is true).Template
getTemplate()
Template to be savedboolean
isForceSync()
True to force synchronization of incompatible tags in pages (if syncPages is true)boolean
isSyncPages()
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
setDelete(List<String> delete)
Get the list of tagnames to be deleted from the templatevoid
setForceSync(boolean forceSync)
Set force sync flagvoid
setSync(List<String> sync)
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 Detail
-
TemplateSaveRequest
public TemplateSaveRequest()
Create an empty instance
-
TemplateSaveRequest
public TemplateSaveRequest(Template template)
Create an instance with the given template- Parameters:
template
- template
-
-
Method Detail
-
getTemplate
public Template getTemplate()
Template to be saved- Returns:
- the template
-
setTemplate
public void setTemplate(Template template)
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
public List<String> 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
public void setSync(List<String> sync)
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
public List<String> getDelete()
List of tag names to be deleted from the template- Returns:
- list of tag names to be deleted
-
-