public void bootstrap(IdentityStoreConfigurationContext configurationContext) throws IdentityException { identityStore.bootstrap(configurationContext); }
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType, Map<String, String[]> attributes) throws IdentityException { return defaultIdentityStore.createIdentityObject(resolveIdentityStoreInvocationContext(invocationCtx), name, identityObjectType, attributes); }
public IdentityStoreSession createIdentityStoreSession( Map<String, Object> sessionOptions) throws IdentityException { Map<String, IdentityStoreSession> sessions = new HashMap<String, IdentityStoreSession>(); sessions.put(defaultAttributeStore.getId(), defaultAttributeStore.createIdentityStoreSession(sessionOptions)); if (!sessions.containsKey(defaultIdentityStore.getId())) { sessions.put(defaultIdentityStore.getId(), defaultIdentityStore.createIdentityStoreSession(sessionOptions)); } return new RepositoryIdentityStoreSessionImpl(sessions); }
public String createRelationshipName(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... try { for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported() && !isIdentityStoreReadOnly(identityStore)) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.createRelationshipName(storeCtx, name); } } return name; } catch (IdentityException e) { if (log.isLoggable(Level.FINER)) { log.log(Level.FINER, "Exception occurred: ", e); } throw e; } }
(relationshipName != null && fromStore.getSupportedFeatures().isNamedRelationshipsSupported())) fromStore.removeRelationship(toTargetCtx, fromIdentity, toIdentity, relationshipType, relationshipName); return; defaultIdentityStore.createIdentityObject(defaultTargetCtx, fromIdentity.getName(), fromIdentity.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, toIdentity.getName(), toIdentity.getIdentityType()); defaultIdentityStore.resolveRelationships(defaultTargetCtx, fromIdentity, toIdentity, relationshipType); removeRelationship(defaultTargetCtx, fromIdentity, toIdentity, relationshipType, relationshipName);
(relationshipName != null && fromStore.getSupportedFeatures().isNamedRelationshipsSupported())) return fromStore.createRelationship(toTargetCtx, fromIdentity, toIdentity, relationshipType, relationshipName, createNames); defaultIdentityStore.createIdentityObject(defaultTargetCtx, fromIdentity.getName(), fromIdentity.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, toIdentity.getName(), toIdentity.getIdentityType()); return defaultIdentityStore.createRelationship(defaultTargetCtx, fromIdentity, toIdentity, relationshipType, relationshipName, createNames);
fromStore == toStore && (!RoleManagerImpl.ROLE.getName().equals(relationshipType.getName()) || fromStore.getSupportedFeatures().isNamedRelationshipsSupported())) return fromStore.resolveRelationships(toTargetCtx, fromIdentity, toIdentity, relationshipType); defaultIdentityStore.createIdentityObject(defaultTargetCtx, fromIdentity.getName(), fromIdentity.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, toIdentity.getName(), toIdentity.getIdentityType()); return defaultIdentityStore.resolveRelationships(defaultTargetCtx, fromIdentity, toIdentity, relationshipType);
Set<String> supportedAttrs = toStore.getSupportedAttributeNames(targetCtx, identity.getIdentityType()); toStore.removeAttributes(targetCtx, identity, filteredAttrs.toArray(new String[filteredAttrs.size()])); defaultIdentityStore.createIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
Set<String> supportedAttrs = toStore.getSupportedAttributeNames(targetCtx, identity.getIdentityType()); toStore.addAttributes(targetCtx, identity, filteredAttrs.toArray(new IdentityObjectAttribute[filteredAttrs.size()])); defaultIdentityStore.createIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
Set<String> supportedAttrs = toStore.getSupportedAttributeNames(targetCtx, identity.getIdentityType()); toStore.updateAttributes(targetCtx, identity, filteredAttrs.toArray(new IdentityObjectAttribute[filteredAttrs.size()])); defaultIdentityStore.createIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext, String name, IdentityObjectType identityObjectType) throws IdentityException { return defaultIdentityStore.findIdentityObject(resolveIdentityStoreInvocationContext(invocationContext), name, identityObjectType); }
fromStore.removeRelationships(toTargetCtx, identity1, identity2, named); return; defaultIdentityStore.createIdentityObject(defaultTargetCtx, identity1.getName(), identity1.getIdentityType()); defaultIdentityStore.createIdentityObject(defaultTargetCtx, identity2.getName(), identity2.getIdentityType()); defaultIdentityStore.removeRelationships(defaultTargetCtx, identity1, identity2, named);
return defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, criteria); && (relationshipType == null || !RoleManagerImpl.ROLE.getName().equals(relationshipType.getName()) || mappedStore.getSupportedFeatures().isNamedRelationshipsSupported()) results = mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, c); return mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, criteria); Collection<IdentityObject> objects = defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, c);
Set<String> supportedAttrs = mappedStore.getSupportedAttributeNames(targetCtx, identityObjectType); result = mappedStore.findIdentityObjectByUniqueAttribute(targetCtx, identityObjectType, attribute);
Collection<IdentityObject> results = identityStore.findIdentityObject(invocationCtx, identityType, criteria); results = identityStore.resolveRelationships(invocationCtx, identity, relationshipType, parent, named, name, criteria);
public IdentityObjectRelationship createRelationship(IdentityStoreInvocationContext invocationCxt, IdentityObject fromIdentity, IdentityObject toIdentity, IdentityObjectRelationshipType relationshipType, String relationshipName, boolean createNames) throws IdentityException { return defaultIdentityStore.createRelationship(resolveIdentityStoreInvocationContext(invocationCxt), fromIdentity, toIdentity, relationshipType, relationshipName, createNames); }
public String createRelationshipName(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { return defaultIdentityStore.createRelationshipName(resolveIdentityStoreInvocationContext(ctx), name); }
results = toStore.getAttributes(targetCtx, identity);
public IdentityObjectAttribute getAttribute(IdentityStoreInvocationContext invocationContext, IdentityObject identity, String name) throws IdentityException { try { IdentityObjectAttribute result = null; IdentityStore toStore = resolveFirstIdentityStoreWithIO(identity, invocationContext); if (toStore != null) { IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, invocationContext); result = toStore.getAttribute(targetCtx, identity, name); } if (result == null && (toStore == null || toStore != defaultAttributeStore)) { IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultAttributeStore, invocationContext); result = defaultAttributeStore.getAttribute(defaultCtx, identity, name); } return result; } catch (IdentityException e) { if (log.isLoggable(Level.FINER)) { log.log(Level.FINER, "Exception occurred: ", e); } throw e; } }