Search in sources :

Example 6 with AMClientCapData

use of com.iplanet.services.cdm.clientschema.AMClientCapData in project OpenAM by OpenRock.

the class MAPCreateDeviceModelImpl method getAttributeSchema.

private AttributeSchema getAttributeSchema(String name) {
    AttributeSchema as = null;
    AMClientCapData internalInstance = getClientCapDataIntInstance();
    AMClientCapData externalInstance = getClientCapDataExtInstance();
    if ((internalInstance != null) && (externalInstance != null)) {
        as = internalInstance.getAttributeSchema(name);
        if (as == null) {
            as = externalInstance.getAttributeSchema(name);
        }
        if (as != null) {
            String i18nKey = as.getI18NKey();
            if ((i18nKey == null) || (i18nKey.length() == 0)) {
                as = null;
            }
        }
    }
    return as;
}
Also used : AMClientCapData(com.iplanet.services.cdm.clientschema.AMClientCapData) AttributeSchema(com.sun.identity.sm.AttributeSchema)

Aggregations

AMClientCapData (com.iplanet.services.cdm.clientschema.AMClientCapData)6 Map (java.util.Map)3 AttributeSchema (com.sun.identity.sm.AttributeSchema)2 HashSet (java.util.HashSet)2 Set (java.util.Set)2 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1