|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.model.ChangeEvent
public final class ChangeEvent
Representation of a single action that occurred to an object. Each
ChangeEvent must contains following information:
ChangeType.ChangeEvent optionally may include the new values of properties
on the object (if any).ChangeEvent optionally may include ids of policies applied to
the object referenced in the change event.ChangeEvent optionally may include the ACLs applied to the
object referenced in the change event.
RepositoryCapabilities.getCapabilityChanges()| Constructor Summary | |
|---|---|
ChangeEvent(String logToken,
String objectId,
ChangeType changeType,
Calendar date)
|
|
ChangeEvent(String logToken,
String objectId,
ChangeType changeType,
Calendar date,
List<Property<?>> properties)
Deprecated. |
|
ChangeEvent(String logToken,
String objectId,
ChangeType changeType,
Calendar date,
List<Property<?>> properties,
Set<String> policiesId,
List<AccessControlEntry> acl)
Create change event. |
|
| Method Summary | |
|---|---|
List<AccessControlEntry> |
getAcl()
For event of changeType "security" may return ACLs applied to the object referenced in the change event. |
Calendar |
getDate()
Time of change to the object. |
String |
getLogToken()
Get change log token. |
String |
getObjectId()
|
Set<String> |
getPolicyIds()
For event of changeType "security" may return ids of policies applied to the object referenced in the change event. |
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 |
|---|
public ChangeEvent(String logToken,
String objectId,
ChangeType changeType,
Calendar date)
public ChangeEvent(String logToken,
String objectId,
ChangeType changeType,
Calendar date,
List<Property<?>> properties)
logToken - unique token for this event. Each event can be retrieved
by this tokenobjectId - id of object to which the change occurredchangeType - type of changesdate - date when changes occursproperties - properties which were updated for object. Typically,
this parameter should be provided ONLY when changes type is
"updated". NOTE This implementation does not validate itChangeType
public ChangeEvent(String logToken,
String objectId,
ChangeType changeType,
Calendar date,
List<Property<?>> properties,
Set<String> policiesId,
List<AccessControlEntry> acl)
logToken - unique token for this event. Each event can be retrieved
by this tokenobjectId - id of object to which the change occurredchangeType - type of changesdate - date when changes occursproperties - properties which were updated for object. Typically,
this parameter should be provided ONLY when changes type is
"updated". NOTE This implementation does not validate itpoliciesId - set of ids of policies applied to the object referenced
in the change event. Typically, this parameter should NOT be
provided if changes type is other then "security" or parameter
acl is provided. In other worlds typically expect
policiesId or acl but not both. NOTE This
implementation does not validate itacl - ACLs applied to the object referenced in the change event.
Typically, this parameter should NOT be provided if changes type is
other then "security" or parameter policiesId is
provided. In other worlds typically expect acl or
policiesId but not both. NOTE This implementation does
not validate itChangeType| Method Detail |
|---|
public String getLogToken()
public String getObjectId()
public ChangeType getType()
ChangeTypepublic Calendar getDate()
null if this info is unavailablepublic List<Property<?>> getProperties()
nullpublic Set<String> getPolicyIds()
nullpublic List<AccessControlEntry> getAcl()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||