Class EventRepresentation

All Implemented Interfaces:
ResourceRepresentation, SourceableRepresentation, org.svenson.DynamicProperties
Direct Known Subclasses:
AlarmRepresentation, AuditRecordRepresentation

public class EventRepresentation extends AbstractExtensibleRepresentation implements SourceableRepresentation
A Java Representation for the Media Type EventMediaType.EVENT.
  • Constructor Details

    • EventRepresentation

      public EventRepresentation()
  • Method Details

    • getId

      @JSONConverter(type=IDTypeConverter.class) @JSONProperty(ignoreIfNull=true) public GId getId()
    • setId

      public void setId(GId id)
    • getType

      @JSONProperty(ignoreIfNull=true) public String getType()
    • setType

      public void setType(String type)
    • getTime

      @JSONProperty(value="deprecated_Time", ignore=true) @Deprecated public Date getTime()
      Deprecated.
    • setTime

      @Deprecated public void setTime(Date time)
      Deprecated.
    • getDateTime

      @JSONProperty(value="time", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getDateTime()
    • setDateTime

      public void setDateTime(org.joda.time.DateTime time)
    • getText

      @JSONProperty(value="text", ignoreIfNull=true) public String getText()
    • setText

      public void setText(String text)
    • getSource

      @JSONProperty(value="source", ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()
      Specified by:
      getSource in interface SourceableRepresentation
    • setSource

      public void setSource(ManagedObjectRepresentation managedObject)
      Specified by:
      setSource in interface SourceableRepresentation
    • getExternalSource

      @JSONProperty(value="externalSource", ignoreIfNull=true) public ExternalIDRepresentation getExternalSource()
    • setExternalSource

      public void setExternalSource(ExternalIDRepresentation externalSource)
    • getCreationTime

      @JSONProperty(value="deprecated_CreationTime", ignore=true) @Deprecated public Date getCreationTime()
      Deprecated.
    • setCreationTime

      @Deprecated public void setCreationTime(Date creationTime)
      Deprecated.
    • getCreationDateTime

      @JSONProperty(value="creationTime", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getCreationDateTime()
    • setCreationDateTime

      public void setCreationDateTime(org.joda.time.DateTime creationTime)
    • getLastUpdatedDateTime

      @JSONProperty(value="lastUpdated", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getLastUpdatedDateTime()
    • setLastUpdatedDateTime

      public void setLastUpdatedDateTime(org.joda.time.DateTime lastUpdated)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object