Class EventImpl

  • All Implemented Interfaces:
    org.fcrepo.kernel.api.observer.Event

    public class EventImpl
    extends Object
    implements org.fcrepo.kernel.api.observer.Event
    An event that describes one or more actions that a user preformed on a resource.
    Author:
    pwinckles
    • Constructor Detail

      • EventImpl

        public EventImpl​(org.fcrepo.kernel.api.identifiers.FedoraId fedoraId,
                         Set<org.fcrepo.kernel.api.observer.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 on
        types - a collection of Fedora EventTypes
        resourceTypes - the rdf types of the corresponding resource
        userID - the acting user for this event
        userURI - the uri of the acting user for this event
        userAgent - the user-agent associated with the request
        baseUrl - the originating request's baseUrl
        date - the timestamp for this event
    • Method Detail

      • getFedoraId

        public org.fcrepo.kernel.api.identifiers.FedoraId getFedoraId()
        Specified by:
        getFedoraId in interface org.fcrepo.kernel.api.observer.Event
      • getTypes

        public Set<org.fcrepo.kernel.api.observer.EventType> getTypes()
        Specified by:
        getTypes in interface org.fcrepo.kernel.api.observer.Event
      • getResourceTypes

        public Set<StringgetResourceTypes()
        Specified by:
        getResourceTypes in interface org.fcrepo.kernel.api.observer.Event
      • getPath

        public String getPath()
        Specified by:
        getPath in interface org.fcrepo.kernel.api.observer.Event
      • getUserID

        public String getUserID()
        Specified by:
        getUserID in interface org.fcrepo.kernel.api.observer.Event
      • getDate

        public Instant getDate()
        Specified by:
        getDate in interface org.fcrepo.kernel.api.observer.Event
      • getEventID

        public String getEventID()
        Specified by:
        getEventID in interface org.fcrepo.kernel.api.observer.Event
      • getUserURI

        public URI getUserURI()
        Specified by:
        getUserURI in interface org.fcrepo.kernel.api.observer.Event
      • getUserAgent

        public String getUserAgent()
        Specified by:
        getUserAgent in interface org.fcrepo.kernel.api.observer.Event
      • getBaseUrl

        public String getBaseUrl()
        Specified by:
        getBaseUrl in interface org.fcrepo.kernel.api.observer.Event