Package org.alfresco.repo.event.v1.model
Class RepoEvent<R extends Resource>
- java.lang.Object
-
- org.alfresco.repo.event.v1.model.RepoEvent<R>
-
- All Implemented Interfaces:
EventAttributes
public class RepoEvent<R extends Resource> extends java.lang.Object implements EventAttributes
Represents Alfresco event.- Author:
- Jamal Kaabi-Mofrad
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepoEvent.Builder<R extends Resource>Builder for creating aRepoEventinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R extends Resource>
RepoEvent.Builder<R>builder()booleanequals(java.lang.Object o)EventData<R>getData()java.lang.StringgetDatacontenttype()java.net.URIgetDataschema()java.lang.StringgetId()java.net.URIgetSource()java.lang.StringgetSpecversion()java.time.ZonedDateTimegetTime()java.lang.StringgetType()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static <R extends Resource> RepoEvent.Builder<R> builder()
-
getSpecversion
public java.lang.String getSpecversion()
- Specified by:
getSpecversionin interfaceEventAttributes- Returns:
- The CloudEvents specification version
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceEventAttributes- Returns:
- The type of an event which has happened.
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceEventAttributes- Returns:
- The ID of the event, generated by the producer.
-
getSource
public java.net.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 java.time.ZonedDateTime getTime()
- Specified by:
getTimein interfaceEventAttributes- Returns:
- The timestamp of when the occurrence happened.
-
getDataschema
public java.net.URI getDataschema()
- Specified by:
getDataschemain interfaceEventAttributes- Returns:
- The schema that
dataadheres to.
-
getDatacontenttype
public java.lang.String getDatacontenttype()
- Specified by:
getDatacontenttypein interfaceEventAttributes- Returns:
- The content type of the data attribute adhering to the RFC2046
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-