ccc.api.core
Class Revision

java.lang.Object
  extended by ccc.api.core.Revision
All Implemented Interfaces:
java.io.Serializable

public final class Revision
extends java.lang.Object
implements java.io.Serializable

A summary of a log entry.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
Revision()
          Constructor.
Revision(CommandType command, Username actorUsername, java.util.Date on, long index, java.lang.String comment, boolean isMajorEdit)
          Constructor.
 
Method Summary
 Username getActorUsername()
          Accessor.
 CommandType getCommand()
          Deprecated. 
 java.lang.String getComment()
          Accessor.
 java.util.Date getHappenedOn()
          Accessor.
 long getIndex()
          Accessor.
 boolean isMajor()
          Accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Revision

public Revision()
Constructor.


Revision

public Revision(CommandType command,
                Username actorUsername,
                java.util.Date on,
                long index,
                java.lang.String comment,
                boolean isMajorEdit)
Constructor.

Parameters:
command - The action.
actorUsername - The action's actor.
on - The date of the action.
index - The index of the action.
comment - The comment of the action.
isMajorEdit - Is the action a major edit.
Method Detail

getCommand

@Deprecated
public CommandType getCommand()
Deprecated. 

Accessor.

Returns:
Returns the action.

getActorUsername

public Username getActorUsername()
Accessor.

Returns:
Returns the actor.

getHappenedOn

public java.util.Date getHappenedOn()
Accessor.

Returns:
Returns the happenedOn.

getIndex

public long getIndex()
Accessor.

Returns:
Returns the index.

getComment

public java.lang.String getComment()
Accessor.

Returns:
Returns the comment.

isMajor

public boolean isMajor()
Accessor.

Returns:
Returns the isMajor.


Copyright © 2010. All Rights Reserved.