org.xcmis.spi.model
Class ChangeEvent

java.lang.Object
  extended by org.xcmis.spi.model.ChangeEvent

public final class ChangeEvent
extends Object

Representation of a single action that occurred to an object. Each ChangeEvent must contains following information:

Version:
$Id: ChangeEvent.java 316 2010-03-09 15:20:28Z andrew00x $
Author:
Andrey Parfonov
See Also:
RepositoryCapabilities.getCapabilityChanges()

Constructor Summary
ChangeEvent(String logToken, String objectId, ChangeType changeType, Calendar date, List<Property<?>> properties)
           
 
Method Summary
 Calendar getDate()
          Time of change to the object.
 String getLogToken()
          Get change log token.
 String getObjectId()
           
 List<Property<?>> getProperties()
          For events of changeType "updated", list may optionally include the new values of properties on the object.
 ChangeType getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeEvent

public ChangeEvent(String logToken,
                   String objectId,
                   ChangeType changeType,
                   Calendar date,
                   List<Property<?>> properties)
Method Detail

getLogToken

public String getLogToken()
Get change log token. It is unique identifier of change.

Returns:
change log token

getObjectId

public String getObjectId()
Returns:
id of changed object

getType

public ChangeType getType()
Returns:
type of changes
See Also:
ChangeType

getDate

public Calendar getDate()
Time of change to the object.

Returns:
time of change or null if this info is unavailable

getProperties

public List<Property<?>> getProperties()
For events of changeType "updated", list may optionally include the new values of properties on the object.

Returns:
updated properties or null


Copyright © 2011 eXo Platform SAS. All Rights Reserved.