public abstract class MapPolicyAdapter<K> extends AbstractPolicyModel<MapPolicyEntity<K>>
Policy.FilterOption, Policy.SearchableFields
entity
storeFactory
CONFIG_SEPARATOR
Constructor and Description |
---|
MapPolicyAdapter(MapPolicyEntity<K> entity,
StoreFactory storeFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addAssociatedPolicy(Policy associatedPolicy) |
void |
addResource(Resource resource) |
void |
addScope(Scope scope) |
Set<Policy> |
getAssociatedPolicies()
Returns the
Policy instances associated with this policy and used to evaluate authorization decisions when
this policy applies. |
Map<String,String> |
getConfig()
Returns a
Map holding string-based key/value pairs representing any additional configuration for this policy. |
DecisionStrategy |
getDecisionStrategy()
Returns the
DecisionStrategy for this policy. |
String |
getDescription()
Returns the description of this policy.
|
Logic |
getLogic()
Returns the
Logic for this policy. |
String |
getName()
Returns the name of this policy.
|
String |
getOwner() |
Set<Resource> |
getResources()
Returns the
Resource instances where this policy applies. |
ResourceServer |
getResourceServer()
Returns the
ResourceServer where this policy belongs to. |
Set<Scope> |
getScopes()
Returns the
Scope instances where this policy applies. |
String |
getType()
Returns the type of this policy.
|
void |
putConfig(String name,
String value) |
void |
removeAssociatedPolicy(Policy associatedPolicy) |
void |
removeConfig(String name) |
void |
removeResource(Resource resource) |
void |
removeScope(Scope scope) |
void |
setConfig(Map<String,String> config)
Sets a
Map with string-based key/value pairs representing any additional configuration for this policy. |
void |
setDecisionStrategy(DecisionStrategy decisionStrategy)
Sets the {DecisionStrategy} for this policy.
|
void |
setDescription(String description)
Sets the description for this policy.
|
void |
setLogic(Logic logic)
Sets the {Logic} for this policy.
|
void |
setName(String name)
Sets an unique name to this policy.
|
void |
setOwner(String owner) |
String |
toString() |
equals, hashCode
throwExceptionIfReadonly
public MapPolicyAdapter(MapPolicyEntity<K> entity, StoreFactory storeFactory)
public String getType()
Policy
public DecisionStrategy getDecisionStrategy()
Policy
DecisionStrategy
for this policy.public void setDecisionStrategy(DecisionStrategy decisionStrategy)
Policy
public Logic getLogic()
Policy
Logic
for this policy.public void setLogic(Logic logic)
Policy
public Map<String,String> getConfig()
Policy
Map
holding string-based key/value pairs representing any additional configuration for this policy.public void setConfig(Map<String,String> config)
Policy
Map
with string-based key/value pairs representing any additional configuration for this policy.public void removeConfig(String name)
public String getName()
Policy
public void setName(String name)
Policy
name
- an unique namepublic String getDescription()
Policy
public void setDescription(String description)
Policy
description
- a descriptionpublic ResourceServer getResourceServer()
Policy
ResourceServer
where this policy belongs to.public Set<Policy> getAssociatedPolicies()
Policy
Policy
instances associated with this policy and used to evaluate authorization decisions when
this policy applies.public Set<Resource> getResources()
Policy
Resource
instances where this policy applies.public Set<Scope> getScopes()
Policy
Scope
instances where this policy applies.public String getOwner()
public void setOwner(String owner)
public void addScope(Scope scope)
public void removeScope(Scope scope)
public void addAssociatedPolicy(Policy associatedPolicy)
public void removeAssociatedPolicy(Policy associatedPolicy)
public void addResource(Resource resource)
public void removeResource(Resource resource)
Copyright © 2021 JBoss by Red Hat. All rights reserved.