public Collection<IdentityObject> findIdentityObject(IdentityStoreInvocationContext invocationCtx, IdentityObjectType identityType, IdentityObjectSearchCriteria criteria) throws IdentityException { return defaultIdentityStore.findIdentityObject(resolveIdentityStoreInvocationContext(invocationCtx), identityType, criteria); }
public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext, String name, IdentityObjectType identityObjectType) throws IdentityException { return defaultIdentityStore.findIdentityObject(resolveIdentityStoreInvocationContext(invocationContext), name, identityObjectType); }
public Collection<IdentityObject> findIdentityObject(IdentityStoreInvocationContext invocationCtx, IdentityObject identity, IdentityObjectRelationshipType relationshipType, boolean parent, IdentityObjectSearchCriteria criteria) throws IdentityException { return defaultIdentityStore.findIdentityObject(resolveIdentityStoreInvocationContext(invocationCtx), identity, relationshipType, parent, criteria); }
public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext, String id) throws IdentityException { //TODO: information about the store mapping should be encoded in id as now its like random guess and this kills performance ... for (IdentityStore identityStore : getIdentityStoreMappings().values()) { IdentityStoreInvocationContext targetCtx = resolveInvocationContext(identityStore, invocationContext); IdentityObject io = identityStore.findIdentityObject(targetCtx, id); if (io != null) { return io; } } return defaultIdentityStore.findIdentityObject(invocationContext, id); }
public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext, String name, IdentityObjectType identityObjectType) throws IdentityException { IdentityStore targetStore = resolveIdentityStore(identityObjectType); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(targetStore, invocationContext); return targetStore.findIdentityObject(targetCtx, name, identityObjectType); }
public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext, String id) throws IdentityException { IdentityObject io = cacheSupport.getFromCache(id); if (io == null) { io = identityStore.findIdentityObject(invocationContext, id); cacheSupport.putIntoCache(io); return io; } return io; }
public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext, String name, IdentityObjectType identityObjectType) throws IdentityException { IdentityObject io = cacheSupport.getFromCache(name, identityObjectType); if (io == null) { io = identityStore.findIdentityObject(invocationContext, name, identityObjectType); cacheSupport.putIntoCache(io); return io; } return io; }
protected boolean hasIdentityObject(IdentityStoreInvocationContext ctx, IdentityStore is, IdentityObject io) throws IdentityException { try { if (is.findIdentityObject(ctx, io.getName(), io.getIdentityType()) != null) { return true; } } catch (IdentityException e) { //store may throw exception if there is no identity so do nothing //TODO: should have isIdentityPresent method } return false; }
public Collection<IdentityObject> findIdentityObject(IdentityStoreInvocationContext invocationCtx, IdentityObjectType identityType, IdentityObjectSearchCriteria criteria) throws IdentityException { Collection<IdentityObject> results = cacheSupport.getIdentityObjectSearchFromCache(identityType, criteria); if (results == null) { results = identityStore.findIdentityObject(invocationCtx, identityType, criteria); cacheSupport.putIdentityObjectSearchIntoCache(identityType, criteria, results); // Put all the results into cache separately for (IdentityObject result : results) { cacheSupport.putIntoCache(result); } } return results; }
public Collection<IdentityObject> findIdentityObject(IdentityStoreInvocationContext invocationCtx, IdentityObject identity, IdentityObjectRelationshipType relationshipType, boolean parent, IdentityObjectSearchCriteria criteria) throws IdentityException { Collection<IdentityObject> results = cacheSupport.getIdentityObjectSearchFromCache(identity, relationshipType, parent, criteria); if (results == null) { results = identityStore.findIdentityObject(invocationCtx, identity, relationshipType, parent, criteria); cacheSupport.putIdentityObjectSearchToCache(identity, relationshipType,parent,criteria, results); for (IdentityObject result : results) { cacheSupport.putIntoCache(result); } } return results; }
return defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, criteria); mappedStore.getSupportedFeatures().isNamedRelationshipsSupported()) results = mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, criteria); defaultStoreIdentityObject = defaultIdentityStore.findIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType()); Collection<IdentityObject> objects = defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, criteria);