Class Template
java.lang.Object
com.gentics.contentnode.rest.model.Template
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TemplateInNode,TemplateInPackage
Template object representing a template in GCN
- Author:
- johannes2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDate when the file was createdprotected IntegerChannel IDprotected IntegerChannelset IDprotected UserCreator of the fileprotected intDate when the file was modified lastprotected UserLatest contributor to the fileprotected IntegerFolder id of the folder for which the template was fetchedprotected booleantrue when the template is inherited from a master channel, false if notprotected booleantrue when the template is locked, false if notprotected MarkupLanguageMarkup languageprotected booleantrue if the template is a master template, false if notprotected Integerid of the master template, if this template is a localized copy of another -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCdate()Creation dateGet the channel idGet the channelset idCreatorTemplate descriptionintgetEdate()Last Edit dateLast EditorFolder IDGlobal Id of the templategetId()IDName of the node this template is inherited fromMarkup languageMaster IDName of the node, the master object belongs togetName()Name of the templateReturns the list of object tags for this templategetPath()Folder pathReturns the template sourceTags of the templatebooleanTrue if the template is inheritedbooleanisLocked()True if the template is lockedbooleanisMaster()Get whether this template is a master templatevoidsetCdate(int cdate) voidsetChannelId(Integer channelId) Set the channel idvoidsetChannelSetId(Integer channelSetId) Set the channelset idvoidsetCreator(User creator) voidsetDescription(String description) Sets the template descriptionvoidsetEdate(int edate) voidvoidsetFolderId(Integer folderId) voidsetGlobalId(String globalId) Set the global IdvoidSets the template idvoidsetInherited(boolean inherited) voidsetInheritedFrom(String inheritedFrom) sets inherited fromvoidsetLocked(boolean locked) voidsetMarkupLanguage(MarkupLanguage markupLanguage) voidsetMaster(boolean master) Set true for master templates, false for localized copiesvoidsetMasterId(Integer masterId) voidsetMasterNode(String masterNode) Set the name of the node, the master object belongs tovoidSets the name of the templatevoidsetObjectTags(Map<String, Tag> objectTags) Sets the object tags for this templatevoidSet the pathvoidSets the source of the templatevoidsetTemplateTags(Map<String, TemplateTag> templateTags) Set the tags
-
Field Details
-
creator
Creator of the file -
cdate
protected int cdateDate when the file was created -
editor
Latest contributor to the file -
edate
protected int edateDate when the file was modified last -
locked
protected boolean lockedtrue when the template is locked, false if not -
inherited
protected boolean inheritedtrue when the template is inherited from a master channel, false if not -
master
protected boolean mastertrue if the template is a master template, false if not -
masterId
id of the master template, if this template is a localized copy of another -
markupLanguage
Markup language -
folderId
Folder id of the folder for which the template was fetched -
channelId
Channel ID -
channelSetId
Channelset ID
-
-
Constructor Details
-
Template
public Template()Constructor for JAXB
-
-
Method Details
-
getInheritedFrom
Name of the node this template is inherited from- Returns:
-
setInheritedFrom
sets inherited from- Parameters:
inheritedFrom-
-
getMasterNode
Name of the node, the master object belongs to- Returns:
- node name
-
setMasterNode
Set the name of the node, the master object belongs to- Parameters:
masterNode- node name
-
getId
ID- Returns:
-
setId
Sets the template id- Parameters:
id-
-
getGlobalId
Global Id of the template- Returns:
- the global Id
-
setGlobalId
Set the global Id- Parameters:
globalId- global Id
-
getName
Name of the template- Returns:
-
setName
Sets the name of the template- Parameters:
name-
-
getDescription
Template description- Returns:
-
setDescription
Sets the template description- Parameters:
description-
-
getCreator
Creator- Returns:
- the creator
-
getCdate
public int getCdate()Creation date- Returns:
- the cdate
-
getEditor
Last Editor- Returns:
- the editor
-
getEdate
public int getEdate()Last Edit date- Returns:
- the edate
-
setCreator
- Parameters:
creator- the creator to set
-
setCdate
public void setCdate(int cdate) - Parameters:
cdate- the cdate to set
-
setEditor
- Parameters:
editor- the editor to set
-
setEdate
public void setEdate(int edate) - Parameters:
edate- the edate to set
-
isLocked
public boolean isLocked()True if the template is locked- Returns:
- the locked
-
setLocked
public void setLocked(boolean locked) - Parameters:
locked- the locked to set
-
getMarkupLanguage
Markup language- Returns:
- the markupLanguage
-
setMarkupLanguage
- Parameters:
markupLanguage- the markupLanguage to set
-
isInherited
public boolean isInherited()True if the template is inherited- Returns:
- the inherited
-
setInherited
public void setInherited(boolean inherited) - Parameters:
inherited- the inherited to set
-
setFolderId
-
getFolderId
Folder ID- Returns:
-
getMasterId
Master ID- Returns:
-
setMasterId
-
equals
-
getPath
Folder path- Returns:
- path
-
setPath
Set the path- Parameters:
path- the path
-
setTemplateTags
Set the tags- Parameters:
templateTags- tags
-
getTemplateTags
Tags of the template- Returns:
- tags
-
getObjectTags
Returns the list of object tags for this template- Returns:
-
setObjectTags
Sets the object tags for this template- Parameters:
objectTags-
-
getSource
Returns the template source- Returns:
- source
-
setSource
Sets the source of the template- Parameters:
source-
-
getChannelSetId
Get the channelset id- Returns:
- channelset id
-
setChannelSetId
Set the channelset id- Parameters:
channelSetId- channelset id
-
getChannelId
Get the channel id- Returns:
- channel id
-
setChannelId
Set the channel id- Parameters:
channelId- channel id
-
isMaster
public boolean isMaster()Get whether this template is a master template- Returns:
- true for master templates, false for localized copies
-
setMaster
public void setMaster(boolean master) Set true for master templates, false for localized copies- Parameters:
master- true for master template
-