ccc.domain
Class TemplateRevision

java.lang.Object
  extended by ccc.domain.Entity
      extended by ccc.domain.RevisionEntity<Template>
          extended by ccc.domain.TemplateRevision
All Implemented Interfaces:
Jsonable, java.io.Serializable

public class TemplateRevision
extends RevisionEntity<Template>

The content of a template at a specific point in time.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
protected TemplateRevision()
          Constructor: for persistence only.
 
Method Summary
protected  Template delta()
          Retrieve the revision's state.
 java.lang.String getBody()
          Accessor.
 java.lang.String getDefinition()
          Accessor.
 MimeType getMimeType()
          Accessor.
 
Methods inherited from class ccc.domain.RevisionEntity
getActor, getComment, getTimestamp, isMajorChange, mapRevision, mapRevisions
 
Methods inherited from class ccc.domain.Entity
equals, getId, getVersion, hashCode, setId, toJson, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateRevision

protected TemplateRevision()
Constructor: for persistence only.

Method Detail

getBody

public final java.lang.String getBody()
Accessor.

Returns:
Returns the body.

getDefinition

public final java.lang.String getDefinition()
Accessor.

Returns:
Returns the definition.

getMimeType

public final MimeType getMimeType()
Accessor.

Returns:
Returns the mimeType.

delta

protected Template delta()
Retrieve the revision's state.

Specified by:
delta in class RevisionEntity<Template>
Returns:
A delta describing this revision's state.


Copyright © 2010. All Rights Reserved.