Package org.opfab.avro
Class ResponseCard
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.opfab.avro.ResponseCard
- 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 ResponseCard
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for ResponseCard instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ResponseCard(String id, String uid, String parentCardId, String initialParentCardUid, List<String> externalRecipients, 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. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<ResponseCard> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static ResponseCardDeserializes a ResponseCard from a ByteBuffer.get(int field$) static org.apache.avro.Schemaorg.apache.avro.Conversion<?> getConversion(int field) getData()Gets the value of the 'data' field.static org.apache.avro.message.BinaryMessageDecoder<ResponseCard> Return the BinaryMessageDecoder instance used by this class.static org.apache.avro.message.BinaryMessageEncoder<ResponseCard> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'endDate' field.Gets the value of the 'entitiesAllowedToEdit' field.Gets the value of the 'entitiesAllowedToRespond' field.Gets the value of the 'entitiesRequiredToRespond' field.Gets the value of the 'entityRecipients' field.Gets the value of the 'expirationDate' field.Gets the value of the 'externalRecipients' field.Gets the value of the 'groupRecipients' field.Gets the value of the 'hasBeenAcknowledged' field.Gets the value of the 'hasBeenRead' field.getId()Gets the value of the 'id' field.Gets the value of the 'initialParentCardUid' field.getLttd()Gets the value of the 'lttd' field.Gets the value of the 'parentCardId' field.Gets the value of the 'process' field.Gets the value of the 'processInstanceId' field.Gets the value of the 'processVersion' field.Gets the value of the 'publishDate' field.Gets the value of the 'publisher' field.Gets the value of the 'publisherType' field.Gets the value of the 'representative' field.Gets the value of the 'representativeType' field.org.apache.avro.SchemaGets the value of the 'secondsBeforeTimeSpanForReminder' field.Gets the value of the 'severity' field.org.apache.avro.specific.SpecificDataGets the value of the 'startDate' field.getState()Gets the value of the 'state' field.Gets the value of the 'summary' field.Gets the value of the 'summaryTranslated' field.getTags()Gets the value of the 'tags' field.Gets the value of the 'timeSpans' field.getTitle()Gets the value of the 'title' field.Gets the value of the 'titleTranslated' field.getUid()Gets the value of the 'uid' field.Gets the value of the 'userRecipients' field.Gets the value of the 'wktGeometry' field.Gets the value of the 'wktProjection' field.static ResponseCard.BuilderCreates a new ResponseCard RecordBuilder.static ResponseCard.BuildernewBuilder(ResponseCard other) Creates a new ResponseCard RecordBuilder by copying an existing ResponseCard instance.static ResponseCard.BuildernewBuilder(ResponseCard.Builder other) Creates a new ResponseCard RecordBuilder by copying an existing Builder.voidvoidvoidSets the value of the 'data' field.voidsetEndDate(Instant value) Sets the value of the 'endDate' field.voidsetEntitiesAllowedToEdit(List<String> value) Sets the value of the 'entitiesAllowedToEdit' field.voidsetEntitiesAllowedToRespond(List<String> value) Sets the value of the 'entitiesAllowedToRespond' field.voidsetEntitiesRequiredToRespond(List<String> value) Sets the value of the 'entitiesRequiredToRespond' field.voidsetEntityRecipients(List<String> value) Sets the value of the 'entityRecipients' field.voidsetExpirationDate(Instant value) Sets the value of the 'expirationDate' field.voidsetExternalRecipients(List<String> value) Sets the value of the 'externalRecipients' field.voidsetGroupRecipients(List<String> value) Sets the value of the 'groupRecipients' field.voidsetHasBeenAcknowledged(Boolean value) Sets the value of the 'hasBeenAcknowledged' field.voidsetHasBeenRead(Boolean value) Sets the value of the 'hasBeenRead' field.voidSets the value of the 'id' field.voidsetInitialParentCardUid(String value) Sets the value of the 'initialParentCardUid' field.voidSets the value of the 'lttd' field.voidsetParentCardId(String value) Sets the value of the 'parentCardId' field.voidsetProcess(String value) Sets the value of the 'process' field.voidsetProcessInstanceId(String value) Sets the value of the 'processInstanceId' field.voidsetProcessVersion(String value) Sets the value of the 'processVersion' field.voidsetPublishDate(Instant value) Sets the value of the 'publishDate' field.voidsetPublisher(String value) Sets the value of the 'publisher' field.voidSets the value of the 'publisherType' field.voidsetRepresentative(String value) Sets the value of the 'representative' field.voidSets the value of the 'representativeType' field.voidSets the value of the 'secondsBeforeTimeSpanForReminder' field.voidsetSeverity(SeverityType value) Sets the value of the 'severity' field.voidsetStartDate(Instant value) Sets the value of the 'startDate' field.voidSets the value of the 'state' field.voidsetSummary(I18n value) Sets the value of the 'summary' field.voidsetSummaryTranslated(String value) Sets the value of the 'summaryTranslated' field.voidSets the value of the 'tags' field.voidsetTimeSpans(List<TimeSpan> value) Sets the value of the 'timeSpans' field.voidSets the value of the 'title' field.voidsetTitleTranslated(String value) Sets the value of the 'titleTranslated' field.voidSets the value of the 'uid' field.voidsetUserRecipients(List<String> value) Sets the value of the 'userRecipients' field.voidsetWktGeometry(String value) Sets the value of the 'wktGeometry' field.voidsetWktProjection(String value) Sets the value of the 'wktProjection' field.Serializes this ResponseCard to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
-
Constructor Details
-
ResponseCard
public ResponseCard()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
ResponseCard
public ResponseCard(String id, String uid, String parentCardId, String initialParentCardUid, List<String> externalRecipients, 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:
id- The new value for iduid- The new value for uidparentCardId- The new value for parentCardIdinitialParentCardUid- The new value for initialParentCardUidexternalRecipients- The new value for externalRecipientspublisher- The new value for publisherprocessVersion- The new value for processVersionprocess- The new value for processprocessInstanceId- The new value for processInstanceIdstate- The new value for statepublishDate- The new value for publishDatelttd- The new value for lttdstartDate- The new value for startDateendDate- The new value for endDateexpirationDate- The new value for expirationDateseverity- The new value for severitytags- The new value for tagstimeSpans- The new value for timeSpanstitle- The new value for titlesummary- The new value for summarytitleTranslated- The new value for titleTranslatedsummaryTranslated- The new value for summaryTranslateduserRecipients- The new value for userRecipientsgroupRecipients- The new value for groupRecipientsentitiesAllowedToRespond- The new value for entitiesAllowedToRespondentitiesRequiredToRespond- The new value for entitiesRequiredToRespondentityRecipients- The new value for entityRecipientsentitiesAllowedToEdit- The new value for entitiesAllowedToEditwktGeometry- The new value for wktGeometrywktProjection- The new value for wktProjectiondata- The new value for datahasBeenAcknowledged- The new value for hasBeenAcknowledgedhasBeenRead- The new value for hasBeenReadpublisherType- The new value for publisherTyperepresentative- The new value for representativerepresentativeType- The new value for representativeTypesecondsBeforeTimeSpanForReminder- The new value for secondsBeforeTimeSpanForReminder
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
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<ResponseCard> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
Serializes this ResponseCard to a ByteBuffer.- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
Deserializes a ResponseCard from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a ResponseCard 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:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
getConversion
public org.apache.avro.Conversion<?> getConversion(int field) - Overrides:
getConversionin classorg.apache.avro.specific.SpecificRecordBase
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
getId
Gets the value of the 'id' field.- Returns:
- The value of the 'id' field.
-
setId
Sets the value of the 'id' field.- Parameters:
value- the value to set.
-
getUid
Gets the value of the 'uid' field.- Returns:
- The value of the 'uid' field.
-
setUid
Sets the value of the 'uid' field.- Parameters:
value- the value to set.
-
getParentCardId
Gets the value of the 'parentCardId' field.- Returns:
- The value of the 'parentCardId' field.
-
setParentCardId
Sets the value of the 'parentCardId' field.- Parameters:
value- the value to set.
-
getInitialParentCardUid
Gets the value of the 'initialParentCardUid' field.- Returns:
- The value of the 'initialParentCardUid' field.
-
setInitialParentCardUid
Sets the value of the 'initialParentCardUid' field.- Parameters:
value- the value to set.
-
getExternalRecipients
Gets the value of the 'externalRecipients' field.- Returns:
- The value of the 'externalRecipients' field.
-
setExternalRecipients
Sets the value of the 'externalRecipients' field.- Parameters:
value- the value to set.
-
getPublisher
Gets the value of the 'publisher' field.- Returns:
- The value of the 'publisher' field.
-
setPublisher
Sets the value of the 'publisher' field.- Parameters:
value- the value to set.
-
getProcessVersion
Gets the value of the 'processVersion' field.- Returns:
- The value of the 'processVersion' field.
-
setProcessVersion
Sets the value of the 'processVersion' field.- Parameters:
value- the value to set.
-
getProcess
Gets the value of the 'process' field.- Returns:
- The value of the 'process' field.
-
setProcess
Sets the value of the 'process' field.- Parameters:
value- the value to set.
-
getProcessInstanceId
Gets the value of the 'processInstanceId' field.- Returns:
- The value of the 'processInstanceId' field.
-
setProcessInstanceId
Sets the value of the 'processInstanceId' field.- Parameters:
value- the value to set.
-
getState
Gets the value of the 'state' field.- Returns:
- The value of the 'state' field.
-
setState
Sets the value of the 'state' field.- Parameters:
value- the value to set.
-
getPublishDate
Gets the value of the 'publishDate' field.- Returns:
- The value of the 'publishDate' field.
-
setPublishDate
Sets the value of the 'publishDate' field.- Parameters:
value- the value to set.
-
getLttd
Gets the value of the 'lttd' field.- Returns:
- The value of the 'lttd' field.
-
setLttd
Sets the value of the 'lttd' field.- Parameters:
value- the value to set.
-
getStartDate
Gets the value of the 'startDate' field.- Returns:
- The value of the 'startDate' field.
-
setStartDate
Sets the value of the 'startDate' field.- Parameters:
value- the value to set.
-
getEndDate
Gets the value of the 'endDate' field.- Returns:
- The value of the 'endDate' field.
-
setEndDate
Sets the value of the 'endDate' field.- Parameters:
value- the value to set.
-
getExpirationDate
Gets the value of the 'expirationDate' field.- Returns:
- The value of the 'expirationDate' field.
-
setExpirationDate
Sets the value of the 'expirationDate' field.- Parameters:
value- the value to set.
-
getSeverity
Gets the value of the 'severity' field.- Returns:
- The value of the 'severity' field.
-
setSeverity
Sets the value of the 'severity' field.- Parameters:
value- the value to set.
-
getTags
Gets the value of the 'tags' field.- Returns:
- The value of the 'tags' field.
-
setTags
Sets the value of the 'tags' field.- Parameters:
value- the value to set.
-
getTimeSpans
Gets the value of the 'timeSpans' field.- Returns:
- The value of the 'timeSpans' field.
-
setTimeSpans
Sets the value of the 'timeSpans' field.- Parameters:
value- the value to set.
-
getTitle
Gets the value of the 'title' field.- Returns:
- The value of the 'title' field.
-
setTitle
Sets the value of the 'title' field.- Parameters:
value- the value to set.
-
getSummary
Gets the value of the 'summary' field.- Returns:
- The value of the 'summary' field.
-
setSummary
Sets the value of the 'summary' field.- Parameters:
value- the value to set.
-
getTitleTranslated
Gets the value of the 'titleTranslated' field.- Returns:
- The value of the 'titleTranslated' field.
-
setTitleTranslated
Sets the value of the 'titleTranslated' field.- Parameters:
value- the value to set.
-
getSummaryTranslated
Gets the value of the 'summaryTranslated' field.- Returns:
- The value of the 'summaryTranslated' field.
-
setSummaryTranslated
Sets the value of the 'summaryTranslated' field.- Parameters:
value- the value to set.
-
getUserRecipients
Gets the value of the 'userRecipients' field.- Returns:
- The value of the 'userRecipients' field.
-
setUserRecipients
Sets the value of the 'userRecipients' field.- Parameters:
value- the value to set.
-
getGroupRecipients
Gets the value of the 'groupRecipients' field.- Returns:
- The value of the 'groupRecipients' field.
-
setGroupRecipients
Sets the value of the 'groupRecipients' field.- Parameters:
value- the value to set.
-
getEntitiesAllowedToRespond
Gets the value of the 'entitiesAllowedToRespond' field.- Returns:
- The value of the 'entitiesAllowedToRespond' field.
-
setEntitiesAllowedToRespond
Sets the value of the 'entitiesAllowedToRespond' field.- Parameters:
value- the value to set.
-
getEntitiesRequiredToRespond
Gets the value of the 'entitiesRequiredToRespond' field.- Returns:
- The value of the 'entitiesRequiredToRespond' field.
-
setEntitiesRequiredToRespond
Sets the value of the 'entitiesRequiredToRespond' field.- Parameters:
value- the value to set.
-
getEntityRecipients
Gets the value of the 'entityRecipients' field.- Returns:
- The value of the 'entityRecipients' field.
-
setEntityRecipients
Sets the value of the 'entityRecipients' field.- Parameters:
value- the value to set.
-
getEntitiesAllowedToEdit
Gets the value of the 'entitiesAllowedToEdit' field.- Returns:
- The value of the 'entitiesAllowedToEdit' field.
-
setEntitiesAllowedToEdit
Sets the value of the 'entitiesAllowedToEdit' field.- Parameters:
value- the value to set.
-
getWktGeometry
Gets the value of the 'wktGeometry' field.- Returns:
- The value of the 'wktGeometry' field.
-
setWktGeometry
Sets the value of the 'wktGeometry' field.- Parameters:
value- the value to set.
-
getWktProjection
Gets the value of the 'wktProjection' field.- Returns:
- The value of the 'wktProjection' field.
-
setWktProjection
Sets the value of the 'wktProjection' field.- Parameters:
value- the value to set.
-
getData
Gets the value of the 'data' field.- Returns:
- The value of the 'data' field.
-
setData
Sets the value of the 'data' field.- Parameters:
value- the value to set.
-
getHasBeenAcknowledged
Gets the value of the 'hasBeenAcknowledged' field.- Returns:
- The value of the 'hasBeenAcknowledged' field.
-
setHasBeenAcknowledged
Sets the value of the 'hasBeenAcknowledged' field.- Parameters:
value- the value to set.
-
getHasBeenRead
Gets the value of the 'hasBeenRead' field.- Returns:
- The value of the 'hasBeenRead' field.
-
setHasBeenRead
Sets the value of the 'hasBeenRead' field.- Parameters:
value- the value to set.
-
getPublisherType
Gets the value of the 'publisherType' field.- Returns:
- The value of the 'publisherType' field.
-
setPublisherType
Sets the value of the 'publisherType' field.- Parameters:
value- the value to set.
-
getRepresentative
Gets the value of the 'representative' field.- Returns:
- The value of the 'representative' field.
-
setRepresentative
Sets the value of the 'representative' field.- Parameters:
value- the value to set.
-
getRepresentativeType
Gets the value of the 'representativeType' field.- Returns:
- The value of the 'representativeType' field.
-
setRepresentativeType
Sets the value of the 'representativeType' field.- Parameters:
value- the value to set.
-
getSecondsBeforeTimeSpanForReminder
Gets the value of the 'secondsBeforeTimeSpanForReminder' field.- Returns:
- The value of the 'secondsBeforeTimeSpanForReminder' field.
-
setSecondsBeforeTimeSpanForReminder
Sets the value of the 'secondsBeforeTimeSpanForReminder' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new ResponseCard RecordBuilder.- Returns:
- A new ResponseCard RecordBuilder
-
newBuilder
Creates a new ResponseCard RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new ResponseCard RecordBuilder
-
newBuilder
Creates a new ResponseCard RecordBuilder by copying an existing ResponseCard instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new ResponseCard RecordBuilder
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-