public class PolicyAdapter extends AbstractAuthorizationModel implements Policy, JpaModel<PolicyEntity>
Policy.FilterOption, Policy.SearchableFieldsCONFIG_SEPARATOR| Constructor and Description |
|---|
PolicyAdapter(PolicyEntity entity,
javax.persistence.EntityManager em,
StoreFactory storeFactory) |
throwExceptionIfReadonlypublic PolicyAdapter(PolicyEntity entity, javax.persistence.EntityManager em, StoreFactory storeFactory)
public PolicyEntity getEntity()
getEntity in interface JpaModel<PolicyEntity>public DecisionStrategy getDecisionStrategy()
getDecisionStrategy in interface Policypublic void setDecisionStrategy(DecisionStrategy decisionStrategy)
setDecisionStrategy in interface Policypublic void removeConfig(String name)
removeConfig in interface Policypublic String getDescription()
getDescription in interface Policypublic void setDescription(String description)
setDescription in interface Policypublic ResourceServer getResourceServer()
getResourceServer in interface Policypublic Set<Policy> getAssociatedPolicies()
getAssociatedPolicies in interface Policypublic Set<Resource> getResources()
getResources in interface Policypublic 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 Policypublic static PolicyEntity toEntity(javax.persistence.EntityManager em, Policy policy)
Copyright © 2021 JBoss by Red Hat. All rights reserved.