Class Card

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.opfab.avro.Card
All Implemented Interfaces:
Externalizable, Serializable, Comparable<org.apache.avro.specific.SpecificRecord>, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.GenericRecord, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificRecord

public class Card extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
See Also:
  • Field Details

    • SCHEMA$

      public static final org.apache.avro.Schema SCHEMA$
  • Constructor Details

    • Card

      public Card()
      Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should use newBuilder().
    • Card

      public Card(String publisher, String processVersion, String process, String processInstanceId, String state, Instant publishDate, Instant lttd, Instant startDate, Instant endDate, Instant expirationDate, SeverityType severity, List<String> tags, List<TimeSpan> timeSpans, I18n title, I18n summary, String titleTranslated, String summaryTranslated, List<String> userRecipients, List<String> groupRecipients, List<String> entitiesAllowedToRespond, List<String> entitiesRequiredToRespond, List<String> entityRecipients, List<String> entitiesAllowedToEdit, String wktGeometry, String wktProjection, String data, Boolean hasBeenAcknowledged, Boolean hasBeenRead, PublisherTypeEnum publisherType, String representative, PublisherTypeEnum representativeType, Integer secondsBeforeTimeSpanForReminder)
      All-args constructor.
      Parameters:
      publisher - The new value for publisher
      processVersion - The new value for processVersion
      process - The new value for process
      processInstanceId - The new value for processInstanceId
      state - The new value for state
      publishDate - The new value for publishDate
      lttd - The new value for lttd
      startDate - The new value for startDate
      endDate - The new value for endDate
      expirationDate - The new value for expirationDate
      severity - The new value for severity
      tags - The new value for tags
      timeSpans - The new value for timeSpans
      title - The new value for title
      summary - The new value for summary
      titleTranslated - The new value for titleTranslated
      summaryTranslated - The new value for summaryTranslated
      userRecipients - The new value for userRecipients
      groupRecipients - The new value for groupRecipients
      entitiesAllowedToRespond - The new value for entitiesAllowedToRespond
      entitiesRequiredToRespond - The new value for entitiesRequiredToRespond
      entityRecipients - The new value for entityRecipients
      entitiesAllowedToEdit - The new value for entitiesAllowedToEdit
      wktGeometry - The new value for wktGeometry
      wktProjection - The new value for wktProjection
      data - The new value for data
      hasBeenAcknowledged - The new value for hasBeenAcknowledged
      hasBeenRead - The new value for hasBeenRead
      publisherType - The new value for publisherType
      representative - The new value for representative
      representativeType - The new value for representativeType
      secondsBeforeTimeSpanForReminder - The new value for secondsBeforeTimeSpanForReminder
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
    • getEncoder

      public static org.apache.avro.message.BinaryMessageEncoder<Card> getEncoder()
      Return the BinaryMessageEncoder instance used by this class.
      Returns:
      the message encoder used by this class
    • getDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<Card> getDecoder()
      Return the BinaryMessageDecoder instance used by this class.
      Returns:
      the message decoder used by this class
    • createDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<Card> createDecoder(org.apache.avro.message.SchemaStore resolver)
      Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
      Parameters:
      resolver - a SchemaStore used to find schemas by fingerprint
      Returns:
      a BinaryMessageDecoder instance for this class backed by the given SchemaStore
    • toByteBuffer

      public ByteBuffer toByteBuffer() throws IOException
      Serializes this Card to a ByteBuffer.
      Returns:
      a buffer holding the serialized data for this instance
      Throws:
      IOException - if this instance could not be serialized
    • fromByteBuffer

      public static Card fromByteBuffer(ByteBuffer b) throws IOException
      Deserializes a Card from a ByteBuffer.
      Parameters:
      b - a byte buffer holding serialized data for an instance of this class
      Returns:
      a Card instance decoded from the given buffer
      Throws:
      IOException - if the given bytes could not be deserialized into an instance of this class
    • getSpecificData

      public org.apache.avro.specific.SpecificData getSpecificData()
      Overrides:
      getSpecificData in class org.apache.avro.specific.SpecificRecordBase
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • get

      public Object get(int field$)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • getConversion

      public org.apache.avro.Conversion<?> getConversion(int field)
      Overrides:
      getConversion in class org.apache.avro.specific.SpecificRecordBase
    • put

      public void put(int field$, Object value$)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • getPublisher

      public String getPublisher()
      Gets the value of the 'publisher' field.
      Returns:
      The value of the 'publisher' field.
    • setPublisher

      public void setPublisher(String value)
      Sets the value of the 'publisher' field.
      Parameters:
      value - the value to set.
    • getProcessVersion

      public String getProcessVersion()
      Gets the value of the 'processVersion' field.
      Returns:
      The value of the 'processVersion' field.
    • setProcessVersion

      public void setProcessVersion(String value)
      Sets the value of the 'processVersion' field.
      Parameters:
      value - the value to set.
    • getProcess

      public String getProcess()
      Gets the value of the 'process' field.
      Returns:
      The value of the 'process' field.
    • setProcess

      public void setProcess(String value)
      Sets the value of the 'process' field.
      Parameters:
      value - the value to set.
    • getProcessInstanceId

      public String getProcessInstanceId()
      Gets the value of the 'processInstanceId' field.
      Returns:
      The value of the 'processInstanceId' field.
    • setProcessInstanceId

      public void setProcessInstanceId(String value)
      Sets the value of the 'processInstanceId' field.
      Parameters:
      value - the value to set.
    • getState

      public String getState()
      Gets the value of the 'state' field.
      Returns:
      The value of the 'state' field.
    • setState

      public void setState(String value)
      Sets the value of the 'state' field.
      Parameters:
      value - the value to set.
    • getPublishDate

      public Instant getPublishDate()
      Gets the value of the 'publishDate' field.
      Returns:
      The value of the 'publishDate' field.
    • setPublishDate

      public void setPublishDate(Instant value)
      Sets the value of the 'publishDate' field.
      Parameters:
      value - the value to set.
    • getLttd

      public Instant getLttd()
      Gets the value of the 'lttd' field.
      Returns:
      The value of the 'lttd' field.
    • setLttd

      public void setLttd(Instant value)
      Sets the value of the 'lttd' field.
      Parameters:
      value - the value to set.
    • getStartDate

      public Instant getStartDate()
      Gets the value of the 'startDate' field.
      Returns:
      The value of the 'startDate' field.
    • setStartDate

      public void setStartDate(Instant value)
      Sets the value of the 'startDate' field.
      Parameters:
      value - the value to set.
    • getEndDate

      public Instant getEndDate()
      Gets the value of the 'endDate' field.
      Returns:
      The value of the 'endDate' field.
    • setEndDate

      public void setEndDate(Instant value)
      Sets the value of the 'endDate' field.
      Parameters:
      value - the value to set.
    • getExpirationDate

      public Instant getExpirationDate()
      Gets the value of the 'expirationDate' field.
      Returns:
      The value of the 'expirationDate' field.
    • setExpirationDate

      public void setExpirationDate(Instant value)
      Sets the value of the 'expirationDate' field.
      Parameters:
      value - the value to set.
    • getSeverity

      public SeverityType getSeverity()
      Gets the value of the 'severity' field.
      Returns:
      The value of the 'severity' field.
    • setSeverity

      public void setSeverity(SeverityType value)
      Sets the value of the 'severity' field.
      Parameters:
      value - the value to set.
    • getTags

      public List<String> getTags()
      Gets the value of the 'tags' field.
      Returns:
      The value of the 'tags' field.
    • setTags

      public void setTags(List<String> value)
      Sets the value of the 'tags' field.
      Parameters:
      value - the value to set.
    • getTimeSpans

      public List<TimeSpan> getTimeSpans()
      Gets the value of the 'timeSpans' field.
      Returns:
      The value of the 'timeSpans' field.
    • setTimeSpans

      public void setTimeSpans(List<TimeSpan> value)
      Sets the value of the 'timeSpans' field.
      Parameters:
      value - the value to set.
    • getTitle

      public I18n getTitle()
      Gets the value of the 'title' field.
      Returns:
      The value of the 'title' field.
    • setTitle

      public void setTitle(I18n value)
      Sets the value of the 'title' field.
      Parameters:
      value - the value to set.
    • getSummary

      public I18n getSummary()
      Gets the value of the 'summary' field.
      Returns:
      The value of the 'summary' field.
    • setSummary

      public void setSummary(I18n value)
      Sets the value of the 'summary' field.
      Parameters:
      value - the value to set.
    • getTitleTranslated

      public String getTitleTranslated()
      Gets the value of the 'titleTranslated' field.
      Returns:
      The value of the 'titleTranslated' field.
    • setTitleTranslated

      public void setTitleTranslated(String value)
      Sets the value of the 'titleTranslated' field.
      Parameters:
      value - the value to set.
    • getSummaryTranslated

      public String getSummaryTranslated()
      Gets the value of the 'summaryTranslated' field.
      Returns:
      The value of the 'summaryTranslated' field.
    • setSummaryTranslated

      public void setSummaryTranslated(String value)
      Sets the value of the 'summaryTranslated' field.
      Parameters:
      value - the value to set.
    • getUserRecipients

      public List<String> getUserRecipients()
      Gets the value of the 'userRecipients' field.
      Returns:
      The value of the 'userRecipients' field.
    • setUserRecipients

      public void setUserRecipients(List<String> value)
      Sets the value of the 'userRecipients' field.
      Parameters:
      value - the value to set.
    • getGroupRecipients

      public List<String> getGroupRecipients()
      Gets the value of the 'groupRecipients' field.
      Returns:
      The value of the 'groupRecipients' field.
    • setGroupRecipients

      public void setGroupRecipients(List<String> value)
      Sets the value of the 'groupRecipients' field.
      Parameters:
      value - the value to set.
    • getEntitiesAllowedToRespond

      public List<String> getEntitiesAllowedToRespond()
      Gets the value of the 'entitiesAllowedToRespond' field.
      Returns:
      The value of the 'entitiesAllowedToRespond' field.
    • setEntitiesAllowedToRespond

      public void setEntitiesAllowedToRespond(List<String> value)
      Sets the value of the 'entitiesAllowedToRespond' field.
      Parameters:
      value - the value to set.
    • getEntitiesRequiredToRespond

      public List<String> getEntitiesRequiredToRespond()
      Gets the value of the 'entitiesRequiredToRespond' field.
      Returns:
      The value of the 'entitiesRequiredToRespond' field.
    • setEntitiesRequiredToRespond

      public void setEntitiesRequiredToRespond(List<String> value)
      Sets the value of the 'entitiesRequiredToRespond' field.
      Parameters:
      value - the value to set.
    • getEntityRecipients

      public List<String> getEntityRecipients()
      Gets the value of the 'entityRecipients' field.
      Returns:
      The value of the 'entityRecipients' field.
    • setEntityRecipients

      public void setEntityRecipients(List<String> value)
      Sets the value of the 'entityRecipients' field.
      Parameters:
      value - the value to set.
    • getEntitiesAllowedToEdit

      public List<String> getEntitiesAllowedToEdit()
      Gets the value of the 'entitiesAllowedToEdit' field.
      Returns:
      The value of the 'entitiesAllowedToEdit' field.
    • setEntitiesAllowedToEdit

      public void setEntitiesAllowedToEdit(List<String> value)
      Sets the value of the 'entitiesAllowedToEdit' field.
      Parameters:
      value - the value to set.
    • getWktGeometry

      public String getWktGeometry()
      Gets the value of the 'wktGeometry' field.
      Returns:
      The value of the 'wktGeometry' field.
    • setWktGeometry

      public void setWktGeometry(String value)
      Sets the value of the 'wktGeometry' field.
      Parameters:
      value - the value to set.
    • getWktProjection

      public String getWktProjection()
      Gets the value of the 'wktProjection' field.
      Returns:
      The value of the 'wktProjection' field.
    • setWktProjection

      public void setWktProjection(String value)
      Sets the value of the 'wktProjection' field.
      Parameters:
      value - the value to set.
    • getData

      public String getData()
      Gets the value of the 'data' field.
      Returns:
      The value of the 'data' field.
    • setData

      public void setData(String value)
      Sets the value of the 'data' field.
      Parameters:
      value - the value to set.
    • getHasBeenAcknowledged

      public Boolean getHasBeenAcknowledged()
      Gets the value of the 'hasBeenAcknowledged' field.
      Returns:
      The value of the 'hasBeenAcknowledged' field.
    • setHasBeenAcknowledged

      public void setHasBeenAcknowledged(Boolean value)
      Sets the value of the 'hasBeenAcknowledged' field.
      Parameters:
      value - the value to set.
    • getHasBeenRead

      public Boolean getHasBeenRead()
      Gets the value of the 'hasBeenRead' field.
      Returns:
      The value of the 'hasBeenRead' field.
    • setHasBeenRead

      public void setHasBeenRead(Boolean value)
      Sets the value of the 'hasBeenRead' field.
      Parameters:
      value - the value to set.
    • getPublisherType

      public PublisherTypeEnum getPublisherType()
      Gets the value of the 'publisherType' field.
      Returns:
      The value of the 'publisherType' field.
    • setPublisherType

      public void setPublisherType(PublisherTypeEnum value)
      Sets the value of the 'publisherType' field.
      Parameters:
      value - the value to set.
    • getRepresentative

      public String getRepresentative()
      Gets the value of the 'representative' field.
      Returns:
      The value of the 'representative' field.
    • setRepresentative

      public void setRepresentative(String value)
      Sets the value of the 'representative' field.
      Parameters:
      value - the value to set.
    • getRepresentativeType

      public PublisherTypeEnum getRepresentativeType()
      Gets the value of the 'representativeType' field.
      Returns:
      The value of the 'representativeType' field.
    • setRepresentativeType

      public void setRepresentativeType(PublisherTypeEnum value)
      Sets the value of the 'representativeType' field.
      Parameters:
      value - the value to set.
    • getSecondsBeforeTimeSpanForReminder

      public Integer getSecondsBeforeTimeSpanForReminder()
      Gets the value of the 'secondsBeforeTimeSpanForReminder' field.
      Returns:
      The value of the 'secondsBeforeTimeSpanForReminder' field.
    • setSecondsBeforeTimeSpanForReminder

      public void setSecondsBeforeTimeSpanForReminder(Integer value)
      Sets the value of the 'secondsBeforeTimeSpanForReminder' field.
      Parameters:
      value - the value to set.
    • newBuilder

      public static Card.Builder newBuilder()
      Creates a new Card RecordBuilder.
      Returns:
      A new Card RecordBuilder
    • newBuilder

      public static Card.Builder newBuilder(Card.Builder other)
      Creates a new Card RecordBuilder by copying an existing Builder.
      Parameters:
      other - The existing builder to copy.
      Returns:
      A new Card RecordBuilder
    • newBuilder

      public static Card.Builder newBuilder(Card other)
      Creates a new Card RecordBuilder by copying an existing Card instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new Card RecordBuilder
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException