Examples of IdentityStoreInvocationContext


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

   {
      IdentityStore fromStore = resolveIdentityStore(fromIdentity);

      IdentityStore toStore = resolveIdentityStore(toIdentity);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCxt);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);

      if (fromStore == toStore)
      {
         if (relationshipName == null ||
            (relationshipName != null && fromStore.getSupportedFeatures().isNamedRelationshipsSupported()))
View Full Code Here

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

   {
      IdentityStore fromStore = resolveIdentityStore(identity1);

      IdentityStore toStore = resolveIdentityStore(identity2);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCtx);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCtx);


      if (fromStore == toStore)
      {
         fromStore.removeRelationships(toTargetCtx, identity1, identity2, named);
View Full Code Here

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

      IdentityStore fromStore = resolveIdentityStore(fromIdentity);

      IdentityStore toStore = resolveIdentityStore(toIdentity);

      IdentityStoreInvocationContext toTargetCtx = resolveInvocationContext(toStore, invocationCxt);

      IdentityStoreInvocationContext defaultTargetCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);

      if (fromStore == toStore)
      {
         return fromStore.resolveRelationships(toTargetCtx, fromIdentity, toIdentity, relationshipType);
View Full Code Here

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

            continue;
         }

         if (!named || (named && identityStore.getSupportedFeatures().isNamedRelationshipsSupported()))
         {
            IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx);
            relationships.addAll(identityStore.resolveRelationships(storeCtx, identity, relationshipType, parent, named, name));
         }
      }

      return relationships;
View Full Code Here

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

      // For any IdentityStore that supports named relationships...
      for (IdentityStore identityStore : configuredIdentityStores)
      {
         if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported())
         {
            IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx);
            identityStore.createRelationshipName(storeCtx, name);

         }
      }
View Full Code Here

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

      // For any IdentityStore that supports named relationships...
      for (IdentityStore identityStore : configuredIdentityStores)
      {
         if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported())
         {
            IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx);
            identityStore.removeRelationshipName(storeCtx, name);

         }
      }
View Full Code Here

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

      // 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, controls));

         }
      }
View Full Code Here

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

   public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchControl[] 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.IdentityStoreInvocationContext

   }

   public boolean validateCredential(IdentityStoreInvocationContext ctx, IdentityObject identityObject, IdentityObjectCredential credential) throws IdentityException
   {
      IdentityStore toStore = resolveIdentityStore(identityObject);
      IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, ctx);

      return toStore.validateCredential(targetCtx, identityObject, credential);
   }
View Full Code Here

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

   }

   public void updateCredential(IdentityStoreInvocationContext ctx, IdentityObject identityObject, IdentityObjectCredential credential) throws IdentityException
   {
      IdentityStore toStore = resolveIdentityStore(identityObject);
      IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, ctx);

      toStore.updateCredential(targetCtx, identityObject, credential);
   }
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.