com.gentics.contentnode.rest.model
Class Template

java.lang.Object
  extended by com.gentics.contentnode.rest.model.Template
All Implemented Interfaces:
java.io.Serializable

public class Template
extends java.lang.Object
implements java.io.Serializable

Template object representing a template in GCN

Author:
johannes2
See Also:
Serialized Form

Field Summary
protected  int cdate
          Date when the file was created
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  java.lang.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  java.lang.Integer masterId
          id of the master template, if this template is a localized copy of another
 
Constructor Summary
Template()
          Constructor for JAXB
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCdate()
          Creation date
 User getCreator()
          Creator
 java.lang.String getDescription()
          Template description
 int getEdate()
          Last Edit date
 User getEditor()
          Last Editor
 java.lang.Integer getFolderId()
          Folder ID
 java.lang.Integer getId()
          ID
 java.lang.String getInheritedFrom()
          Name of the node this template is inherited from
 MarkupLanguage getMarkupLanguage()
          Markup language
 java.lang.Integer getMasterId()
          Master ID
 java.lang.String getMasterNode()
          Name of the node, the master object belongs to
 java.lang.String getName()
          Name of the template
 java.util.Map<java.lang.String,Tag> getObjectTags()
          Returns the list of object tags for this template
 java.lang.String getPath()
          Folder path
 java.lang.String getSource()
          Returns the template source
 java.util.Map<java.lang.String,TemplateTag> getTemplateTags()
          Tags of the template
 boolean isInherited()
          True if the template is inherited
 boolean isLocked()
          True if the template is locked
 void setCdate(int cdate)
           
 void setCreator(User creator)
           
 void setDescription(java.lang.String description)
          Sets the template description
 void setEdate(int edate)
           
 void setEditor(User editor)
           
 void setFolderId(java.lang.Integer folderId)
           
 void setId(java.lang.Integer id)
          Sets the template id
 void setInherited(boolean inherited)
           
 void setInheritedFrom(java.lang.String inheritedFrom)
          sets inherited from
 void setLocked(boolean locked)
           
 void setMarkupLanguage(MarkupLanguage markupLanguage)
           
 void setMasterId(java.lang.Integer masterId)
           
 void setMasterNode(java.lang.String masterNode)
          Set the name of the node, the master object belongs to
 void setName(java.lang.String name)
          Sets the name of the template
 void setObjectTags(java.util.Map<java.lang.String,Tag> objectTags)
          Sets the object tags for this template
 void setPath(java.lang.String path)
          Set the path
 void setSource(java.lang.String source)
          Sets the source of the template
 void setTemplateTags(java.util.Map<java.lang.String,TemplateTag> templateTags)
          Set the tags
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

creator

protected User creator
Creator of the file


cdate

protected int cdate
Date when the file was created


editor

protected User editor
Latest contributor to the file


edate

protected int edate
Date when the file was modified last


locked

protected boolean locked
true when the template is locked, false if not


inherited

protected boolean inherited
true when the template is inherited from a master channel, false if not


masterId

protected java.lang.Integer masterId
id of the master template, if this template is a localized copy of another


markupLanguage

protected MarkupLanguage markupLanguage
Markup language


folderId

protected java.lang.Integer folderId
Folder id of the folder for which the template was fetched

Constructor Detail

Template

public Template()
Constructor for JAXB

Method Detail

getInheritedFrom

public java.lang.String getInheritedFrom()
Name of the node this template is inherited from

Returns:

setInheritedFrom

public void setInheritedFrom(java.lang.String inheritedFrom)
sets inherited from

Parameters:
inheritedFrom -

getMasterNode

public java.lang.String getMasterNode()
Name of the node, the master object belongs to

Returns:
node name

setMasterNode

public void setMasterNode(java.lang.String masterNode)
Set the name of the node, the master object belongs to

Parameters:
masterNode - node name

getId

public java.lang.Integer getId()
ID

Returns:

setId

public void setId(java.lang.Integer id)
Sets the template id

Parameters:
id -

getName

public java.lang.String getName()
Name of the template

Returns:

setName

public void setName(java.lang.String name)
Sets the name of the template

Parameters:
name -

getDescription

public java.lang.String getDescription()
Template description

Returns:

setDescription

public void setDescription(java.lang.String description)
Sets the template description

Parameters:
description -

getCreator

public User getCreator()
Creator

Returns:
the creator

getCdate

public int getCdate()
Creation date

Returns:
the cdate

getEditor

public User getEditor()
Last Editor

Returns:
the editor

getEdate

public int getEdate()
Last Edit date

Returns:
the edate

setCreator

public void setCreator(User creator)
Parameters:
creator - the creator to set

setCdate

public void setCdate(int cdate)
Parameters:
cdate - the cdate to set

setEditor

public void setEditor(User editor)
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

public MarkupLanguage getMarkupLanguage()
Markup language

Returns:
the markupLanguage

setMarkupLanguage

public void setMarkupLanguage(MarkupLanguage markupLanguage)
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

public void setFolderId(java.lang.Integer folderId)

getFolderId

public java.lang.Integer getFolderId()
Folder ID

Returns:

getMasterId

public java.lang.Integer getMasterId()
Master ID

Returns:

setMasterId

public void setMasterId(java.lang.Integer masterId)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getPath

public java.lang.String getPath()
Folder path

Returns:
path

setPath

public void setPath(java.lang.String path)
Set the path

Parameters:
path - the path

setTemplateTags

public void setTemplateTags(java.util.Map<java.lang.String,TemplateTag> templateTags)
Set the tags

Parameters:
templateTags - tags

getTemplateTags

public java.util.Map<java.lang.String,TemplateTag> getTemplateTags()
Tags of the template

Returns:
tags

getObjectTags

public java.util.Map<java.lang.String,Tag> getObjectTags()
Returns the list of object tags for this template

Returns:

setObjectTags

public void setObjectTags(java.util.Map<java.lang.String,Tag> objectTags)
Sets the object tags for this template

Parameters:
objectTags -

getSource

public java.lang.String getSource()
Returns the template source

Returns:
source

setSource

public void setSource(java.lang.String source)
Sets the source of the template

Parameters:
source -


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.