Package org.fcrepo.kernel.impl.observer
Class EventImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.observer.EventImpl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseUrl()
Instant
getDate()
String
getEventID()
Get the event ID.FedoraId
getFedoraId()
String
getPath()
Set<String>
getResourceTypes()
Set<EventType>
getTypes()
String
getUserAgent()
String
getUserID()
URI
getUserURI()
Get the user URI associated with this event.String
toString()
-
-
-
Constructor Detail
-
EventImpl
public EventImpl(FedoraId fedoraId, Set<EventType> types, Set<String> resourceTypes, String userID, URI userURI, String userAgent, String baseUrl, Instant date)
Create a new FedoraEvent- Parameters:
fedoraId
- the FedoraId of the resource the event is ontypes
- a collection of Fedora EventTypesresourceTypes
- the rdf types of the corresponding resourceuserID
- the acting user for this eventuserURI
- the uri of the acting user for this eventuserAgent
- the user-agent associated with the requestbaseUrl
- the originating request's baseUrldate
- the timestamp for this event
-
-
Method Detail
-
getFedoraId
public FedoraId getFedoraId()
- Specified by:
getFedoraId
in interfaceEvent
- Returns:
- the FedoraId of the resource associated with this event.
-
getResourceTypes
public Set<String> getResourceTypes()
- Specified by:
getResourceTypes
in interfaceEvent
- Returns:
- the RDF Types of the resource associated with this event.
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceEvent
- Returns:
- the path to the
FedoraResource
-
getEventID
public String getEventID()
Description copied from interface:Event
Get the event ID.- Specified by:
getEventID
in interfaceEvent
- Returns:
- Event identifier to use for building event URIs (e.g., in an external triplestore).
-
getUserURI
public URI getUserURI()
Description copied from interface:Event
Get the user URI associated with this event.- Specified by:
getUserURI
in interfaceEvent
- Returns:
- user URI
-
getUserAgent
public String getUserAgent()
- Specified by:
getUserAgent
in interfaceEvent
- Returns:
- The user-agent associated to the request
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interfaceEvent
- Returns:
- The originating request's baseUrl
-
-