Class User
-
- 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 User extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
User.Builder
RecordBuilder for User instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
id
public int
version
public ChangeDetails
lastChangeDetails
public String
loginName
public String
fullName
public boolean
enabled
public String
hashedPassword
public String
saltValue
public Instant
passwordExpiry
public boolean
ssoAuth
public String
parentGroupId
public List<Property>
properties
public List<RoleAssociation>
roleAssociations
-
Constructor Summary
Constructors Constructor Description User()
Default constructor. User(String id, Integer version, ChangeDetails lastChangeDetails, String loginName, String fullName, Boolean enabled, String hashedPassword, String saltValue, Instant passwordExpiry, Boolean ssoAuth, String parentGroupId, List<Property> properties, List<RoleAssociation> roleAssociations)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. void
setId(String value)
Sets the value of the 'id' field. int
getVersion()
Gets the value of the 'version' field. void
setVersion(int value)
Sets the value of the 'version' field. ChangeDetails
getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field. void
setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field. String
getLoginName()
Gets the value of the 'loginName' field. void
setLoginName(String value)
Sets the value of the 'loginName' field. String
getFullName()
Gets the value of the 'fullName' field. void
setFullName(String value)
Sets the value of the 'fullName' field. boolean
getEnabled()
Gets the value of the 'enabled' field. void
setEnabled(boolean value)
Sets the value of the 'enabled' field. String
getHashedPassword()
Gets the value of the 'hashedPassword' field. void
setHashedPassword(String value)
Sets the value of the 'hashedPassword' field. String
getSaltValue()
Gets the value of the 'saltValue' field. void
setSaltValue(String value)
Sets the value of the 'saltValue' field. Instant
getPasswordExpiry()
Gets the value of the 'passwordExpiry' field. void
setPasswordExpiry(Instant value)
Sets the value of the 'passwordExpiry' field. boolean
getSsoAuth()
Gets the value of the 'ssoAuth' field. void
setSsoAuth(boolean value)
Sets the value of the 'ssoAuth' field. String
getParentGroupId()
Gets the value of the 'parentGroupId' field. void
setParentGroupId(String value)
Sets the value of the 'parentGroupId' field. List<Property>
getProperties()
Gets the value of the 'properties' field. void
setProperties(List<Property> value)
Sets the value of the 'properties' field. List<RoleAssociation>
getRoleAssociations()
Gets the value of the 'roleAssociations' field. void
setRoleAssociations(List<RoleAssociation> value)
Sets the value of the 'roleAssociations' field. static Schema
getClassSchema()
static BinaryMessageEncoder<User>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<User>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<User>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this User to a ByteBuffer. static User
fromByteBuffer(ByteBuffer b)
Deserializes a User from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static User.Builder
newBuilder()
Creates a new User RecordBuilder. static User.Builder
newBuilder(User.Builder other)
Creates a new User RecordBuilder by copying an existing Builder. static User.Builder
newBuilder(User other)
Creates a new User RecordBuilder by copying an existing User instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, 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
-
User
User()
Default constructor.
-
User
User(String id, Integer version, ChangeDetails lastChangeDetails, String loginName, String fullName, Boolean enabled, String hashedPassword, String saltValue, Instant passwordExpiry, Boolean ssoAuth, String parentGroupId, List<Property> properties, List<RoleAssociation> roleAssociations)
All-args constructor.- Parameters:
id
- The new value for idversion
- The new value for versionlastChangeDetails
- The new value for lastChangeDetailsloginName
- The new value for loginNamefullName
- The new value for fullNameenabled
- The new value for enabledhashedPassword
- The new value for hashedPasswordsaltValue
- The new value for saltValuepasswordExpiry
- Optional time ([Instant]) in milliseconds when the password expires.ssoAuth
- The new value for ssoAuthparentGroupId
- Optional parent group associated with this User.properties
- List of user properties.roleAssociations
- List of roles associated with this User.
-
-
Method Detail
-
setId
void setId(String value)
Sets the value of the 'id' field.
- Parameters:
value
- the value to set.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
void setVersion(int value)
Sets the value of the 'version' field.
- Parameters:
value
- the value to set.
-
getLastChangeDetails
ChangeDetails getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field.
-
setLastChangeDetails
void setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field.
- Parameters:
value
- the value to set.
-
getLoginName
String getLoginName()
Gets the value of the 'loginName' field.
-
setLoginName
void setLoginName(String value)
Sets the value of the 'loginName' field.
- Parameters:
value
- the value to set.
-
getFullName
String getFullName()
Gets the value of the 'fullName' field.
-
setFullName
void setFullName(String value)
Sets the value of the 'fullName' field.
- Parameters:
value
- the value to set.
-
getEnabled
boolean getEnabled()
Gets the value of the 'enabled' field.
-
setEnabled
void setEnabled(boolean value)
Sets the value of the 'enabled' field.
- Parameters:
value
- the value to set.
-
getHashedPassword
String getHashedPassword()
Gets the value of the 'hashedPassword' field.
-
setHashedPassword
void setHashedPassword(String value)
Sets the value of the 'hashedPassword' field.
- Parameters:
value
- the value to set.
-
getSaltValue
String getSaltValue()
Gets the value of the 'saltValue' field.
-
setSaltValue
void setSaltValue(String value)
Sets the value of the 'saltValue' field.
- Parameters:
value
- the value to set.
-
getPasswordExpiry
Instant getPasswordExpiry()
Gets the value of the 'passwordExpiry' field.
-
setPasswordExpiry
void setPasswordExpiry(Instant value)
Sets the value of the 'passwordExpiry' field. Optional time ([Instant]) in milliseconds when the password expires.
- Parameters:
value
- the value to set.
-
getSsoAuth
boolean getSsoAuth()
Gets the value of the 'ssoAuth' field.
-
setSsoAuth
void setSsoAuth(boolean value)
Sets the value of the 'ssoAuth' field.
- Parameters:
value
- the value to set.
-
getParentGroupId
String getParentGroupId()
Gets the value of the 'parentGroupId' field.
-
setParentGroupId
void setParentGroupId(String value)
Sets the value of the 'parentGroupId' field. Optional parent group associated with this User.
- Parameters:
value
- the value to set.
-
getProperties
List<Property> getProperties()
Gets the value of the 'properties' field.
-
setProperties
void setProperties(List<Property> value)
Sets the value of the 'properties' field. List of user properties.
- Parameters:
value
- the value to set.
-
getRoleAssociations
List<RoleAssociation> getRoleAssociations()
Gets the value of the 'roleAssociations' field.
-
setRoleAssociations
void setRoleAssociations(List<RoleAssociation> value)
Sets the value of the 'roleAssociations' field. List of roles associated with this User.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<User> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<User> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<User> 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 User to a ByteBuffer.
-
fromByteBuffer
static User fromByteBuffer(ByteBuffer b)
Deserializes a User from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static User.Builder newBuilder()
Creates a new User RecordBuilder.
-
newBuilder
static User.Builder newBuilder(User.Builder other)
Creates a new User RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static User.Builder newBuilder(User other)
Creates a new User RecordBuilder by copying an existing User instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-