public class FedoraEvent extends Object
Event
. Can represent either a single JCR event or several.Constructor and Description |
---|
FedoraEvent(javax.jcr.observation.Event e)
Wrap a JCR Event with our FedoraEvent decorators
|
FedoraEvent(FedoraEvent e)
Create a FedoraEvent from an existing FedoraEvent object
Note: Only the wrapped JCR event is passed on to the new object.
|
Modifier and Type | Method and Description |
---|---|
FedoraEvent |
addProperty(String property)
Add a property name to this event
|
FedoraEvent |
addType(Integer type) |
long |
getDate() |
String |
getEventID()
Get the event ID.
|
Map<Object,Object> |
getInfo() |
String |
getPath() |
static String |
getPath(javax.jcr.observation.Event e)
Get the path of the node related to this event (removing property names
from the end of property nodes).
|
Set<String> |
getProperties() |
Set<Integer> |
getTypes() |
String |
getUserData() |
String |
getUserID() |
String |
toString() |
public FedoraEvent(javax.jcr.observation.Event e)
e
- the JCR eventpublic FedoraEvent(FedoraEvent e)
e
- the given fedora eventpublic FedoraEvent addType(Integer type)
type
- the typepublic Set<String> getProperties()
Event
spublic FedoraEvent addProperty(String property)
property
- property namepublic static String getPath(javax.jcr.observation.Event e)
e
- JCR Eventpublic String getUserData()
Event
spublic long getDate()
Event
spublic String getEventID()
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.