public class PermissionConfig extends Object implements IdentifiedDataSerializable
Modifier and Type | Class and Description |
---|---|
static class |
PermissionConfig.PermissionType
Type of permission
|
Constructor and Description |
---|
PermissionConfig() |
PermissionConfig(PermissionConfig.PermissionType type,
String name,
String principal) |
PermissionConfig(PermissionConfig permissionConfig) |
Modifier and Type | Method and Description |
---|---|
PermissionConfig |
addAction(String action) |
PermissionConfig |
addEndpoint(String endpoint) |
boolean |
equals(Object o) |
Set<String> |
getActions() |
int |
getClassId()
Returns type identifier for this class.
|
Set<String> |
getEndpoints() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
String |
getName() |
String |
getPrincipal() |
PermissionConfig.PermissionType |
getType() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
PermissionConfig |
setActions(Set<String> actions) |
PermissionConfig |
setEndpoints(Set<String> endpoints) |
PermissionConfig |
setName(String name) |
PermissionConfig |
setPrincipal(String principal) |
PermissionConfig |
setType(PermissionConfig.PermissionType type) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public PermissionConfig()
public PermissionConfig(PermissionConfig.PermissionType type, String name, String principal)
public PermissionConfig(PermissionConfig permissionConfig)
public PermissionConfig addEndpoint(String endpoint)
public PermissionConfig addAction(String action)
public PermissionConfig.PermissionType getType()
public String getName()
public String getPrincipal()
public PermissionConfig setType(PermissionConfig.PermissionType type)
public PermissionConfig setName(String name)
public PermissionConfig setPrincipal(String principal)
public PermissionConfig setActions(Set<String> actions)
public PermissionConfig setEndpoints(Set<String> endpoints)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2023 Hazelcast, Inc.. All rights reserved.