public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { return defaultIdentityStore.getRelationshipNames(resolveIdentityStoreInvocationContext(ctx), identity, criteria); }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { try { Set<String> results = new HashSet<String>(); // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); results.addAll(identityStore.getRelationshipNames(storeCtx, criteria)); } } return results; } catch (IdentityException e) { if (log.isLoggable(Level.FINER)) { log.log(Level.FINER, "Exception occurred: ", e); } throw e; } }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { try { IdentityStore toStore = resolveIdentityStore(identity); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, ctx); if (toStore.getSupportedFeatures().isNamedRelationshipsSupported()) { return toStore.getRelationshipNames(targetCtx, identity, criteria); } IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, ctx); return defaultIdentityStore.getRelationshipNames(defaultCtx, identity, criteria); } catch (IdentityException e) { if (log.isLoggable(Level.FINER)) { log.log(Level.FINER, "Exception occurred: ", e); } throw e; } }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { IdentityObjectRelationshipNameSearchImpl search = new IdentityObjectRelationshipNameSearchImpl(); search.setIdentityObjectSearchCriteria(criteria); Set<String> results = cacheSupport.getIdentityObjectRelationshipNameSearch(getCacheNS(ctx), search); if (results != null) { return results; } results = identityStore.getRelationshipNames(ctx, criteria); cacheSupport.putIdentityObjectRelationshipNameSearch(getCacheNS(ctx), search, results); return results; }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { IdentityObjectRelationshipNameSearchImpl search = new IdentityObjectRelationshipNameSearchImpl(); if (identity != null) { search.setIoName(identity.getName()); search.setIoType(identity.getIdentityType().getName()); } search.setIdentityObjectSearchCriteria(criteria); Set<String> results = cacheSupport.getIdentityObjectRelationshipNameSearch(getCacheNS(ctx), search); if (results != null) { return results; } results = identityStore.getRelationshipNames(ctx, identity, criteria); cacheSupport.putIdentityObjectRelationshipNameSearch(getCacheNS(ctx), search, results); return results; }