Package org.jboss.identity.idm.spi.model

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


   public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx,
                                              String name,
                                              IdentityObjectType identityObjectType) throws IdentityException
   {
      IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType);

      if (io != null)
      {
         //should also invalidate IO searches cache - searches/type - clear all children
         invalidateCachedIdentityObjectSearches(io);
View Full Code Here


   public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx,
                                              String name,
                                              IdentityObjectType identityObjectType,
                                              Map<String, String[]> attributes) throws IdentityException
   {
      IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType, attributes);



      if (io != null)
      {
View Full Code Here

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

      if (io == null)
      {
         io = identityStore.findIdentityObject(invocationContext, name, identityObjectType);
         putIntoCache(io);
View Full Code Here

   }

   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

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

            if (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

               throw new IdentityException("Cannot add readonly attribute: " + attribute.getName());
            }

            if (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

   public User findUserByUniqueAttribute(String attributeName, Object value) throws IdentityException
   {
      checkNotNullArgument(attributeName, "Attribute name");
      checkNotNullArgument(value, "Attribute value");

      IdentityObject io = getRepository().findIdentityObjectByUniqueAttribute(getInvocationContext(), getUserObjectType(), new SimpleAttribute(attributeName, value));

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

   {
      checkNotNullArgument(groupType, "GroupType");
      checkNotNullArgument(attributeName, "Attribute name");
      checkNotNullArgument(value, "Attribute value");

      IdentityObject io = getRepository().findIdentityObjectByUniqueAttribute(getInvocationContext(),
         getIdentityObjectType(groupType),
         new SimpleAttribute(attributeName, value));

      if (io == null)
      {
View Full Code Here

      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

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

      IdentityObject defaultStoreIdentityObject = null;

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

TOP

Related Classes of org.jboss.identity.idm.spi.model.IdentityObject

Copyright © 2018 www.massapicom. 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.