Examples of IdentityObject


Examples of org.jboss.identity.idm.spi.model.IdentityObject

      Collection<IdentityObject> ios = getRepository().findIdentityObject(getInvocationContext(), getIdentityObjectType(groupType), convertSearchControls(controls));
      List<Group> groups = new LinkedList<Group>();

      for (Iterator<IdentityObject> iterator = ios.iterator(); iterator.hasNext();)
      {
         IdentityObject identityObject = iterator.next();
         groups.add(createGroup(identityObject));
      }

      return groups;
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      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.model.IdentityObject

          mappedStore.getSupportedFeatures().isNamedRelationshipsSupported())
      {
         results = mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, controls);
      }

      IdentityObject defaultStoreIdentityObject = null;

      try
      {
         defaultStoreIdentityObject = defaultIdentityStore.findIdentityObject(defaultCtx, identity.getName(), identity.getIdentityType());
      }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      checkNotNullArgument(identityName, "Identity name");
      checkObjectName(identityName);

      IdentityObjectType iot = getUserObjectType();

      IdentityObject identityObject = getRepository().createIdentityObject(getInvocationContext(), identityName, iot);

      return createUser(identityObject);
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      checkObjectName(groupName);
      checkObjectName(groupType);

      IdentityObjectType iot = getIdentityObjectType(groupType);

      IdentityObject identityObject = getRepository().createIdentityObject(getInvocationContext(), groupName, iot);

      return createGroup(identityObject);
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      Collection<IdentityObject> ios = getRepository().findIdentityObject(getInvocationContext(), getUserObjectType(), convertSearchControls(controls));
      List<User> identities = new LinkedList<User>();

      for (Iterator<IdentityObject> iterator = ios.iterator(); iterator.hasNext();)
      {
         IdentityObject identityObject = iterator.next();
         identities.add(createUser(identityObject));
      }

      return identities;
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      Collection<IdentityObject> ios = getRepository().findIdentityObject(getInvocationContext(), getIdentityObjectType(groupType), convertSearchControls(controls));
      List<Group> groups = new LinkedList<Group>();

      for (Iterator<IdentityObject> iterator = ios.iterator(); iterator.hasNext();)
      {
         IdentityObject identityObject = iterator.next();
         groups.add(createGroup(identityObject));
      }

      return groups;
   }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

               "; Posible data inconsistency");
         }
         SearchResult res = (SearchResult)sr.iterator().next();
         ctx = (Context)res.getObject();
         String dn = ctx.getNameInNamespace();
         IdentityObject io = createIdentityObjectInstance(invocationCtx, type, res.getAttributes(), dn);
         ctx.close();
         return io;

      }
      catch (NoSuchElementException e)
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      Node ioNode = getCache().getRoot().getChild(nodeFqn);

      if (ioNode != null)
      {
         IdentityObject io = (IdentityObject)ioNode.get(NODE_OBJECT_KEY);

         if (getLog().isLoggable(Level.FINER))
         {
            getLog().finer(this.toString() + "IdentityObject found in cache: name=" + io.getName() + "; id=" + io.getId());
         }

         return io;
      }
View Full Code Here

Examples of org.jboss.identity.idm.spi.model.IdentityObject

      {
         for (Object name : typeNode.getChildrenNames())
         {
            if (name.toString().equals(id))
            {
               IdentityObject io = (IdentityObject)typeNode.getChild(name).get(NODE_OBJECT_KEY);

               if (getLog().isLoggable(Level.FINER))
               {
                  getLog().finer(this.toString() + "IdentityObject found in cache: name" + io.getName() + "; type" + io.getIdentityType().getName());
               }

               return io;
            }
         }
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.