public class PageTemplate extends AbstractLabelableEntityObject
Modifier and Type | Field and Description |
---|---|
static String |
LABEL_SEPARATOR
The String used to separate the
labels . |
INITIAL_VERSION
Constructor and Description |
---|
PageTemplate() |
PageTemplate(PageTemplate pageTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
convertToHistoricalVersion()
Remove all data from the object that does not need to be saved by historical versions.
|
boolean |
equals(Object o) |
BodyType |
getBodyType() |
String |
getContent() |
ContentTemplateId |
getContentTemplateId() |
String |
getDescription() |
PageTemplate |
getLatestVersion()
Get the latest, current version of this versioned object.
|
com.atlassian.plugin.ModuleCompleteKey |
getModuleCompleteKey() |
String |
getModuleKey() |
String |
getName() |
PageTemplate |
getOriginalVersionPageTemplate() |
String |
getPluginKey() |
com.atlassian.plugin.ModuleCompleteKey |
getReferencingModuleCompleteKey() |
String |
getReferencingModuleKey() |
String |
getReferencingPluginKey() |
Space |
getSpace()
The space this page template is constrained to.
|
String |
getTitle() |
int |
hashCode() |
boolean |
isGlobalPageTemplate() |
void |
setBodyType(BodyType bodyType) |
void |
setContent(String content) |
void |
setDescription(String description) |
void |
setModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey) |
void |
setName(String name) |
void |
setOriginalVersionPageTemplate(PageTemplate originalVersionPageTemplate) |
void |
setReferencingModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey referencingModuleCompleteKey) |
void |
setReferencingModuleKey(String referencingModuleKey) |
void |
setReferencingPluginKey(String referencingPluginKey) |
void |
setSpace(Space space) |
addLabelling, clone, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, removeLabelling, setLabellings
applyChildVersioningPolicy, applyChildVersioningPolicy, getConfluenceRevision, getVersion, getVersionChildPolicy, isLatestVersion, isNew, setOriginalVersion, setVersion
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getId, isPersistent
public static final String LABEL_SEPARATOR
labels
.public PageTemplate()
public PageTemplate(PageTemplate pageTemplate)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getContent()
public void setContent(String content)
public Space getSpace()
public void setSpace(Space space)
public void setModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey)
public void setReferencingModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey referencingModuleCompleteKey)
public com.atlassian.plugin.ModuleCompleteKey getModuleCompleteKey()
public com.atlassian.plugin.ModuleCompleteKey getReferencingModuleCompleteKey()
public String getModuleKey()
public String getPluginKey()
public PageTemplate getOriginalVersionPageTemplate()
public PageTemplate getLatestVersion()
Versioned
Note that drafts are a special version of a ContentEntityObject
so for drafts this method should return the ContentEntityObject
the drafts points to if it exists and the draft itself otherwise.
getLatestVersion
in interface Versioned
getLatestVersion
in class AbstractVersionedEntityObject
ContentEntityObject.DRAFT
public void setOriginalVersionPageTemplate(PageTemplate originalVersionPageTemplate)
public boolean isGlobalPageTemplate()
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public void convertToHistoricalVersion()
Versioned
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.
convertToHistoricalVersion
in interface Versioned
convertToHistoricalVersion
in class AbstractVersionedEntityObject
public String getTitle()
public BodyType getBodyType()
public void setBodyType(BodyType bodyType)
public String getReferencingPluginKey()
public void setReferencingPluginKey(String referencingPluginKey)
public String getReferencingModuleKey()
public void setReferencingModuleKey(String referencingModuleKey)
public ContentTemplateId getContentTemplateId()
Copyright © 2003–2020 Atlassian. All rights reserved.