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
Modifier and TypeFieldDescriptionprotected int
Date when the file was createdprotected Integer
Channel IDprotected Integer
Channelset IDprotected User
Creator of the fileprotected int
Date when the file was modified lastprotected User
Latest contributor to the fileprotected Integer
Folder id of the folder for which the template was fetchedprotected boolean
true when the template is inherited from a master channel, false if notprotected boolean
true when the template is locked, false if notprotected MarkupLanguage
Markup languageprotected boolean
true if the template is a master template, false if notprotected Integer
id of the master template, if this template is a localized copy of another -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getCdate()
Creation dateGet the channel idGet the channelset idCreatorTemplate descriptionint
getEdate()
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 templateboolean
True if the template is inheritedboolean
isLocked()
True if the template is lockedboolean
isMaster()
Get whether this template is a master templatevoid
setCdate
(int cdate) void
setChannelId
(Integer channelId) Set the channel idvoid
setChannelSetId
(Integer channelSetId) Set the channelset idvoid
setCreator
(User creator) void
setDescription
(String description) Sets the template descriptionvoid
setEdate
(int edate) void
void
setFolderId
(Integer folderId) void
setGlobalId
(String globalId) Set the global Idvoid
Sets the template idvoid
setInherited
(boolean inherited) void
setInheritedFrom
(String inheritedFrom) sets inherited fromvoid
setLocked
(boolean locked) void
setMarkupLanguage
(MarkupLanguage markupLanguage) void
setMaster
(boolean master) Set true for master templates, false for localized copiesvoid
setMasterId
(Integer masterId) void
setMasterNode
(String masterNode) Set the name of the node, the master object belongs tovoid
Sets the name of the templatevoid
setObjectTags
(Map<String, Tag> objectTags) Sets the object tags for this templatevoid
Set the pathvoid
Sets the source of the templatevoid
setTemplateTags
(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
-