Class PageTemplate

All Implemented Interfaces:
Versioned, EditableLabelable, Labelable, Serializable, Cloneable

public class PageTemplate extends AbstractLabelableEntityObject
See Also:
  • Field Details

  • Constructor Details

    • PageTemplate

      public PageTemplate()
    • PageTemplate

      public PageTemplate(PageTemplate pageTemplate)
  • Method Details

    • 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)
    • 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 String getModuleKey()
    • getPluginKey

      public String getPluginKey()
    • getOriginalVersionPageTemplate

      public PageTemplate getOriginalVersionPageTemplate()
    • getLatestVersion

      public PageTemplate getLatestVersion()
      Description copied from interface: Versioned
      Get 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 ContentEntityObject so for drafts this method should return the ContentEntityObject the drafts points to if it exists and the draft itself otherwise.

      Specified by:
      getLatestVersion in interface Versioned
      Overrides:
      getLatestVersion in class AbstractVersionedEntityObject
      Returns:
      the current version of this object.
      See Also:
    • 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
    • getTitle

      public String getTitle()
    • getBodyType

      public BodyType getBodyType()
    • setBodyType

      public void setBodyType(BodyType bodyType)
    • getReferencingPluginKey

      public String getReferencingPluginKey()
    • setReferencingPluginKey

      public void setReferencingPluginKey(String referencingPluginKey)
    • getReferencingModuleKey

      public String getReferencingModuleKey()
    • setReferencingModuleKey

      public void setReferencingModuleKey(String referencingModuleKey)
    • getContentTemplateId

      public ContentTemplateId getContentTemplateId()