Class RepoEvent<R extends Resource>

  • All Implemented Interfaces:
    EventAttributes

    public class RepoEvent<R extends Resource>
    extends java.lang.Object
    implements EventAttributes
    Represents Alfresco event.
    Author:
    Jamal Kaabi-Mofrad
    • Method Detail

      • getSpecversion

        public java.lang.String getSpecversion()
        Specified by:
        getSpecversion in interface EventAttributes
        Returns:
        The CloudEvents specification version
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface EventAttributes
        Returns:
        The type of an event which has happened.
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface EventAttributes
        Returns:
        The ID of the event, generated by the producer.
      • getSource

        public java.net.URI getSource()
        Specified by:
        getSource in interface EventAttributes
        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:
        getTime in interface EventAttributes
        Returns:
        The timestamp of when the occurrence happened.
      • getDataschema

        public java.net.URI getDataschema()
        Specified by:
        getDataschema in interface EventAttributes
        Returns:
        The schema that data adheres to.
      • getDatacontenttype

        public java.lang.String getDatacontenttype()
        Specified by:
        getDatacontenttype in interface EventAttributes
        Returns:
        The content type of the data attribute adhering to the RFC2046
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object