public Set<String> getSupportedRelationshipTypes() { Set<String> supportedRelTypes = new HashSet<String>(); for (IdentityStore identityStore : getIdentityStoreMappings().values()) { supportedRelTypes.addAll(identityStore.getSupportedFeatures().getSupportedRelationshipTypes()); } supportedRelTypes.addAll(defaultIdentityStore.getSupportedFeatures().getSupportedRelationshipTypes()); return supportedRelTypes; }
public Set<String> getSupportedIdentityObjectTypes() { Set<String> supportedIOTs = new HashSet<String>(); for (IdentityStore identityStore : getIdentityStoreMappings().values()) { supportedIOTs.addAll(identityStore.getSupportedFeatures().getSupportedIdentityObjectTypes()); } supportedIOTs.addAll(defaultIdentityStore.getSupportedFeatures().getSupportedRelationshipTypes()); return supportedIOTs; }
public JBossCacheIdentityStoreWrapper(IdentityStore identityStore, IdentityStoreCacheProvider cacheSupport) throws IdentityException { super(identityStore, cacheSupport); this.identityStore = identityStore; cacheSupport.initResidentNodes(identityStore.getSupportedFeatures().getSupportedIdentityObjectTypes(), identityStore.getSupportedFeatures().getSupportedRelationshipTypes()); log.fine("------------------------------------------------------"); log.fine("JBossCacheIdentityStoreWrapper created ....." + "(IdentityStore: " + identityStore.getId() + ")"); log.fine("------------------------------------------------------"); }
public Set<IdentityObjectRelationship> resolveRelationships(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectRelationshipType relationshipType, boolean parent, boolean named, String name) throws IdentityException { Set<IdentityObjectRelationship> relationships = new HashSet<IdentityObjectRelationship>(); // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (!identityStore.getSupportedFeatures().getSupportedRelationshipTypes().contains(relationshipType.getName())) { continue; } if (!named || (named && identityStore.getSupportedFeatures().isNamedRelationshipsSupported())) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); relationships.addAll(identityStore.resolveRelationships(storeCtx, identity, relationshipType, parent, named, name)); } } return relationships; }