Class RepoEvent<D extends DataAttributes<? extends Resource>>
- java.lang.Object
-
- org.alfresco.event.sdk.model.v1.model.RepoEvent<D>
-
- All Implemented Interfaces:
EventAttributes
public class RepoEvent<D extends DataAttributes<? extends Resource>> extends Object implements EventAttributes
Represents Alfresco event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepoEvent.Builder<D extends DataAttributes<? extends Resource>>Builder for creating aRepoEventinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <D extends DataAttributes<? extends Resource>>
RepoEvent.Builder<D>builder()booleanequals(Object o)DgetData()StringgetDatacontenttype()URIgetDataschema()StringgetId()URIgetSource()StringgetSpecversion()ZonedDateTimegetTime()StringgetType()inthashCode()StringtoString()
-
-
-
Method Detail
-
builder
public static <D extends DataAttributes<? extends Resource>> RepoEvent.Builder<D> builder()
-
getSpecversion
public String getSpecversion()
- Specified by:
getSpecversionin interfaceEventAttributes- Returns:
- The CloudEvents specification version
-
getType
public String getType()
- Specified by:
getTypein interfaceEventAttributes- Returns:
- The type of an event which has happened.
-
getId
public String getId()
- Specified by:
getIdin interfaceEventAttributes- Returns:
- The ID of the event, generated by the producer.
-
getSource
public URI getSource()
- Specified by:
getSourcein interfaceEventAttributes- Returns:
- The context in which an event happened. E.g. The instance of a DBP component that produced the event.
-
getTime
public ZonedDateTime getTime()
- Specified by:
getTimein interfaceEventAttributes- Returns:
- The timestamp of when the occurrence happened.
-
getDataschema
public URI getDataschema()
- Specified by:
getDataschemain interfaceEventAttributes- Returns:
- The schema that
dataadheres to.
-
getDatacontenttype
public String getDatacontenttype()
- Specified by:
getDatacontenttypein interfaceEventAttributes- Returns:
- The content type of the data attribute adhering to the RFC2046
-
getData
public D getData()
-
-