public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType, Map<String, String[]> attributes) throws IdentityException { return defaultIdentityStore.createIdentityObject(resolveIdentityStoreInvocationContext(invocationCtx), name, identityObjectType, attributes); }
defaultIdentityStore.createIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType) throws IdentityException { IdentityStore targetStore = resolveIdentityStore(identityObjectType); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(targetStore, invocationCtx); IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, invocationCtx); // If object is present in default store then ignore IdentityObject mock = new SimpleIdentityObject(name, identityObjectType); if (targetStore != defaultIdentityStore && hasIdentityObject(defaultCtx, defaultIdentityStore, mock)) { return mock; } if (isIdentityStoreReadOnly(targetStore)) { targetStore = defaultIdentityStore; targetCtx = defaultCtx; } IdentityObject result = null; try { result = targetStore.createIdentityObject(targetCtx, name, identityObjectType); } catch (IdentityException e) { log.log(Level.SEVERE, "Failed to create IdentityObject: ", e); } return result; }
defaultIdentityStore.createIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
defaultIdentityStore.createIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType, Map<String, String[]> attributes) throws IdentityException { IdentityStore targetStore = resolveIdentityStore(identityObjectType); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(targetStore, invocationCtx); IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, invocationCtx); // If object is present in default store then ignore IdentityObject mock = new SimpleIdentityObject(name, identityObjectType); if (targetStore != defaultIdentityStore && hasIdentityObject(defaultCtx, defaultIdentityStore, mock)) { return mock; } if (isIdentityStoreReadOnly(targetStore)) { targetStore = defaultIdentityStore; targetCtx = resolveInvocationContext(defaultIdentityStore, invocationCtx); } IdentityObject result = null; try { result = targetStore.createIdentityObject(targetCtx, name, identityObjectType, attributes); } catch (IdentityException e) { log.log(Level.SEVERE, "Failed to create IdentityObject: ", e); } return result; }
defaultIdentityStore.createIdentityObject(defaultTargetCtx, identity1.getName(), identity1.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, identity2.getName(), identity2.getIdentityType());
defaultIdentityStore.createIdentityObject(defaultTargetCtx, fromIdentity.getName(), fromIdentity.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, toIdentity.getName(), toIdentity.getIdentityType());
defaultIdentityStore.createIdentityObject(defaultTargetCtx, fromIdentity.getName(), fromIdentity.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, toIdentity.getName(), toIdentity.getIdentityType());
defaultIdentityStore.createIdentityObject(defaultTargetCtx, fromIdentity.getName(), fromIdentity.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, toIdentity.getName(), toIdentity.getIdentityType());
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType, Map<String, String[]> attributes) throws IdentityException { IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType, attributes); if (io != null) { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectCount(getCacheNS(invocationCtx), identityObjectType.getName()); } return io; }
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType) throws IdentityException { IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType); if (io != null) { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectCount(getCacheNS(invocationCtx), identityObjectType.getName()); } return io; }