public class FedoraEventImpl extends Object implements FedoraEvent
Event
. Can represent either a single JCR event or several.Constructor and Description |
---|
FedoraEventImpl(javax.jcr.observation.Event e)
Wrap a JCR Event with our FedoraEvent decorators
|
FedoraEventImpl(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(EventType type) |
long |
getDate() |
String |
getEventID()
Get the event ID.
|
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<EventType> |
getTypes() |
String |
getUserData() |
String |
getUserID() |
String |
toString() |
public FedoraEventImpl(javax.jcr.observation.Event e)
e
- the JCR eventpublic FedoraEventImpl(FedoraEvent e)
e
- the given fedora eventpublic Set<EventType> getTypes()
getTypes
in interface FedoraEvent
Event
spublic FedoraEvent addType(EventType type)
addType
in interface FedoraEvent
type
- the typepublic Set<String> getProperties()
getProperties
in interface FedoraEvent
Event
spublic FedoraEvent addProperty(String property)
addProperty
in interface FedoraEvent
property
- property namepublic String getPath()
getPath
in interface FedoraEvent
Event
spublic static String getPath(javax.jcr.observation.Event e)
e
- JCR Eventpublic String getUserID()
getUserID
in interface FedoraEvent
Event
spublic String getUserData()
getUserData
in interface FedoraEvent
Event
spublic long getDate()
getDate
in interface FedoraEvent
Event
spublic String getEventID()
getEventID
in interface FedoraEvent
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.