public class EntitlementAdminService extends Object
Constructor and Description |
---|
EntitlementAdminService() |
Modifier and Type | Method and Description |
---|---|
void |
clearAllAttributeCaches()
Clears Carbon attribute finder cache and All the attribute cache implementations in each
PIP attribute finder level
|
void |
clearAllResourceCaches()
Clears Carbon resource finder cache and All the resource cache implementations in each
PIP resource finder level
|
void |
clearAttributeFinderCache(String attributeFinder)
Clears the cache maintained by the attribute finder.
|
void |
clearAttributeFinderCacheByAttributes(String attributeFinder,
String[] attributeIds)
Clears the cache maintained by the attribute finder - by attributes
|
void |
clearCarbonAttributeCache()
Clears the carbon attribute cache
|
void |
clearCarbonResourceCache()
Clears the carbon resource cache
|
void |
clearDecisionCache()
Clears the decision cache.
|
void |
clearPolicyCache()
Clears the policy cache.
|
void |
clearResourceFinderCache(String resourceFinder)
Clears the cache maintained by the resource finder.
|
String |
doTestRequest(String xacmlRequest)
Tests engine of PAP policy store
|
String |
doTestRequestForGivenPolicies(String xacmlRequest,
String[] policies)
Tests engine of PAP policy store
|
String |
getGlobalPolicyAlgorithm()
Gets globally defined policy combining algorithm
|
PDPDataHolder |
getPDPData() |
PIPFinderDataHolder |
getPIPAttributeFinderData(String finder) |
PIPFinderDataHolder |
getPIPResourceFinderData(String finder) |
PolicyFinderDataHolder |
getPolicyFinderData(String finder) |
void |
refreshAttributeFinder(String attributeFinder)
Refreshes the supported Attribute ids of a given attribute finder module
|
void |
refreshPolicyFinders(String policyFinder)
Refreshes the supported resource id of a given resource finder module
|
void |
refreshResourceFinder(String resourceFinder)
Refreshes the supported resource id of a given resource finder module
|
void |
setGlobalPolicyAlgorithm(String policyCombiningAlgorithm)
Sets policy combining algorithm globally
|
public void clearDecisionCache() throws EntitlementException
EntitlementException
- throwspublic void clearPolicyCache() throws EntitlementException
EntitlementException
- throwspublic void clearAllAttributeCaches() throws EntitlementException
EntitlementException
- throwspublic void clearCarbonAttributeCache() throws EntitlementException
EntitlementException
- throwspublic void clearAttributeFinderCache(String attributeFinder)
attributeFinder
- Canonical name of the attribute finder class.public void clearAttributeFinderCacheByAttributes(String attributeFinder, String[] attributeIds)
attributeFinder
- Canonical name of the attribute finder class.attributeIds
- An array of attribute id.public void clearAllResourceCaches() throws EntitlementException
EntitlementException
- throwspublic void clearCarbonResourceCache() throws EntitlementException
EntitlementException
- throwspublic void clearResourceFinderCache(String resourceFinder)
resourceFinder
- Canonical name of the resource finder class.public void refreshAttributeFinder(String attributeFinder) throws EntitlementException
attributeFinder
- Canonical name of the attribute finder class.EntitlementException
- throws if fails to refreshpublic void refreshResourceFinder(String resourceFinder) throws EntitlementException
resourceFinder
- Canonical name of the resource finder class.EntitlementException
- throws if fails to refreshpublic void refreshPolicyFinders(String policyFinder) throws EntitlementException
policyFinder
- Canonical name of the resource finder class.EntitlementException
- throws if fails to refreshpublic String doTestRequest(String xacmlRequest) throws EntitlementException
xacmlRequest
- EntitlementException
public String doTestRequestForGivenPolicies(String xacmlRequest, String[] policies) throws EntitlementException
xacmlRequest
- policies
- policy ids that is evaluatedEntitlementException
public PDPDataHolder getPDPData()
public PolicyFinderDataHolder getPolicyFinderData(String finder)
finder
- public PIPFinderDataHolder getPIPAttributeFinderData(String finder)
finder
- public PIPFinderDataHolder getPIPResourceFinderData(String finder)
finder
- public String getGlobalPolicyAlgorithm() throws EntitlementException
EntitlementException
- throwspublic void setGlobalPolicyAlgorithm(String policyCombiningAlgorithm) throws EntitlementException
policyCombiningAlgorithm
- policy combining algorithm as a StringEntitlementException
- throwsCopyright © 2016 WSO2. All rights reserved.