Examples of IdentityStoreInvocationContext


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

   {
      //TODO: information about the store mapping should be encoded in id as now its like random guess and this kills performance ...

      for (IdentityStore identityStore : getIdentityStoreMappings().values())
      {
         IdentityStoreInvocationContext targetCtx = resolveInvocationContext(identityStore, invocationContext);

         IdentityObject io = identityStore.findIdentityObject(targetCtx, id);
         if (io != null)
         {
            return io;
View Full Code Here

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

   }

   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.IdentityStoreInvocationContext

   {
      // 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);
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)
      {
         // If relationship is named and target store doesn't support named relationships it need to be put in default store anyway
         if (relationshipName == null ||
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)
      {
         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 &&
         (!RoleManagerImpl.ROLE.getName().equals(relationshipType.getName()) ||
          fromStore.getSupportedFeatures().isNamedRelationshipsSupported()))
      {
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
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.