Class ResourceOperationEventBuilder

    • Method Detail

      • fromResourceOperation

        public static ResourceOperationEventBuilder fromResourceOperation​(org.fcrepo.kernel.api.identifiers.FedoraId fedoraId,
                                                                          org.fcrepo.kernel.api.operations.ResourceOperation operation,
                                                                          String userAgentBaseUri)
        Creates a new EventBuilder based on an ResourceOperation
        Parameters:
        fedoraId - the FedoraId the operation is on
        operation - the ResourceOperation to create an event for
        userAgentBaseUri - the base uri of the user agent, optional
        Returns:
        new builder
      • merge

        public EventBuilder merge​(EventBuilder other)
        Description copied from interface: EventBuilder
        Merges another EventBuilder into this EventBuilder. This should be used to combine multiple events on the same resource.
        Specified by:
        merge in interface EventBuilder
        Parameters:
        other - another EventBuilder
        Returns:
        this builder
      • build

        public org.fcrepo.kernel.api.observer.Event build()
        Description copied from interface: EventBuilder
        Constructs a new Event object from the details in the builder.
        Specified by:
        build in interface EventBuilder
        Returns:
        new event