public class Template extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
cdate
Date when the file was created
|
protected Integer |
channelId
Channel ID
|
protected Integer |
channelSetId
Channelset ID
|
protected User |
creator
Creator of the file
|
protected int |
edate
Date when the file was modified last
|
protected User |
editor
Latest contributor to the file
|
protected Integer |
folderId
Folder id of the folder for which the template was fetched
|
protected boolean |
inherited
true when the template is inherited from a master channel, false if not
|
protected boolean |
locked
true when the template is locked, false if not
|
protected MarkupLanguage |
markupLanguage
Markup language
|
protected boolean |
master
true if the template is a master template, false if not
|
protected Integer |
masterId
id of the master template, if this template is a localized copy of another
|
Constructor and Description |
---|
Template()
Constructor for JAXB
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCdate()
Creation date
|
Integer |
getChannelId()
Get the channel id
|
Integer |
getChannelSetId()
Get the channelset id
|
User |
getCreator()
Creator
|
String |
getDescription()
Template description
|
int |
getEdate()
Last Edit date
|
User |
getEditor()
Last Editor
|
Integer |
getFolderId()
Folder ID
|
String |
getGlobalId()
Global Id of the template
|
Integer |
getId()
ID
|
String |
getInheritedFrom()
Name of the node this template is inherited from
|
MarkupLanguage |
getMarkupLanguage()
Markup language
|
Integer |
getMasterId()
Master ID
|
String |
getMasterNode()
Name of the node, the master object belongs to
|
String |
getName()
Name of the template
|
Map<String,Tag> |
getObjectTags()
Returns the list of object tags for this template
|
String |
getPath()
Folder path
|
String |
getSource()
Returns the template source
|
Map<String,TemplateTag> |
getTemplateTags()
Tags of the template
|
boolean |
isInherited()
True if the template is inherited
|
boolean |
isLocked()
True if the template is locked
|
boolean |
isMaster()
Get whether this template is a master template
|
void |
setCdate(int cdate) |
void |
setChannelId(Integer channelId)
Set the channel id
|
void |
setChannelSetId(Integer channelSetId)
Set the channelset id
|
void |
setCreator(User creator) |
void |
setDescription(String description)
Sets the template description
|
void |
setEdate(int edate) |
void |
setEditor(User editor) |
void |
setFolderId(Integer folderId) |
void |
setGlobalId(String globalId)
Set the global Id
|
void |
setId(Integer id)
Sets the template id
|
void |
setInherited(boolean inherited) |
void |
setInheritedFrom(String inheritedFrom)
sets inherited from
|
void |
setLocked(boolean locked) |
void |
setMarkupLanguage(MarkupLanguage markupLanguage) |
void |
setMaster(boolean master)
Set true for master templates, false for localized copies
|
void |
setMasterId(Integer masterId) |
void |
setMasterNode(String masterNode)
Set the name of the node, the master object belongs to
|
void |
setName(String name)
Sets the name of the template
|
void |
setObjectTags(Map<String,Tag> objectTags)
Sets the object tags for this template
|
void |
setPath(String path)
Set the path
|
void |
setSource(String source)
Sets the source of the template
|
void |
setTemplateTags(Map<String,TemplateTag> templateTags)
Set the tags
|
protected User creator
protected int cdate
protected User editor
protected int edate
protected boolean locked
protected boolean inherited
protected boolean master
protected Integer masterId
protected MarkupLanguage markupLanguage
protected Integer folderId
protected Integer channelId
protected Integer channelSetId
public String getInheritedFrom()
public void setInheritedFrom(String inheritedFrom)
inheritedFrom
- public String getMasterNode()
public void setMasterNode(String masterNode)
masterNode
- node namepublic Integer getId()
public void setId(Integer id)
id
- public String getGlobalId()
public void setGlobalId(String globalId)
globalId
- global Idpublic String getName()
public void setName(String name)
name
- public String getDescription()
public void setDescription(String description)
description
- public User getCreator()
public int getCdate()
public User getEditor()
public int getEdate()
public void setCreator(User creator)
creator
- the creator to setpublic void setCdate(int cdate)
cdate
- the cdate to setpublic void setEditor(User editor)
editor
- the editor to setpublic void setEdate(int edate)
edate
- the edate to setpublic boolean isLocked()
public void setLocked(boolean locked)
locked
- the locked to setpublic MarkupLanguage getMarkupLanguage()
public void setMarkupLanguage(MarkupLanguage markupLanguage)
markupLanguage
- the markupLanguage to setpublic boolean isInherited()
public void setInherited(boolean inherited)
inherited
- the inherited to setpublic void setFolderId(Integer folderId)
public Integer getFolderId()
public Integer getMasterId()
public void setMasterId(Integer masterId)
public String getPath()
public void setPath(String path)
path
- the pathpublic void setTemplateTags(Map<String,TemplateTag> templateTags)
templateTags
- tagspublic Map<String,TemplateTag> getTemplateTags()
public Map<String,Tag> getObjectTags()
public void setObjectTags(Map<String,Tag> objectTags)
objectTags
- public String getSource()
public void setSource(String source)
source
- public Integer getChannelSetId()
public void setChannelSetId(Integer channelSetId)
channelSetId
- channelset idpublic Integer getChannelId()
public void setChannelId(Integer channelId)
channelId
- channel idpublic boolean isMaster()
public void setMaster(boolean master)
master
- true for master templateCopyright © 2024 Gentics Software. All rights reserved.