public class DefaultResourceFinder extends Object implements PIPResourceFinder
Constructor and Description |
---|
DefaultResourceFinder() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the entire cache.
|
Set<String> |
findChildResources(String parentResourceId,
org.wso2.balana.ctx.EvaluationCtx context)
Will be fired by CarbonResourceFinder whenever it wants to find a child resources
|
Set<String> |
findDescendantResources(String parentResourceId,
org.wso2.balana.ctx.EvaluationCtx context)
Will be fired by CarbonResourceFinder whenever it wants to find a descendant resources
|
String |
getModuleName()
gets name of this module
|
void |
init(Properties properties)
initializes the Resource finder module
|
boolean |
overrideDefaultCache()
This is to inform whether to ignore caching of descendant and child resources in carbon level
|
public void init(Properties properties) throws Exception
PIPResourceFinder
init
in interface PIPResourceFinder
properties
- properties, that need to initialize the module. These properties can be
defined in pip-config.xml fileException
- throws when initialization is failedpublic String getModuleName()
PIPResourceFinder
getModuleName
in interface PIPResourceFinder
public Set<String> findDescendantResources(String parentResourceId, org.wso2.balana.ctx.EvaluationCtx context) throws Exception
PIPResourceFinder
findDescendantResources
in interface PIPResourceFinder
parentResourceId
- parent resource valuecontext
- EvaluationCtx which encapsulates the XACML request.Set
of String
s that represent the descendant resourcesException
- throws if any failure is occurredpublic Set<String> findChildResources(String parentResourceId, org.wso2.balana.ctx.EvaluationCtx context) throws Exception
PIPResourceFinder
findChildResources
in interface PIPResourceFinder
parentResourceId
- parent resource valuecontext
- EvaluationCtx which encapsulates the XACML request.Set
of String
s that represent the child resourcesException
- throws if any failure is occurredpublic boolean overrideDefaultCache()
PIPResourceFinder
overrideDefaultCache
in interface PIPResourceFinder
public void clearCache()
PIPResourceFinder
clearCache
in interface PIPResourceFinder
Copyright © 2016 WSO2. All rights reserved.