Package org.fcrepo.kernel.impl.observer
Interface EventBuilder
- All Known Implementing Classes:
ResourceOperationEventBuilder
public interface EventBuilder
Stores details about an Event.
- Author:
- pwinckles
-
Method Summary
Modifier and TypeMethodDescriptionorg.fcrepo.kernel.api.observer.Eventbuild()Constructs a new Event object from the details in the builder.merge(EventBuilder other) Merges another EventBuilder into this EventBuilder.withBaseUrl(String baseUrl) Sets the baseUrl of the requestswithResourceTypes(Set<String> resourceTypes) Sets the resource's RDF Types on the eventwithUserAgent(String userAgent) Sets the user's user-agent
-
Method Details
-
merge
Merges another EventBuilder into this EventBuilder. This should be used to combine multiple events on the same resource.- Parameters:
other- another EventBuilder- Returns:
- this builder
-
withResourceTypes
Sets the resource's RDF Types on the event- Parameters:
resourceTypes- RDF Types- Returns:
- this builder
-
withBaseUrl
Sets the baseUrl of the requests- Parameters:
baseUrl- the base url- Returns:
- this builder
-
withUserAgent
Sets the user's user-agent- Parameters:
userAgent- the user's user-agent- Returns:
- this builder
-
build
org.fcrepo.kernel.api.observer.Event build()Constructs a new Event object from the details in the builder.- Returns:
- new event
-