Search in sources :

Example 6 with PolicyCache

use of com.sun.identity.console.policy.model.PolicyCache in project OpenAM by OpenRock.

the class ConditionOpViewBeanBase method getCachedPolicy.

protected CachedPolicy getCachedPolicy() throws AMConsoleException {
    CachedPolicy policy = null;
    String cacheID = (String) getPageSessionAttribute(ProfileViewBeanBase.PG_SESSION_POLICY_CACHE_ID);
    if (cacheID != null) {
        PolicyCache cache = PolicyCache.getInstance();
        PolicyModel model = (PolicyModel) getModel();
        policy = model.getCachedPolicy(cacheID);
    }
    return policy;
}
Also used : CachedPolicy(com.sun.identity.console.policy.model.CachedPolicy) PolicyModel(com.sun.identity.console.policy.model.PolicyModel) PolicyCache(com.sun.identity.console.policy.model.PolicyCache)

Aggregations

CachedPolicy (com.sun.identity.console.policy.model.CachedPolicy)6 PolicyCache (com.sun.identity.console.policy.model.PolicyCache)6 PolicyModel (com.sun.identity.console.policy.model.PolicyModel)6