Examples of IdentityStore


Examples of org.jboss.identity.idm.spi.store.IdentityStore

      return defaultIdentityStore.findIdentityObject(invocationContext, id);
   }

   public Collection<IdentityObject> findIdentityObject(IdentityStoreInvocationContext invocationCtx, IdentityObjectType identityType, IdentityObjectSearchCriteria controls) throws IdentityException
   {
      IdentityStore targetStore = resolveIdentityStore(identityType);
      IdentityStoreInvocationContext targetCtx = resolveInvocationContext(targetStore, invocationCtx);

      return targetStore.findIdentityObject(targetCtx, identityType, controls);
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

                                                        boolean parent,
                                                       IdentityObjectSearchCriteria constraints) throws IdentityException
   {
      // Check in the mapped store and merge with default

      IdentityStore mappedStore = resolveIdentityStore(identity);

      IdentityStoreInvocationContext mappedCtx = resolveInvocationContext(mappedStore, invocationCxt);

      IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);


      if (mappedStore == defaultIdentityStore)
      {
         return defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, constraints);
      }

      Collection<IdentityObject> results = new LinkedList<IdentityObject>();

      if (relationshipType == null || !RoleManagerImpl.ROLE.getName().equals(relationshipType.getName()) ||
          mappedStore.getSupportedFeatures().isNamedRelationshipsSupported())
      {
         results = mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, constraints);
      }

      IdentityObject defaultStoreIdentityObject = null;

      try
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

   }

   public IdentityObjectRelationship createRelationship(IdentityStoreInvocationContext invocationCxt, IdentityObject fromIdentity, IdentityObject toIdentity, IdentityObjectRelationshipType relationshipType, String relationshipName, boolean createNames) throws IdentityException
   {
      IdentityStore fromStore = resolveIdentityStore(fromIdentity);

      IdentityStore toStore = resolveIdentityStore(toIdentity);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCxt);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

      return defaultIdentityStore.createRelationship(defaultTargetCtx, fromIdentity, toIdentity, relationshipType, relationshipName, createNames);
   }

   public void removeRelationship(IdentityStoreInvocationContext invocationCxt, IdentityObject fromIdentity, IdentityObject toIdentity, IdentityObjectRelationshipType relationshipType, String relationshipName) throws IdentityException
   {
      IdentityStore fromStore = resolveIdentityStore(fromIdentity);

      IdentityStore toStore = resolveIdentityStore(toIdentity);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCxt);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

      defaultIdentityStore.removeRelationship(defaultTargetCtx, fromIdentity, toIdentity, relationshipType, relationshipName);
   }

   public void removeRelationships(IdentityStoreInvocationContext invocationCtx, IdentityObject identity1, IdentityObject identity2, boolean named) throws IdentityException
   {
      IdentityStore fromStore = resolveIdentityStore(identity1);

      IdentityStore toStore = resolveIdentityStore(identity2);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCtx);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCtx);
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

                                                               IdentityObject fromIdentity,
                                                               IdentityObject toIdentity,
                                                               IdentityObjectRelationshipType relationshipType) throws IdentityException
   {

      IdentityStore fromStore = resolveIdentityStore(fromIdentity);

      IdentityStore toStore = resolveIdentityStore(toIdentity);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCxt);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

   }

   public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchCriteria controls) throws IdentityException, OperationNotSupportedException
   {

      IdentityStore toStore = resolveIdentityStore(identity);
      IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, ctx);

      if (toStore.getSupportedFeatures().isNamedRelationshipsSupported())
      {
         return toStore.getRelationshipNames(targetCtx, identity, controls);
      }
      IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, ctx);

      return defaultIdentityStore.getRelationshipNames(defaultCtx, identity, controls);
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

   }

   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);
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

      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;
      }
View Full Code Here

Examples of org.jboss.identity.idm.spi.store.IdentityStore

      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;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.