@Entity public class PolicyEntity extends Object implements Policy
| Constructor and Description |
|---|
PolicyEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociatedPolicy(Policy associatedPolicy) |
void |
addResource(Resource resource) |
void |
addScope(Scope scope) |
boolean |
equals(Object o) |
<P extends 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.
|
String |
getId()
Returns the unique identifier for this instance.
|
Logic |
getLogic()
Returns the
Logic for this policy. |
String |
getName()
Returns the name of this policy.
|
Set<ResourceEntity> |
getResources()
Returns the
Resource instances where this policy applies. |
ResourceServerEntity |
getResourceServer()
Returns the
ResourceServer where this policy belongs to. |
Set<ScopeEntity> |
getScopes()
Returns the
Scope instances where this policy applies. |
String |
getType()
Returns the type of this policy.
|
int |
hashCode() |
void |
removeAssociatedPolicy(Policy associatedPolicy) |
void |
removeResource(Resource resource) |
void |
removeScope(Scope scope) |
void |
setAssociatedPolicies(Set<PolicyEntity> associatedPolicies) |
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 |
setId(String id) |
void |
setLogic(Logic logic)
Sets the {Logic} for this policy.
|
void |
setName(String name)
Sets an unique name to this policy.
|
void |
setResources(Set<ResourceEntity> resources) |
void |
setResourceServer(ResourceServerEntity resourceServer) |
void |
setScopes(Set<ScopeEntity> scopes) |
void |
setType(String type) |
public String getId()
Policypublic void setId(String id)
public String getType()
Policypublic void setType(String type)
public DecisionStrategy getDecisionStrategy()
PolicyDecisionStrategy for this policy.getDecisionStrategy in interface Policypublic void setDecisionStrategy(DecisionStrategy decisionStrategy)
PolicysetDecisionStrategy in interface Policypublic Logic getLogic()
PolicyLogic for this policy.public void setLogic(Logic logic)
Policypublic Map<String,String> getConfig()
PolicyMap holding string-based key/value pairs representing any additional configuration for this policy.public void setConfig(Map<String,String> config)
PolicyMap with string-based key/value pairs representing any additional configuration for this policy.public String getName()
Policypublic void setName(String name)
Policypublic String getDescription()
PolicygetDescription in interface Policypublic void setDescription(String description)
PolicysetDescription in interface Policydescription - a descriptionpublic ResourceServerEntity getResourceServer()
PolicyResourceServer where this policy belongs to.getResourceServer in interface Policypublic void setResourceServer(ResourceServerEntity resourceServer)
public <P extends Policy> Set<P> getAssociatedPolicies()
PolicyPolicy instances associated with this policy and used to evaluate authorization decisions when
this policy applies.getAssociatedPolicies in interface Policypublic void setAssociatedPolicies(Set<PolicyEntity> associatedPolicies)
public Set<ResourceEntity> getResources()
PolicyResource instances where this policy applies.getResources in interface Policypublic void setResources(Set<ResourceEntity> resources)
public Set<ScopeEntity> getScopes()
PolicyScope instances where this policy applies.public void setScopes(Set<ScopeEntity> scopes)
public void removeScope(Scope scope)
removeScope in interface Policypublic void addAssociatedPolicy(Policy associatedPolicy)
addAssociatedPolicy in interface Policypublic void removeAssociatedPolicy(Policy associatedPolicy)
removeAssociatedPolicy in interface Policypublic void addResource(Resource resource)
addResource in interface Policypublic void removeResource(Resource resource)
removeResource in interface PolicyCopyright © 2016 JBoss by Red Hat. All rights reserved.