public class RegistryPolicyStoreManageModule extends AbstractPolicyFinderModule implements PolicyStoreManageModule
ALL_COMBINATIONS, COMBINATIONS_BY_CATEGORY, COMBINATIONS_BY_CATEGORY_AND_PARAMETER, COMBINATIONS_BY_PARAMETER, NO_COMBINATIONS
Constructor and Description |
---|
RegistryPolicyStoreManageModule() |
Modifier and Type | Method and Description |
---|---|
void |
addPolicy(PolicyStoreDTO policy)
add policy in to the store
|
boolean |
deletePolicy(String policyIdentifier)
delete policy from the store
|
String[] |
getActivePolicies()
gets all supported active policies.
|
String |
getModuleName()
gets name of this module
|
String[] |
getOrderedPolicyIdentifiers()
gets all supported policy ids by this module
if policy ordering is supported by module itself, these policy ids must be ordered
|
String |
getPolicy(String policyId)
gets policy for given policy Id
|
String[] |
getPolicyIdentifiers() |
int |
getPolicyOrder(String policyId) |
String |
getReferencedPolicy(String policyId)
gets reference policy for given policy Id
reference policy can not be with PDP policy store, may be in some external policy store
Therefore new method has been add for retrieve reference policies
|
Map<String,Set<AttributeDTO>> |
getSearchAttributes(String identifier,
Set<AttributeDTO> givenAttribute)
gets attributes that are used for policy searching
|
int |
getSupportedSearchAttributesScheme()
gets support attribute searching scheme of this module
|
void |
init(Properties properties)
init policy store module
|
boolean |
isDefaultCategoriesSupported()
returns whether this module supports for default category of policies
if means policies has been written based subject or users, resource, actions and environment
|
boolean |
isPolicyDeActivationSupport()
returns whether this module supports for policy activation or de-activation.
|
boolean |
isPolicyExist(String policyId)
Check whether policy is exist or not
|
boolean |
isPolicyOrderingSupport()
returns whether this module supports for policy ordering.
|
void |
updatePolicy(PolicyStoreDTO policy)
update policy in to the store
|
invalidateCache, invalidateCache
public void init(Properties properties)
PolicyStoreManageModule
init
in interface PolicyFinderModule
init
in interface PolicyStoreManageModule
properties
- Properties, that need to initialize the modulepublic void addPolicy(PolicyStoreDTO policy) throws EntitlementException
PolicyStoreManageModule
addPolicy
in interface PolicyStoreManageModule
EntitlementException
public boolean isPolicyExist(String policyId)
PolicyStoreManageModule
isPolicyExist
in interface PolicyStoreManageModule
policyId
- policy id as String
public void updatePolicy(PolicyStoreDTO policy) throws EntitlementException
PolicyStoreManageModule
updatePolicy
in interface PolicyStoreManageModule
EntitlementException
public boolean deletePolicy(String policyIdentifier)
PolicyStoreManageModule
deletePolicy
in interface PolicyStoreManageModule
public String getModuleName()
PolicyFinderModule
getModuleName
in interface PolicyFinderModule
public String getPolicy(String policyId)
PolicyFinderModule
getPolicy
in interface PolicyFinderModule
policyId
- policy id as String valuepublic int getPolicyOrder(String policyId)
getPolicyOrder
in interface PolicyFinderModule
public String[] getActivePolicies()
PolicyFinderModule
getActivePolicies
in interface PolicyFinderModule
getActivePolicies
in class AbstractPolicyFinderModule
public String[] getOrderedPolicyIdentifiers()
PolicyFinderModule
getOrderedPolicyIdentifiers
in interface PolicyFinderModule
getOrderedPolicyIdentifiers
in class AbstractPolicyFinderModule
public String[] getPolicyIdentifiers()
getPolicyIdentifiers
in class AbstractPolicyFinderModule
public String getReferencedPolicy(String policyId)
PolicyFinderModule
getReferencedPolicy
in interface PolicyFinderModule
policyId
- policy id as String valuepublic Map<String,Set<AttributeDTO>> getSearchAttributes(String identifier, Set<AttributeDTO> givenAttribute)
PolicyFinderModule
getSearchAttributes
in interface PolicyFinderModule
getSearchAttributes
in class AbstractPolicyFinderModule
identifier
- unique identifier to separate out search attributesgivenAttribute
- pre-given attributes to retrieve other attributespublic int getSupportedSearchAttributesScheme()
PolicyFinderModule
getSupportedSearchAttributesScheme
in interface PolicyFinderModule
getSupportedSearchAttributesScheme
in class AbstractPolicyFinderModule
public boolean isDefaultCategoriesSupported()
PolicyFinderModule
isDefaultCategoriesSupported
in interface PolicyFinderModule
isDefaultCategoriesSupported
in class AbstractPolicyFinderModule
public boolean isPolicyOrderingSupport()
PolicyFinderModule
isPolicyOrderingSupport
in interface PolicyFinderModule
isPolicyOrderingSupport
in class AbstractPolicyFinderModule
public boolean isPolicyDeActivationSupport()
PolicyFinderModule
isPolicyDeActivationSupport
in interface PolicyFinderModule
isPolicyDeActivationSupport
in class AbstractPolicyFinderModule
Copyright © 2016 WSO2. All rights reserved.