Constructor and Description |
---|
SimpleEvent(String object,
IRI agent,
List<IRI> activityTypes,
List<IRI> objectTypes)
Create a new notification.
|
Modifier and Type | Method and Description |
---|---|
Collection<IRI> |
getAgents()
Get the Agents associated with this event.
|
Instant |
getCreated()
Get the created date for this event.
|
IRI |
getIdentifier()
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.
|
public SimpleEvent(String object, IRI agent, List<IRI> activityTypes, List<IRI> objectTypes)
object
- the resourceagent
- the agent associated with this eventactivityTypes
- the activity types associated with this eventobjectTypes
- the rdf types of the resourcepublic IRI getIdentifier()
Event
getIdentifier
in interface Event
public Collection<IRI> getAgents()
Event
public Optional<IRI> getObject()
Event
public Collection<IRI> getTypes()
Event
public Collection<IRI> getObjectTypes()
Event
getObjectTypes
in interface Event
public Instant getCreated()
Event
getCreated
in interface Event