com.atlassian.confluence.pages.templates
Class PageTemplate
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.core.AbstractVersionedEntityObject
com.atlassian.confluence.pages.templates.PageTemplate
- All Implemented Interfaces:
- Versioned, Serializable, Cloneable
public class PageTemplate
- extends AbstractVersionedEntityObject
- See Also:
- Serialized Form
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
LABEL_SEPARATOR
public static final String LABEL_SEPARATOR
- The String used to separate the
labels
.
- See Also:
- Constant Field Values
PageTemplate
public PageTemplate()
getName
public String getName()
setName
public void setName(String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getContent
public String getContent()
setContent
public void setContent(String content)
getSpace
public Space getSpace()
- The space this page template is constrained to.
setSpace
public void setSpace(Space space)
getOriginalVersionPageTemplate
public PageTemplate getOriginalVersionPageTemplate()
setOriginalVersionPageTemplate
public void setOriginalVersionPageTemplate(PageTemplate originalVersionPageTemplate)
isGlobalPageTemplate
public boolean isGlobalPageTemplate()
equals
public boolean equals(Object o)
- Overrides:
equals
in class com.atlassian.core.bean.EntityObject
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.atlassian.core.bean.EntityObject
convertToHistoricalVersion
public void convertToHistoricalVersion()
- Description copied from interface:
Versioned
- Remove all data from the object that does not need to be saved by historical versions. For
versioned objects that are persisted, this includes removing associations with other persisted
objects that may otherwise cause us to break the expected arity of the database relations.
When using Hibernate to persist versioned objects, take special care to null any field that
might contain a Hibernate-persisted collection, as Hibernate does not allow two different
persistent objects to refer to the same persisted collection at the same time.
- Specified by:
convertToHistoricalVersion
in interface Versioned
- Overrides:
convertToHistoricalVersion
in class AbstractVersionedEntityObject
getLabels
public String getLabels()
- Returns:
- a space separated String containing the labels for the template.
setLabels
public void setLabels(String labels)