Class PageTemplate
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
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,Serializable,Cloneable
- See Also:
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
INITIAL_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove all data from the object that does not need to be saved by historical versions.booleanGet the latest, current version of this versioned object.com.atlassian.plugin.ModuleCompleteKeygetName()com.atlassian.plugin.ModuleCompleteKeygetSpace()The space this page template is constrained to.getTitle()inthashCode()booleanvoidsetBodyType(BodyType bodyType) voidsetContent(String content) voidsetDescription(String description) voidsetModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey) voidvoidsetOriginalVersionPageTemplate(PageTemplate originalVersionPageTemplate) voidsetReferencingModuleCompleteKey(com.atlassian.plugin.ModuleCompleteKey referencingModuleCompleteKey) voidsetReferencingModuleKey(String referencingModuleKey) voidsetReferencingPluginKey(String referencingPluginKey) voidMethods inherited from class com.atlassian.confluence.core.AbstractLabelableEntityObject
addLabelling, clone, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, removeLabelling, setLabellingsMethods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
getConfluenceRevision, getVersion, getVersionChildPolicy, isLatestVersion, isNew, setOriginalVersion, setVersionMethods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierNameMethods inherited from class com.atlassian.confluence.core.AnnotatedEntityObject
getCreationDate, getLastModificationDateMethods inherited from class com.atlassian.core.bean.EntityObject
getCurrentDate, getId, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.labels.EditableLabelable
getId, isPersistentMethods inherited from interface com.atlassian.confluence.core.Versioned
applyChildVersioningPolicy
-
Field Details
-
LABEL_SEPARATOR
The String used to separate thelabels.- See Also:
-
-
Constructor Details
-
PageTemplate
public PageTemplate() -
PageTemplate
-
-
Method Details
-
getName
-
setName
-
getDescription
-
setDescription
-
getContent
-
setContent
-
getSpace
The space this page template is constrained to. -
setSpace
-
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
-
getPluginKey
-
getOriginalVersionPageTemplate
-
getLatestVersion
Description copied from interface:VersionedGet the latest, current version of this versioned object. If this object is the current version, return this object.Note that drafts are a special version of a
ContentEntityObjectso for drafts this method should return theContentEntityObjectthe drafts points to if it exists and the draft itself otherwise.- Specified by:
getLatestVersionin interfaceVersioned- Overrides:
getLatestVersionin classAbstractVersionedEntityObject- Returns:
- the current version of this object.
- See Also:
-
setOriginalVersionPageTemplate
-
isGlobalPageTemplate
public boolean isGlobalPageTemplate() -
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
convertToHistoricalVersion
public void convertToHistoricalVersion()Description copied from interface:VersionedRemove 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:
convertToHistoricalVersionin interfaceVersioned- Overrides:
convertToHistoricalVersionin classAbstractVersionedEntityObject
-
getTitle
-
getBodyType
-
setBodyType
-
getReferencingPluginKey
-
setReferencingPluginKey
-
getReferencingModuleKey
-
setReferencingModuleKey
-
getContentTemplateId
-