public class DelegationPermission extends Object
DelegationPermission
class represents an access control
permission on a resource in a realm. It consists of a realm name, a service
name, a version number, a config type, a subconfig name, and a set of actions
that a user with the permission can perform. Additionally it also contains a
Map
that can be used for future extensions.Constructor and Description |
---|
DelegationPermission()
Default constructor for
DelegationPermission . |
DelegationPermission(String orgName,
String serviceName,
String version,
String configType,
String subConfigName,
Set actions,
Map extensions)
Constructor for
DelegationPermission . |
DelegationPermission(String orgName,
String serviceName,
String version,
String configType,
String subConfigName,
Set actions,
Map extensions,
org.forgerock.util.Function<String,String,org.forgerock.util.promise.NeverThrowsException> orgNameToDNFunc)
Constructor for
DelegationPermission . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set |
getActions()
Returns the action names in the permission
|
String |
getConfigType()
Returns the config type in the permission
|
Map |
getExtensions()
Returns the extensions in the permission
|
String |
getOrganizationName()
Returns the realm name in the permission
|
String |
getServiceName()
Returns the service name in the permission
|
String |
getSubConfigName()
Returns the subconfig name in the permission
|
String |
getVersion()
Returns the service version in the permission
|
int |
hashCode() |
void |
setActions(Set actions)
Sets the action names in the permission
|
void |
setConfigType(String configType)
Sets the config type in the permission
|
void |
setExtensions(Map extensions)
Sets the extensions in the permission
|
void |
setOrganizationName(String name)
Sets the realm name in the permission
|
void |
setServiceName(String name)
Sets the service name in the permission
|
void |
setSubConfigName(String name)
Sets the subconfig name in the permission
|
void |
setVersion(String version)
Sets the service version in the permission
|
String |
toString()
Returns the
String representation of this
object. |
public DelegationPermission()
DelegationPermission
.public DelegationPermission(String orgName, String serviceName, String version, String configType, String subConfigName, Set actions, Map extensions) throws DelegationException
DelegationPermission
. Constructs a
delegation permission object with a realm name, a service name, a service
version number, a config type, a subconfig name, a set of actions, and a
Map
for extensions.orgName
- The realm name in the delegation permissionserviceName
- The service name in the delegation permissionversion
- The service version in the delegation permissionconfigType
- The config type in the delegation permissionsubConfigName
- The subconfig name in the delegation permissionactions
- The action names in the delegation permissionextensions
- a placeholder for future extensionsDelegationException
- if unable to create the
DelegationPermission
object.public DelegationPermission(String orgName, String serviceName, String version, String configType, String subConfigName, Set actions, Map extensions, org.forgerock.util.Function<String,String,org.forgerock.util.promise.NeverThrowsException> orgNameToDNFunc) throws DelegationException
DelegationPermission
. Constructs a
delegation permission object with a realm name, a service name, a service
version number, a config type, a subconfig name, a set of actions, and a
Map
for extensions.orgName
- The realm name in the delegation permissionserviceName
- The service name in the delegation permissionversion
- The service version in the delegation permissionconfigType
- The config type in the delegation permissionsubConfigName
- The subconfig name in the delegation permissionactions
- The action names in the delegation permissionextensions
- a placeholder for future extensionsDelegationException
- if unable to create the
DelegationPermission
object.public String getOrganizationName()
String
representing the realm name in the permissionpublic void setOrganizationName(String name) throws DelegationException
name
- String
representing the realm name in the
DelegationPermission
.DelegationException
- if name is invalidpublic String getServiceName()
String
representing the service name in the
DelegationPermission
public void setServiceName(String name) throws DelegationException
name
- The service name in the delegation permissionDelegationException
- if name is invalidpublic String getVersion()
public void setVersion(String version) throws DelegationException
version
- The service version in the delegation permissionDelegationException
- if version is invalidpublic String getConfigType()
public void setConfigType(String configType) throws DelegationException
configType
- The config type in the delegation permissionDelegationException
- if config type is invalidpublic String getSubConfigName()
public void setSubConfigName(String name) throws DelegationException
name
- The subconfig name in the delegation permissionDelegationException
- if subconfig name is invalidpublic Set getActions()
public void setActions(Set actions) throws DelegationException
actions
- The action names in the delegation permissionDelegationException
- if an action name is invalidpublic Map getExtensions()
public void setExtensions(Map extensions) throws DelegationException
extensions
- The extensions in the delegation permissionDelegationException
- if some info in extensions is invalidCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.