Class UserPermissionSummary
-
- 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 UserPermissionSummary extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
UserPermissionSummary.Builder
RecordBuilder for UserPermissionSummary instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
loginName
public boolean
enabled
public List<PermissionSummary>
permissions
public Instant
lastUpdateTimestamp
-
Constructor Summary
Constructors Constructor Description UserPermissionSummary()
Default constructor. UserPermissionSummary(String loginName, Boolean enabled, List<PermissionSummary> permissions, Instant lastUpdateTimestamp)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getLoginName()
Gets the value of the 'loginName' field. void
setLoginName(String value)
Sets the value of the 'loginName' field. boolean
getEnabled()
Gets the value of the 'enabled' field. void
setEnabled(boolean value)
Sets the value of the 'enabled' field. List<PermissionSummary>
getPermissions()
Gets the value of the 'permissions' field. void
setPermissions(List<PermissionSummary> value)
Sets the value of the 'permissions' field. Instant
getLastUpdateTimestamp()
Gets the value of the 'lastUpdateTimestamp' field. void
setLastUpdateTimestamp(Instant value)
Sets the value of the 'lastUpdateTimestamp' field. static Schema
getClassSchema()
static BinaryMessageEncoder<UserPermissionSummary>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<UserPermissionSummary>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<UserPermissionSummary>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this UserPermissionSummary to a ByteBuffer. static UserPermissionSummary
fromByteBuffer(ByteBuffer b)
Deserializes a UserPermissionSummary from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static UserPermissionSummary.Builder
newBuilder()
Creates a new UserPermissionSummary RecordBuilder. static UserPermissionSummary.Builder
newBuilder(UserPermissionSummary.Builder other)
Creates a new UserPermissionSummary RecordBuilder by copying an existing Builder. static UserPermissionSummary.Builder
newBuilder(UserPermissionSummary other)
Creates a new UserPermissionSummary RecordBuilder by copying an existing UserPermissionSummary 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
-
UserPermissionSummary
UserPermissionSummary()
Default constructor.
-
UserPermissionSummary
UserPermissionSummary(String loginName, Boolean enabled, List<PermissionSummary> permissions, Instant lastUpdateTimestamp)
All-args constructor.- Parameters:
loginName
- The new value for loginNameenabled
- The new value for enabledpermissions
- The new value for permissionslastUpdateTimestamp
- The new value for lastUpdateTimestamp
-
-
Method Detail
-
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.
-
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.
-
getPermissions
List<PermissionSummary> getPermissions()
Gets the value of the 'permissions' field.
-
setPermissions
void setPermissions(List<PermissionSummary> value)
Sets the value of the 'permissions' field.
- Parameters:
value
- the value to set.
-
getLastUpdateTimestamp
Instant getLastUpdateTimestamp()
Gets the value of the 'lastUpdateTimestamp' field.
-
setLastUpdateTimestamp
void setLastUpdateTimestamp(Instant value)
Sets the value of the 'lastUpdateTimestamp' field.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<UserPermissionSummary> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<UserPermissionSummary> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<UserPermissionSummary> 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 UserPermissionSummary to a ByteBuffer.
-
fromByteBuffer
static UserPermissionSummary fromByteBuffer(ByteBuffer b)
Deserializes a UserPermissionSummary 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 UserPermissionSummary.Builder newBuilder()
Creates a new UserPermissionSummary RecordBuilder.
-
newBuilder
static UserPermissionSummary.Builder newBuilder(UserPermissionSummary.Builder other)
Creates a new UserPermissionSummary RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static UserPermissionSummary.Builder newBuilder(UserPermissionSummary other)
Creates a new UserPermissionSummary RecordBuilder by copying an existing UserPermissionSummary instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-