|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.domain.Entity
ccc.domain.RevisionEntity<T>
T
- public abstract class RevisionEntity<T>
Abstract implementation of a resource revision.
Constructor Summary | |
---|---|
protected |
RevisionEntity()
Constructor: for persistence only. |
protected |
RevisionEntity(java.util.Date timestamp,
UserEntity actor,
boolean majorChange,
java.lang.String comment)
Constructor. |
Method Summary | |
---|---|
protected abstract T |
delta()
Retrieve the revision's state. |
UserEntity |
getActor()
Accessor. |
java.lang.String |
getComment()
Accessor. |
java.util.Date |
getTimestamp()
Accessor. |
boolean |
isMajorChange()
Accessor. |
Revision |
mapRevision(int index)
Create a DTO for a revision. |
static java.util.List<Revision> |
mapRevisions(java.util.Map<java.lang.Integer,? extends RevisionEntity<?>> revisions)
Create DTOs for a collection of revisions. |
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 |
---|
protected RevisionEntity()
protected RevisionEntity(java.util.Date timestamp, UserEntity actor, boolean majorChange, java.lang.String comment)
timestamp
- The timestamp of the revision.actor
- The user causing the change.majorChange
- The boolean flag of the major change.comment
- The comment of the revision.Method Detail |
---|
public final java.util.Date getTimestamp()
public final UserEntity getActor()
public final boolean isMajorChange()
public final java.lang.String getComment()
protected abstract T delta()
public Revision mapRevision(int index)
index
- The revision's index.
public static java.util.List<Revision> mapRevisions(java.util.Map<java.lang.Integer,? extends RevisionEntity<?>> revisions)
revisions
- The revisions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |