use of com.sun.identity.entitlement.EntitlementListener in project OpenAM by OpenRock.
the class OpenSSOEntitlementListener method getListeners.
private List<EntitlementListener> getListeners() throws EntitlementException {
List<EntitlementListener> listeners = new ArrayList<EntitlementListener>();
try {
AttributeSchema as = getAttributeSchema();
Set<String> values = as.getDefaultValues();
if (values != null) {
for (String v : values) {
listeners.add(new EntitlementListener(new JSONObject(v)));
}
}
} catch (JSONException e) {
throw new EntitlementException(426, e);
} catch (SMSException e) {
throw new EntitlementException(426, e);
} catch (SSOException e) {
throw new EntitlementException(427, e);
}
return listeners;
}
Aggregations