Examples of IdentityObject


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

   }

   public IdentityObject findIdentityObject(IdentityStoreInvocationContext invocationContext,
                                            String id) throws IdentityException
   {
      IdentityObject io = getFromCache(id);

      if (io == null)
      {
         io = identityStore.findIdentityObject(invocationContext, id);
         putIntoCache(io);
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

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

   public User findUser(String name) throws IdentityException
   {
      checkNotNullArgument(name, "User name");

      IdentityObject io = getRepository().findIdentityObject(getInvocationContext(), name, getUserObjectType());

      if (io != null)
      {
         return createUser(io);
      }
View Full Code Here

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

      Collection<IdentityObject> ios = getRepository().findIdentityObject(getInvocationContext(), getUserObjectType(), convertSearchControls(criteria));
      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

   public Group findGroup(String name, String groupType) throws IdentityException
   {
      checkNotNullArgument(name, "Group name");
      checkNotNullArgument(groupType, "Group type");

      IdentityObject io = getRepository().findIdentityObject(getInvocationContext(), name, getIdentityObjectType(groupType));

      if (io != null)
      {
         return createGroup(io);
      }
View Full Code Here

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

      Collection<IdentityObject> ios = getRepository().findIdentityObject(getInvocationContext(), getIdentityObjectType(groupType), convertSearchControls(criteria));
      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

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