Search in sources :

Example 11 with Syntax

use of com.sun.identity.policy.Syntax in project OpenAM by OpenRock.

the class ReferralOpViewBeanBase method getValues.

private Set getValues(String referralType) throws ModelControlException {
    PolicyModel model = (PolicyModel) getModel();
    String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
    Syntax syntax = model.getReferralSyntax(realmName, referralType);
    Set values = getActionSchemaValues(syntax);
    if (values.isEmpty()) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", "policy.missing.referral.value");
        values = null;
    }
    return values;
}
Also used : Set(java.util.Set) PolicyModel(com.sun.identity.console.policy.model.PolicyModel) Syntax(com.sun.identity.policy.Syntax)

Aggregations

Syntax (com.sun.identity.policy.Syntax)11 PolicyModel (com.sun.identity.console.policy.model.PolicyModel)5 PolicyException (com.sun.identity.policy.PolicyException)5 SSOException (com.iplanet.sso.SSOException)4 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)4 NameNotFoundException (com.sun.identity.policy.NameNotFoundException)4 PolicyManager (com.sun.identity.policy.PolicyManager)4 Map (java.util.Map)4 Set (java.util.Set)4 QueryResults (com.sun.identity.console.base.model.QueryResults)2 ReferralTypeManager (com.sun.identity.policy.ReferralTypeManager)2 SubjectTypeManager (com.sun.identity.policy.SubjectTypeManager)2 Referral (com.sun.identity.policy.interfaces.Referral)2 Subject (com.sun.identity.policy.interfaces.Subject)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Iterator (java.util.Iterator)2