public class PermissionData
extends sirius.db.mixing.Composite
Modifier and Type | Field and Description |
---|---|
static sirius.db.mixing.Mapping |
CONFIG_STRING
Contains a custom configuration which is added to the config of the current
ScopeInfo . |
static sirius.db.mixing.Mapping |
PERMISSION_STRING
Contains all permissions as a single string, separated with commas.
|
Constructor and Description |
---|
PermissionData(sirius.db.jdbc.SQLEntity parent)
Creates a new instance for the given parent.
|
Modifier and Type | Method and Description |
---|---|
com.typesafe.config.Config |
getConfig()
Returns the parsed config for the associated entity.
|
String |
getConfigString()
Returns the config as string.
|
Set<String> |
getPermissions()
Returns all granted permissions.
|
void |
setConfigString(String configString)
Sets the config as string.
|
protected void |
updatePermissionString() |
public static final sirius.db.mixing.Mapping PERMISSION_STRING
public static final sirius.db.mixing.Mapping CONFIG_STRING
ScopeInfo
.public PermissionData(sirius.db.jdbc.SQLEntity parent)
parent
- the parent entity which contains this composite.public Set<String> getPermissions()
Note that this set can also be modified as the set will be written back to the database on save.
@Nullable public com.typesafe.config.Config getConfig()
public String getConfigString()
public void setConfigString(String configString)
configString
- the individual config as stringprotected void updatePermissionString()
Copyright © 2018. All rights reserved.