Examples of IdentityStore


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

                                                        boolean parent,
                                                       IdentityObjectSearchControl[] controls) 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, controls);
      }

      Collection<IdentityObject> results = mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, controls);

      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.resteasy.keystone.model.IdentityStore

      DEFAULT_MAPPER.enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);
   }

   public String export(Cache cache)
   {
      IdentityStore store = toStore(cache);
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      write(baos, store);
      return new String(baos.toByteArray());
   }
View Full Code Here

Examples of org.jboss.resteasy.keystone.model.IdentityStore

      }
   }

   public void importStore(InputStream is, Cache cache)
   {
      IdentityStore store = importStore(is);
      importStore(store, cache);
   }
View Full Code Here

Examples of org.jboss.resteasy.keystone.model.IdentityStore

      }
   }

   public void export(Cache cache, OutputStream os)
   {
      IdentityStore store = toStore(cache);
      write(os, store);

   }
View Full Code Here

Examples of org.jboss.resteasy.keystone.model.IdentityStore

   public IdentityStore toStore(Cache cache)
   {
      List<StoredUser> users = new ArrayList<StoredUser>();
      List<Role> roles = new ArrayList<Role>();
      List<StoredProject> projects = new ArrayList<StoredProject>();
      IdentityStore store = new IdentityStore();
      for (Object value : cache.values())
      {
         if (value instanceof StoredUser)
         {
            users.add((StoredUser) value);
            store.setUsers(users);
         } else if (value instanceof Role)
         {
            roles.add((Role) value);
            store.setRoles(roles);
         } else if (value instanceof StoredProject)
         {
            projects.add((StoredProject) value);
            store.setProjects(projects);
         }
      }
      return store;
   }
View Full Code Here

Examples of org.jboss.seam.security.management.IdentityStore

      return recipient.getName();
   }
  
   protected Principal resolvePrincipal(Object principal, boolean isUser)
   {
      IdentityStore ids = IdentityManager.instance().getRoleIdentityStore();
      JpaIdentityStore identityStore = null;
     
      if (ids instanceof JpaIdentityStore) identityStore = (JpaIdentityStore) ids;
     
      if (principal instanceof String)
View Full Code Here

Examples of org.jboss.seam.security.management.IdentityStore

      return recipient.getName();
   }
  
   protected Principal resolvePrincipal(Object principal, boolean isUser)
   {
      IdentityStore ids = IdentityManager.instance().getRoleIdentityStore();
      JpaIdentityStore identityStore = null;
     
      if (ids instanceof JpaIdentityStore) identityStore = (JpaIdentityStore) ids;
     
      if (principal instanceof String)
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.