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.core.AbstractLabelableEntityObject
com.atlassian.confluence.pages.templates.PageTemplate
- All Implemented Interfaces:
- Versioned, EditableLabelable, Labelable, java.io.Serializable, java.lang.Cloneable
public class PageTemplate
- extends AbstractLabelableEntityObject
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
LABEL_SEPARATOR
The String used to separate the labels . |
Methods inherited from class com.atlassian.confluence.core.AbstractLabelableEntityObject |
addLabelling, clone, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings |
Methods inherited from class com.atlassian.core.bean.EntityObject |
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LABEL_SEPARATOR
public static final java.lang.String LABEL_SEPARATOR
- The String used to separate the
labels
.
- See Also:
- Constant Field Values
PageTemplate
public PageTemplate()
PageTemplate
public PageTemplate(PageTemplate pageTemplate)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getContent
public java.lang.String getContent()
setContent
public void setContent(java.lang.String content)
getSpace
public Space getSpace()
- The space this page template is constrained to.
setSpace
public void setSpace(Space space)
setModuleCompleteKey
public void setModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey)
setReferencingModuleCompleteKey
public void setReferencingModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey referencingModuleCompleteKey)
getModuleCompleteKey
public com.atlassian.plugin.ModuleCompleteKey getModuleCompleteKey()
getReferencingModuleCompleteKey
public com.atlassian.plugin.ModuleCompleteKey getReferencingModuleCompleteKey()
getModuleKey
public java.lang.String getModuleKey()
getPluginKey
public java.lang.String getPluginKey()
getOriginalVersionPageTemplate
public PageTemplate getOriginalVersionPageTemplate()
setOriginalVersionPageTemplate
public void setOriginalVersionPageTemplate(PageTemplate originalVersionPageTemplate)
isGlobalPageTemplate
public boolean isGlobalPageTemplate()
equals
public boolean equals(java.lang.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
getTitle
public java.lang.String getTitle()
setLabels
@Deprecated
public void setLabels(java.lang.String labels)
- Deprecated. since 4.2, use LabelManager.addLabel() directly.
- Parameters:
labels
- - a space separated String of labels.
getBodyType
public BodyType getBodyType()
setBodyType
public void setBodyType(BodyType bodyType)
getReferencingPluginKey
public java.lang.String getReferencingPluginKey()
setReferencingPluginKey
public void setReferencingPluginKey(java.lang.String referencingPluginKey)
getReferencingModuleKey
public java.lang.String getReferencingModuleKey()
setReferencingModuleKey
public void setReferencingModuleKey(java.lang.String referencingModuleKey)
Copyright © 2003-2013 Atlassian. All Rights Reserved.