Interface Event

  • All Known Implementing Classes:
    SimpleEvent

    public interface Event
    This 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 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
      • getInbox

        Optional<IRI> getInbox()
        Get the inbox corresponding to the resource corresponding to this event, if one exists.
        Returns:
        the inbox