Examples of IdentityObject


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

               "; 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

                  throw new IdentityException("Cannot update readonly attribute: " + attributeName);
               }

               if (amd != null && amd.isUnique())
               {
                  IdentityObject checkIdentity = findIdentityObjectByUniqueAttribute(ctx,
                     identity.getIdentityType(),
                     attribute);

                  if (checkIdentity != null && !checkIdentity.getName().equals(identity.getName()))
                  {
                     throw new IdentityException("Unique attribute '" + attribute.getName() + " value already set for identityObject: " +
                        checkIdentity);
                  }
               }
View Full Code Here

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

                  throw new IdentityException("Cannot update readonly attribute: " + attributeName);
               }

               if (amd != null && amd.isUnique())
               {
                  IdentityObject checkIdentity = findIdentityObjectByUniqueAttribute(ctx,
                     identity.getIdentityType(),
                     attribute);

                  if (checkIdentity != null && !checkIdentity.getName().equals(identity.getName()))
                  {
                     throw new IdentityException("Unique attribute '" + attribute.getName() + " value already set for identityObject: " +
                        checkIdentity);
                  }
               }
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

         return defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, controls);
      }

      Collection<IdentityObject> 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

               "; 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

   public Identity createIdentity(String identityName) throws IdentityException
   {
      IdentityObjectType iot = getIdentityObjectType();

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

      return createIdentity(identityObject);
   }
View Full Code Here

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

   public Group createGroup(String groupName, GroupType groupType) throws IdentityException
   {
      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(), getIdentityObjectType(), convertSearchControls(controls));
      List<Identity> identities = new LinkedList<Identity>();

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

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