public class FedoraEventImpl extends Object implements FedoraEvent
Event
. Can represent either a single JCR event or several.Constructor and Description |
---|
FedoraEventImpl(Collection<EventType> types,
String path,
String userID,
String userData,
long date,
Map<String,String> info)
Create a new FedoraEvent
|
FedoraEventImpl(EventType type,
String path,
String userID,
String userData,
long date,
Map<String,String> info)
Create a new FedoraEvent
|
Modifier and Type | Method and Description |
---|---|
FedoraEvent |
addProperty(String property)
Add a property name to this event
|
FedoraEvent |
addType(EventType type) |
static FedoraEvent |
from(javax.jcr.observation.Event event)
Convert a JCR Event to a FedoraEvent
|
long |
getDate() |
String |
getEventID()
Get the event ID.
|
Map<String,String> |
getInfo()
Return a Map with any additional information about the event.
|
String |
getPath() |
Set<String> |
getProperties() |
Set<EventType> |
getTypes() |
String |
getUserData() |
String |
getUserID() |
String |
toString() |
static EventType |
valueOf(Integer i)
Get the Fedora event type for a JCR type
|
public FedoraEventImpl(EventType type, String path, String userID, String userData, long date, Map<String,String> info)
type
- the Fedora EventTypepath
- the node path corresponding to this eventuserID
- the acting user for this eventuserData
- any user data for this eventdate
- the timestamp for this eventinfo
- supplementary informationpublic FedoraEventImpl(Collection<EventType> types, String path, String userID, String userData, long date, Map<String,String> info)
types
- a collection of Fedora EventTypespath
- the node path corresponding to this eventuserID
- the acting user for this eventuserData
- any user data for this eventdate
- the timestamp for this eventinfo
- supplementary informationpublic 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 String getUserID()
getUserID
in interface FedoraEvent
Event
spublic String getUserData()
getUserData
in interface FedoraEvent
Event
spublic long getDate()
getDate
in interface FedoraEvent
public String getEventID()
getEventID
in interface FedoraEvent
public Map<String,String> getInfo()
getInfo
in interface FedoraEvent
public static EventType valueOf(Integer i)
i
- the integer value of a JCR typepublic static FedoraEvent from(javax.jcr.observation.Event event)
event
- the JCR EventCopyright © 2013–2016 DuraSpace, Inc.. All rights reserved.