Package org.trellisldp.api
Interface Event
-
- All Known Implementing Classes:
SimpleEvent
public interface EventThis represents the data for a server event.It is expected that these events are serialized as conforming ActivityStream messages.
- See Also:
- Activity Streams 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<IRI>getAgents()Get the Agents associated with this event.InstantgetCreated()Get the created date for this event.IRIgetIdentifier()Get an identifier for this event.Optional<IRI>getInbox()Get the inbox corresponding to the resource corresponding to this event, if one exists.Optional<IRI>getObject()Get the resource identifier, if one exists.Collection<IRI>getObjectTypes()Get the types for the resource that is the object of this event.Collection<IRI>getTypes()Get types for this event.
-
-
-
Method Detail
-
getIdentifier
IRI getIdentifier()
Get an identifier for this event.- Returns:
- an IRI for this event
-
getAgents
Collection<IRI> getAgents()
Get the Agents associated with this event.- Returns:
- the agents associated with this event
-
getObject
Optional<IRI> getObject()
Get the resource identifier, if one exists.- Returns:
- an identifier for the resource that is the object of this event
-
getTypes
Collection<IRI> getTypes()
Get types for this event.- Returns:
- the types for this event
-
getObjectTypes
Collection<IRI> getObjectTypes()
Get the types for the resource that is the object of this event.- Returns:
- the types for the resource related to this event
-
getCreated
Instant getCreated()
Get the created date for this event.- Returns:
- the date-time for this event
-
-