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() |
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 |
setLabels(String labels)
Deprecated.
since 4.2, use LabelManager.addLabel() directly.
|
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, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings
applyChildVersioningPolicy, getConfluenceRevision, getLatestVersion, getOriginalVersion, 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 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()
@Deprecated public void setLabels(String labels)
labels
- - a space separated String of labels.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–2016 Atlassian. All rights reserved.