org.wso2.carbon.policy.evaluator
Class FeatureFilterImpl

java.lang.Object
  extended by org.wso2.carbon.policy.evaluator.FeatureFilterImpl
All Implemented Interfaces:
FeatureFilter

public class FeatureFilterImpl
extends Object
implements FeatureFilter

This class is responsible for evaluating the policy (Configurations sets) and returning the effective features set.


Constructor Summary
FeatureFilterImpl()
           
 
Method Summary
 List<org.wso2.carbon.policy.mgt.common.Feature> evaluate(List<org.wso2.carbon.policy.mgt.common.Policy> policyList, List<FeatureRules> featureRulesList)
          This method returns the effective feature list when policy list and feature aggregation rules are supplied.
 List<org.wso2.carbon.policy.mgt.common.Feature> evaluateFeatures(List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<FeatureRules> featureRulesList)
          This method is responsible for supplying tasks to other methods to evaluate given features.
 List<org.wso2.carbon.policy.mgt.common.Feature> extractFeatures(List<org.wso2.carbon.policy.mgt.common.Policy> policyList)
          This method extract the features from the given policy list in the order they are provided in the list.
 void getAllApplicableFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks the all features of the give type.
 void getDenyOverridesFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks up denied features, if there is no denied features it will add to the list, the final permitted feature.
 void getFirstApplicableFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks the first features of the give type.
 void getHighestApplicableFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks the feature with the highest value of given type.
 void getLastApplicableFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks the last features of the give type.
 void getLowestApplicableFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks the feature with the lowest value of given type.
 void getPermitOverridesFeatures(String featureName, List<org.wso2.carbon.policy.mgt.common.Feature> featureList, List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
          This method picks up permitted features, if there is no permitted features it will add to the list, the final denied feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureFilterImpl

public FeatureFilterImpl()
Method Detail

evaluate

public List<org.wso2.carbon.policy.mgt.common.Feature> evaluate(List<org.wso2.carbon.policy.mgt.common.Policy> policyList,
                                                                List<FeatureRules> featureRulesList)
This method returns the effective feature list when policy list and feature aggregation rules are supplied.

Specified by:
evaluate in interface FeatureFilter
Parameters:
policyList -
featureRulesList -
Returns:

extractFeatures

public List<org.wso2.carbon.policy.mgt.common.Feature> extractFeatures(List<org.wso2.carbon.policy.mgt.common.Policy> policyList)
This method extract the features from the given policy list in the order they are provided in the list.

Specified by:
extractFeatures in interface FeatureFilter
Parameters:
policyList -
Returns:

evaluateFeatures

public List<org.wso2.carbon.policy.mgt.common.Feature> evaluateFeatures(List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                                                        List<FeatureRules> featureRulesList)
This method is responsible for supplying tasks to other methods to evaluate given features.

Specified by:
evaluateFeatures in interface FeatureFilter
Parameters:
featureList -
featureRulesList -
Returns:

getDenyOverridesFeatures

public void getDenyOverridesFeatures(String featureName,
                                     List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                     List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks up denied features, if there is no denied features it will add to the list, the final permitted feature. But if given policies do not have features of given type, it will not add anything.

Specified by:
getDenyOverridesFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -

getPermitOverridesFeatures

public void getPermitOverridesFeatures(String featureName,
                                       List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                       List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks up permitted features, if there is no permitted features it will add to the list, the final denied feature. But if given policies do not have features of given type, it will not add anything.

Specified by:
getPermitOverridesFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -

getFirstApplicableFeatures

public void getFirstApplicableFeatures(String featureName,
                                       List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                       List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks the first features of the give type. But if given policies do not have features of given type, it will not add anything.

Specified by:
getFirstApplicableFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -

getLastApplicableFeatures

public void getLastApplicableFeatures(String featureName,
                                      List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                      List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks the last features of the give type. But if given policies do not have features of given type, it will not add anything.

Specified by:
getLastApplicableFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -

getAllApplicableFeatures

public void getAllApplicableFeatures(String featureName,
                                     List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                     List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks the all features of the give type. But if given policies do not have features of given type, it will not add anything.

Specified by:
getAllApplicableFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -

getHighestApplicableFeatures

public void getHighestApplicableFeatures(String featureName,
                                         List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                         List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks the feature with the highest value of given type. But if given policies do not have features of given type, it will not add anything.

Specified by:
getHighestApplicableFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -

getLowestApplicableFeatures

public void getLowestApplicableFeatures(String featureName,
                                        List<org.wso2.carbon.policy.mgt.common.Feature> featureList,
                                        List<org.wso2.carbon.policy.mgt.common.Feature> effectiveFeatureList)
This method picks the feature with the lowest value of given type. But if given policies do not have features of given type, it will not add anything.

Specified by:
getLowestApplicableFeatures in interface FeatureFilter
Parameters:
featureName -
featureList -
effectiveFeatureList -


Copyright © 2015 WSO2. All rights reserved.