| 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()
EventgetIdentifier in interface Eventpublic Collection<IRI> getAgents()
Eventpublic Optional<IRI> getObject()
Eventpublic Collection<IRI> getTypes()
Eventpublic Collection<IRI> getObjectTypes()
EventgetObjectTypes in interface Eventpublic Instant getCreated()
EventgetCreated in interface Event