Class RegistrationRequestDetails
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class RegistrationRequestDetails extends SpecificRecordBase implements SpecificRecord
Details of the registration request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
RegistrationRequestDetails.Builder
RecordBuilder for RegistrationRequestDetails instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public Instant
registrationSent
public Instant
registrationLastModified
public RegistrationStatus
registrationStatus
public String
registrationId
public String
holdingIdentityId
public int
registrationProtocolVersion
public SignedData
memberProvidedContext
public SignedData
registrationContext
public String
reason
public Long
serial
-
Constructor Summary
Constructors Constructor Description RegistrationRequestDetails()
Default constructor. RegistrationRequestDetails(Instant registrationSent, Instant registrationLastModified, RegistrationStatus registrationStatus, String registrationId, String holdingIdentityId, Integer registrationProtocolVersion, SignedData memberProvidedContext, SignedData registrationContext, String reason, Long serial)
All-args constructor.
-
Method Summary
Modifier and Type Method Description Instant
getRegistrationSent()
Gets the value of the 'registrationSent' field. void
setRegistrationSent(Instant value)
Sets the value of the 'registrationSent' field. Instant
getRegistrationLastModified()
Gets the value of the 'registrationLastModified' field. void
setRegistrationLastModified(Instant value)
Sets the value of the 'registrationLastModified' field. RegistrationStatus
getRegistrationStatus()
Gets the value of the 'registrationStatus' field. void
setRegistrationStatus(RegistrationStatus value)
Sets the value of the 'registrationStatus' field. String
getRegistrationId()
Gets the value of the 'registrationId' field. void
setRegistrationId(String value)
Sets the value of the 'registrationId' field. String
getHoldingIdentityId()
Gets the value of the 'holdingIdentityId' field. void
setHoldingIdentityId(String value)
Sets the value of the 'holdingIdentityId' field. int
getRegistrationProtocolVersion()
Gets the value of the 'registrationProtocolVersion' field. void
setRegistrationProtocolVersion(int value)
Sets the value of the 'registrationProtocolVersion' field. SignedData
getMemberProvidedContext()
Gets the value of the 'memberProvidedContext' field. void
setMemberProvidedContext(SignedData value)
Sets the value of the 'memberProvidedContext' field. SignedData
getRegistrationContext()
Gets the value of the 'registrationContext' field. void
setRegistrationContext(SignedData value)
Sets the value of the 'registrationContext' field. String
getReason()
Gets the value of the 'reason' field. void
setReason(String value)
Sets the value of the 'reason' field. Long
getSerial()
Gets the value of the 'serial' field. void
setSerial(Long value)
Sets the value of the 'serial' field. static Schema
getClassSchema()
static BinaryMessageEncoder<RegistrationRequestDetails>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<RegistrationRequestDetails>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<RegistrationRequestDetails>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this RegistrationRequestDetails to a ByteBuffer. static RegistrationRequestDetails
fromByteBuffer(ByteBuffer b)
Deserializes a RegistrationRequestDetails from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static RegistrationRequestDetails.Builder
newBuilder()
Creates a new RegistrationRequestDetails RecordBuilder. static RegistrationRequestDetails.Builder
newBuilder(RegistrationRequestDetails.Builder other)
Creates a new RegistrationRequestDetails RecordBuilder by copying an existing Builder. static RegistrationRequestDetails.Builder
newBuilder(RegistrationRequestDetails other)
Creates a new RegistrationRequestDetails RecordBuilder by copying an existing RegistrationRequestDetails instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RegistrationRequestDetails
RegistrationRequestDetails()
Default constructor.
-
RegistrationRequestDetails
RegistrationRequestDetails(Instant registrationSent, Instant registrationLastModified, RegistrationStatus registrationStatus, String registrationId, String holdingIdentityId, Integer registrationProtocolVersion, SignedData memberProvidedContext, SignedData registrationContext, String reason, Long serial)
All-args constructor.- Parameters:
registrationSent
- Time ([Instant]) in milliseconds when the registration request was sent.registrationLastModified
- Time ([Instant]) in milliseconds when the registration request was modified.registrationStatus
- Status of the registration request.registrationId
- ID of the registration request.holdingIdentityId
- ID of the owner of this registration request.registrationProtocolVersion
- Registration protocol number.memberProvidedContext
- Member provided data in MemberInfo which has been signed by the registering member.registrationContext
- Additional registration context which has been signed by the registering member and is not part of the MemberInfo (e.g.reason
- Reason why the request is in the status specified by [registrationStatus].serial
- The version of the member info the member saw when they submitted their registration.
-
-
Method Detail
-
getRegistrationSent
Instant getRegistrationSent()
Gets the value of the 'registrationSent' field.
-
setRegistrationSent
void setRegistrationSent(Instant value)
Sets the value of the 'registrationSent' field. Time ([Instant]) in milliseconds when the registration request was sent.
- Parameters:
value
- the value to set.
-
getRegistrationLastModified
Instant getRegistrationLastModified()
Gets the value of the 'registrationLastModified' field.
-
setRegistrationLastModified
void setRegistrationLastModified(Instant value)
Sets the value of the 'registrationLastModified' field. Time ([Instant]) in milliseconds when the registration request was modified.
- Parameters:
value
- the value to set.
-
getRegistrationStatus
RegistrationStatus getRegistrationStatus()
Gets the value of the 'registrationStatus' field.
-
setRegistrationStatus
void setRegistrationStatus(RegistrationStatus value)
Sets the value of the 'registrationStatus' field. Status of the registration request.
- Parameters:
value
- the value to set.
-
getRegistrationId
String getRegistrationId()
Gets the value of the 'registrationId' field.
-
setRegistrationId
void setRegistrationId(String value)
Sets the value of the 'registrationId' field. ID of the registration request.
- Parameters:
value
- the value to set.
-
getHoldingIdentityId
String getHoldingIdentityId()
Gets the value of the 'holdingIdentityId' field.
-
setHoldingIdentityId
void setHoldingIdentityId(String value)
Sets the value of the 'holdingIdentityId' field. ID of the owner of this registration request.
- Parameters:
value
- the value to set.
-
getRegistrationProtocolVersion
int getRegistrationProtocolVersion()
Gets the value of the 'registrationProtocolVersion' field.
-
setRegistrationProtocolVersion
void setRegistrationProtocolVersion(int value)
Sets the value of the 'registrationProtocolVersion' field. Registration protocol number.
- Parameters:
value
- the value to set.
-
getMemberProvidedContext
SignedData getMemberProvidedContext()
Gets the value of the 'memberProvidedContext' field.
-
setMemberProvidedContext
void setMemberProvidedContext(SignedData value)
Sets the value of the 'memberProvidedContext' field. Member provided data in MemberInfo which has been signed by the registering member. The data must be a serialised KeyValuePairList.
- Parameters:
value
- the value to set.
-
getRegistrationContext
SignedData getRegistrationContext()
Gets the value of the 'registrationContext' field.
-
setRegistrationContext
void setRegistrationContext(SignedData value)
Sets the value of the 'registrationContext' field. Additional registration context which has been signed by the registering member and is not part of the MemberInfo (e.g. pre-auth token). The data must be a serialised KeyValuePairList.
- Parameters:
value
- the value to set.
-
setReason
void setReason(String value)
Sets the value of the 'reason' field. Reason why the request is in the status specified by [registrationStatus].
- Parameters:
value
- the value to set.
-
setSerial
void setSerial(Long value)
Sets the value of the 'serial' field. The version of the member info the member saw when they submitted their registration.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<RegistrationRequestDetails> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<RegistrationRequestDetails> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<RegistrationRequestDetails> createDecoder(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
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this RegistrationRequestDetails to a ByteBuffer.
-
fromByteBuffer
static RegistrationRequestDetails fromByteBuffer(ByteBuffer b)
Deserializes a RegistrationRequestDetails from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
getConversion
Conversion<out Object> getConversion(int field)
-
newBuilder
static RegistrationRequestDetails.Builder newBuilder()
Creates a new RegistrationRequestDetails RecordBuilder.
-
newBuilder
static RegistrationRequestDetails.Builder newBuilder(RegistrationRequestDetails.Builder other)
Creates a new RegistrationRequestDetails RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static RegistrationRequestDetails.Builder newBuilder(RegistrationRequestDetails other)
Creates a new RegistrationRequestDetails RecordBuilder by copying an existing RegistrationRequestDetails instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-