public class PolicySearch extends Object
Constructor and Description |
---|
PolicySearch(boolean cachingEnable,
int cachingInterval) |
Modifier and Type | Method and Description |
---|---|
EntitledResultSetDTO |
getEntitledAttributes(String identifier,
AttributeDTO[] givenAttributes)
gets all entitled attributes for given set of attributes
this an universal method to do policy search and find entitlement attributes
|
EntitledResultSetDTO |
getEntitledAttributes(String subjectName,
String resourceName,
String subjectId,
String action,
boolean enableChildSearch)
This returns resource name as the list of the entitled attributes for given
user or role and action, after evaluating the all the active policies in the PDP
|
public EntitledResultSetDTO getEntitledAttributes(String subjectName, String resourceName, String subjectId, String action, boolean enableChildSearch) throws EntitlementException
subjectName
- subject nameresourceName
- resource namesubjectId
- subject attribute Idaction
- Action NameenableChildSearch
- whether search is done for the child resources under the given resource nameEntitlementException
- throwspublic EntitledResultSetDTO getEntitledAttributes(String identifier, AttributeDTO[] givenAttributes)
identifier
- identifier to separate out the attributes that is used for search
this is not required and can be nullgivenAttributes
- user provided attributesCopyright © 2016 WSO2. All rights reserved.