com.atlassian.confluence.pages.templates
Class PageTemplate

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.confluence.core.ConfluenceEntityObject
          extended by com.atlassian.confluence.core.AbstractVersionedEntityObject
              extended by com.atlassian.confluence.pages.templates.PageTemplate
All Implemented Interfaces:
Versioned, java.io.Serializable, java.lang.Cloneable

public class PageTemplate
extends AbstractVersionedEntityObject

See Also:
Serialized Form

Field Summary
static java.lang.String LABEL_SEPARATOR
          The String used to separate the labels.
 
Fields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
INITIAL_VERSION
 
Constructor Summary
PageTemplate()
           
 
Method Summary
 void convertToHistoricalVersion()
          Remove all data from the object that does not need to be saved by historical versions.
 boolean equals(java.lang.Object o)
           
 java.lang.String getContent()
           
 java.lang.String getDescription()
           
 java.lang.String getLabels()
           
 java.lang.String getName()
           
 PageTemplate getOriginalVersionPageTemplate()
           
 Space getSpace()
          The space this page template is constrained to.
 int hashCode()
           
 boolean isGlobalPageTemplate()
           
 void setContent(java.lang.String content)
           
 void setDescription(java.lang.String description)
           
 void setLabels(java.lang.String labels)
           
 void setName(java.lang.String name)
           
 void setOriginalVersionPageTemplate(PageTemplate originalVersionPageTemplate)
           
 void setSpace(Space space)
           
 
Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreatorName, getLastModifierName, getRealClass, isPersistent, setCreatorName, setLastModifierName
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_SEPARATOR

public static final java.lang.String LABEL_SEPARATOR
The String used to separate the labels.

See Also:
Constant Field Values
Constructor Detail

PageTemplate

public PageTemplate()
Method Detail

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)

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

getLabels

public java.lang.String getLabels()
Returns:
a space separated String containing the labels for the template.

setLabels

public void setLabels(java.lang.String labels)


Copyright © 2003-2010 Atlassian. All Rights Reserved.