Package org.alfresco.repo.event.v1.model
Class RepoEvent<D extends DataAttributes<? extends Resource>>
java.lang.Object
org.alfresco.repo.event.v1.model.RepoEvent<D>
- All Implemented Interfaces:
EventAttributes
public class RepoEvent<D extends DataAttributes<? extends Resource>>
extends Object
implements EventAttributes
Represents Alfresco event.
- Author:
- Jamal Kaabi-Mofrad
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepoEvent.Builder<D extends DataAttributes<? extends Resource>>Builder for creating aRepoEventinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <D extends DataAttributes<? extends Resource>>
RepoEvent.Builder<D>builder()booleangetData()getId()getTime()getType()inthashCode()toString()
-
Constructor Details
-
RepoEvent
-
-
Method Details
-
builder
-
getSpecversion
- Specified by:
getSpecversionin interfaceEventAttributes- Returns:
- The CloudEvents specification version
-
getType
- Specified by:
getTypein interfaceEventAttributes- Returns:
- The type of an event which has happened.
-
getId
- Specified by:
getIdin interfaceEventAttributes- Returns:
- The ID of the event, generated by the producer.
-
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
- Specified by:
getTimein interfaceEventAttributes- Returns:
- The timestamp of when the occurrence happened.
-
getDataschema
- Specified by:
getDataschemain interfaceEventAttributes- Returns:
- The schema that
dataadheres to.
-
getDatacontenttype
- Specified by:
getDatacontenttypein interfaceEventAttributes- Returns:
- The content type of the data attribute adhering to the RFC2046
-
getData
-
getExtensionAttributes
- Specified by:
getExtensionAttributesin interfaceEventAttributes- Returns:
- Optional extension attributes that can be additionally added to the event.
See CloudEvents v1.0 specification Extension Context Attributes for more details.
-
toBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-