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,
Set<String> resourceTypes,
String userID,
URI userURI,
Instant date,
Map<String,String> info)
Create a new FedoraEvent
|
FedoraEventImpl(EventType type,
String path,
Set<String> resourceTypes,
String userID,
URI userURI,
Instant date,
Map<String,String> info)
Create a new FedoraEvent
|
Modifier and Type | Method and Description |
---|---|
static FedoraEvent |
from(javax.jcr.observation.Event event)
Convert a JCR Event to a FedoraEvent
|
Instant |
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> |
getResourceTypes() |
static Stream<String> |
getResourceTypes(javax.jcr.observation.Event event)
Get the RDF Types of the resource corresponding to this JCR Event
|
Set<EventType> |
getTypes() |
String |
getUserID() |
URI |
getUserURI()
Get the user URI associated with this event.
|
String |
toString() |
static EventType |
valueOf(Integer i)
Get the Fedora event type for a JCR type
|
public FedoraEventImpl(EventType type, String path, Set<String> resourceTypes, String userID, URI userURI, Instant date, Map<String,String> info)
type
- the Fedora EventTypepath
- the node path corresponding to this eventresourceTypes
- the rdf types of the corresponding resourceuserID
- the acting user for this eventuserURI
- the uri of the acting user for this eventdate
- the timestamp for this eventinfo
- supplementary informationpublic FedoraEventImpl(Collection<EventType> types, String path, Set<String> resourceTypes, String userID, URI userURI, Instant date, Map<String,String> info)
types
- a collection of Fedora EventTypespath
- the node path corresponding to this eventresourceTypes
- the rdf types of the corresponding resourceuserID
- the acting user for this eventuserURI
- the uri of the acting user for this eventdate
- the timestamp for this eventinfo
- supplementary informationpublic Set<EventType> getTypes()
getTypes
in interface FedoraEvent
Event
spublic Set<String> getResourceTypes()
getResourceTypes
in interface FedoraEvent
public String getPath()
getPath
in interface FedoraEvent
Event
spublic String getUserID()
getUserID
in interface FedoraEvent
Event
spublic URI getUserURI()
FedoraEvent
getUserURI
in interface FedoraEvent
Event
spublic Instant 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 Eventpublic static Stream<String> getResourceTypes(javax.jcr.observation.Event event)
event
- the JCR eventCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.