public abstract class AbstractPolicyFinderModule extends Object implements PolicyFinderModule
ALL_COMBINATIONS, COMBINATIONS_BY_CATEGORY, COMBINATIONS_BY_CATEGORY_AND_PARAMETER, COMBINATIONS_BY_PARAMETER, NO_COMBINATIONS
Constructor and Description |
---|
AbstractPolicyFinderModule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getActivePolicies()
gets all supported active policies.
|
String[] |
getOrderedPolicyIdentifiers()
gets all supported policy ids by this module
if policy ordering is supported by module itself, these policy ids must be ordered
|
protected abstract String[] |
getPolicyIdentifiers() |
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
|
static void |
invalidateCache() |
static void |
invalidateCache(String policyId,
String action)
This method must be called by the module when its policies are updated
|
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 |
isPolicyOrderingSupport()
returns whether this module supports for policy ordering.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModuleName, getPolicy, getPolicyOrder, getReferencedPolicy, init
public static void invalidateCache(String policyId, String action)
public static void invalidateCache()
public String[] getOrderedPolicyIdentifiers()
PolicyFinderModule
getOrderedPolicyIdentifiers
in interface PolicyFinderModule
public String[] getActivePolicies()
PolicyFinderModule
getActivePolicies
in interface PolicyFinderModule
public boolean isDefaultCategoriesSupported()
PolicyFinderModule
isDefaultCategoriesSupported
in interface PolicyFinderModule
public boolean isPolicyOrderingSupport()
PolicyFinderModule
isPolicyOrderingSupport
in interface PolicyFinderModule
public boolean isPolicyDeActivationSupport()
PolicyFinderModule
isPolicyDeActivationSupport
in interface PolicyFinderModule
public Map<String,Set<AttributeDTO>> getSearchAttributes(String identifier, Set<AttributeDTO> givenAttribute)
PolicyFinderModule
getSearchAttributes
in interface PolicyFinderModule
identifier
- unique identifier to separate out search attributesgivenAttribute
- pre-given attributes to retrieve other attributespublic int getSupportedSearchAttributesScheme()
PolicyFinderModule
getSupportedSearchAttributesScheme
in interface PolicyFinderModule
protected abstract String[] getPolicyIdentifiers()
Copyright © 2016 WSO2. All rights reserved.