@Generated(value="config_generator.py") public class AuthorizationEntityConfig extends AbstractAuthorizationEntityConfig
Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationEntityConfig.Field
Fields of PGX Permission Item Config
|
AbstractAuthorizationEntityConfig.Permissions
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static AuthorizationEntityConfig.Field[] |
getConfigFields() |
java.util.Map<java.lang.String,java.lang.Object> |
getLeftoverValues()
Gets the values that do not belong to any field.
|
java.lang.Double |
getMaxDataMemoryRatio()
memory limit of the authorization entity's private data (includes non-published graphs and PGQL results) relative to the maximum PGX engine memory limit for any user
|
java.lang.String |
getMaxDataMemorySize()
absolute memory limit of the authorization entity's private data (includes non-published graphs and PGQL results)
|
java.util.List<AuthorizationEntityPermissionConfig> |
getPgxPermissions()
mapping from resource id to list of permissions
|
java.lang.String |
getPgxRole()
the id of the role
|
java.lang.String |
getPgxUser()
the id of the user
|
java.util.Map<AuthorizationEntityConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<AuthorizationEntityConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(AuthorizationEntityConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
static AuthorizationEntityConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static AuthorizationEntityConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static AuthorizationEntityConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
getAllPermissions, getGeneralPermissions, getMaxMemoryLimit, isRole, isUser
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static AuthorizationEntityConfig.Field[] getConfigFields()
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
public java.lang.Double getMaxDataMemoryRatio()
getMaxDataMemoryRatio
in class AbstractAuthorizationEntityConfig
public java.lang.String getMaxDataMemorySize()
getMaxDataMemorySize
in class AbstractAuthorizationEntityConfig
public java.util.List<AuthorizationEntityPermissionConfig> getPgxPermissions()
public java.lang.String getPgxRole()
getPgxRole
in class AbstractAuthorizationEntityConfig
public java.lang.String getPgxUser()
getPgxUser
in class AbstractAuthorizationEntityConfig
public java.util.Map<AuthorizationEntityConfig.Field,java.lang.Object> getValues()
getValues
in class AbstractConfig
public java.util.Map<AuthorizationEntityConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(AuthorizationEntityConfig.Field field)
hasDefaultValue
in class AbstractAuthorizationEntityConfig
field
- the fieldpublic boolean isEmpty()
public static AuthorizationEntityConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static AuthorizationEntityConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static AuthorizationEntityConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean hideSensitiveData)