public FeaturesMetaData getSupportedFeatures() { return identityStore.getSupportedFeatures(); }
public FeaturesMetaData getSupportedFeatures() { return defaultIdentityStore.getSupportedFeatures(); }
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 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 boolean isRelationshipPropertiesSupported() { // If there is any IdentityStore that supports relationship properties... for (IdentityStore identityStore : getIdentityStoreMappings().values()) { if (identityStore.getSupportedFeatures().isRelationshipPropertiesSupported()) { return true; } } return defaultIdentityStore.getSupportedFeatures().isRelationshipPropertiesSupported(); }
public boolean isRelationshipNameAddRemoveSupported() { // If there is any IdentityStore that supports named relationships... for (IdentityStore identityStore : getIdentityStoreMappings().values()) { if (identityStore.getSupportedFeatures().isRelationshipNameAddRemoveSupported()) { return true; } } return defaultIdentityStore.getSupportedFeatures().isRelationshipNameAddRemoveSupported(); }
public boolean isRoleNameSearchCriteriaTypeSupported(IdentityObjectSearchCriteriaType constraint) { // If there is any IdentityStore that supports named relationships... for (IdentityStore identityStore : getIdentityStoreMappings().values()) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported() && identityStore.getSupportedFeatures().isRoleNameSearchCriteriaTypeSupported(constraint)) { return true; } } return defaultIdentityStore.getSupportedFeatures().isNamedRelationshipsSupported() && defaultIdentityStore.getSupportedFeatures().isRoleNameSearchCriteriaTypeSupported(constraint); }
public boolean isNamedRelationshipsSupported() { // If there is any IdentityStore that supports named relationships... for (IdentityStore identityStore : getIdentityStoreMappings().values()) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { return true; } } return defaultIdentityStore.getSupportedFeatures().isNamedRelationshipsSupported(); }
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 boolean isIdentityObjectTypeSupported(IdentityObjectType identityObjectType) { return resolveIdentityStore(identityObjectType).getSupportedFeatures().isIdentityObjectTypeSupported(identityObjectType); }
public boolean isRelationshipTypeSupported(IdentityObjectType fromType, IdentityObjectType toType, IdentityObjectRelationshipType relationshipType) throws IdentityException { IdentityStore fromStore = resolveIdentityStore(fromType); IdentityStore toStore = resolveIdentityStore(toType); if (fromStore == toStore) { return fromStore.getSupportedFeatures().isRelationshipTypeSupported(fromType, toType, relationshipType); } else { return defaultIdentityStore.getSupportedFeatures().isRelationshipTypeSupported(fromType, toType, relationshipType); } }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { 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; }
public void setRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name, Map<String, String> properties) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.setRelationshipNameProperties(storeCtx, name, properties); } } }
public void removeRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name, Set<String> properties) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.removeRelationshipNameProperties(storeCtx, name, properties); } } }
public String createRelationshipName(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.createRelationshipName(storeCtx, name); } } return name; }
public String removeRelationshipName(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.removeRelationshipName(storeCtx, name); } } return name; }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { 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); }
public Map<String, String> getRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship) throws IdentityException, OperationNotSupportedException { IdentityStore fromStore = resolveIdentityStore(relationship.getFromIdentityObject()); IdentityStore toStore = resolveIdentityStore(relationship.getToIdentityObject()); if (fromStore == toStore && toStore.getSupportedFeatures().isNamedRelationshipsSupported()) { return fromStore.getRelationshipProperties(resolveInvocationContext(fromStore, ctx), relationship); } return defaultIdentityStore.getRelationshipProperties(resolveInvocationContext(defaultIdentityStore, ctx), relationship); }
public void setRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Map<String, String> properties) throws IdentityException, OperationNotSupportedException { IdentityStore fromStore = resolveIdentityStore(relationship.getFromIdentityObject()); IdentityStore toStore = resolveIdentityStore(relationship.getToIdentityObject()); if (fromStore == toStore && toStore.getSupportedFeatures().isNamedRelationshipsSupported()) { fromStore.setRelationshipProperties(resolveInvocationContext(fromStore, ctx), relationship, properties); return; } defaultIdentityStore.setRelationshipProperties(resolveInvocationContext(defaultIdentityStore, ctx), relationship, properties); }
public void removeRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Set<String> properties) throws IdentityException, OperationNotSupportedException { IdentityStore fromStore = resolveIdentityStore(relationship.getFromIdentityObject()); IdentityStore toStore = resolveIdentityStore(relationship.getToIdentityObject()); if (fromStore == toStore && toStore.getSupportedFeatures().isNamedRelationshipsSupported()) { fromStore.removeRelationshipProperties(resolveInvocationContext(fromStore, ctx), relationship, properties); return; } defaultIdentityStore.removeRelationshipProperties(resolveInvocationContext(defaultIdentityStore, ctx), relationship, properties); }