public Set<String> getSupportedAttributeNames(IdentityStoreInvocationContext invocationContext, IdentityObjectType identityType) throws IdentityException { // Doesn't need to be cached return attributeStore.getSupportedAttributeNames(invocationContext, identityType); }
public Set<String> getSupportedAttributeNames(IdentityStoreInvocationContext invocationContext, IdentityObjectType identityType) throws IdentityException { return defaultAttributeStore.getSupportedAttributeNames(resolveAttributeStoreInvocationContext(invocationContext), identityType); }
public Set<String> getSupportedAttributeNames(IdentityStoreInvocationContext invocationContext, IdentityObjectType identityType) throws IdentityException { Set<String> results; IdentityStore toStore = resolveIdentityStore(identityType); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, invocationContext); results = toStore.getSupportedAttributeNames(targetCtx, identityType); if (toStore != defaultAttributeStore) { IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultAttributeStore, invocationContext); results.addAll(defaultAttributeStore.getSupportedAttributeNames(defaultCtx, identityType)); } return results; }
Set<String> supportedAttrs = defaultAttributeStore.getSupportedAttributeNames(defaultCtx, identity.getIdentityType()); for (String name : leftAttrs)
Set<String> supportedAttrs = defaultAttributeStore.getSupportedAttributeNames(defaultCtx, identity.getIdentityType()); for (IdentityObjectAttribute entry : leftAttrs)
public IdentityObject findIdentityObjectByUniqueAttribute(IdentityStoreInvocationContext invocationCtx, IdentityObjectType identityObjectType, IdentityObjectAttribute attribute) throws IdentityException { List<String> filteredAttrs = new LinkedList<String>(); List<String> leftAttrs = new LinkedList<String>(); IdentityStore toStore = resolveIdentityStore(identityObjectType); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, invocationCtx); // Put supported attrs to the main store if (toStore != defaultAttributeStore) { Set<String> supportedAttrs = toStore.getSupportedAttributeNames(targetCtx, identityObjectType); if (supportedAttrs.contains(attribute.getName())) { return toStore.findIdentityObjectByUniqueAttribute(targetCtx, identityObjectType, attribute); } } IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultAttributeStore, invocationCtx); if (isAllowNotDefinedAttributes()) { defaultAttributeStore.findIdentityObjectByUniqueAttribute(defaultCtx, identityObjectType, attribute); } else { Set<String> supportedAttrs = defaultAttributeStore.getSupportedAttributeNames(defaultCtx, identityObjectType); if (supportedAttrs.contains(attribute.getName())) { return toStore.findIdentityObjectByUniqueAttribute(defaultCtx, identityObjectType, attribute); } } return null; }
Set<String> supportedAttrs = defaultAttributeStore.getSupportedAttributeNames(defaultCtx, identity.getIdentityType()); for (IdentityObjectAttribute entry : attributesToAdd)