Package org.jboss.identity.idm.impl.api

Examples of org.jboss.identity.idm.impl.api.SimpleAttribute


     
      org.jboss.identity.idm.api.User idUser= identitySession.getPersistenceManager().createUser(userName);
     
      List<Attribute> attrs = new ArrayList<Attribute>();
      if (givenName != null) {
        attrs.add(new SimpleAttribute(P3PConstants.INFO_USER_NAME_GIVEN, givenName));
      }
      if (familyName != null) {
        attrs.add(new SimpleAttribute(P3PConstants.INFO_USER_NAME_FAMILY, familyName));
      }
      if (businessEmail != null) {
        attrs.add(new SimpleAttribute(P3PConstants.INFO_USER_BUSINESS_INFO_ONLINE_EMAIL, businessEmail));
      }
           
      identitySession.getAttributesManager().addAttributes(idUser, attrs.toArray(new Attribute[attrs.size()]));
      return idUser.getId();
     
View Full Code Here


   {
      checkNotNullArgument(identity, "IdentityType");
      checkNotNullArgument(attributeName, "Attribute name");
      checkNotNullArgument(values, "Attribute values");

      Attribute[] attrs = new Attribute[]{new SimpleAttribute(attributeName, values)};

      addAttributes(identity, attrs);
   }
View Full Code Here

   {
      checkNotNullArgument(identity, "IdentityType");
      checkNotNullArgument(attributeName, "Attribute name");
      checkNotNullArgument(value, "Attribute value");

      Attribute[] attrs = new Attribute[]{new SimpleAttribute(attributeName, value)};


      addAttributes(identity, attrs);

   }
View Full Code Here

            Attribute attr = attrs.get(attrName);

            if (attr != null)
            {

               IdentityObjectAttribute identityObjectAttribute = new SimpleAttribute(name);

               NamingEnumeration values = attr.getAll();

               while (values.hasMoreElements())
               {
                  identityObjectAttribute.addValue(values.nextElement().toString());
               }

               attrsMap.put(name, identityObjectAttribute);
            }
            else
View Full Code Here

      {
         return (Attribute)attribute;
      }
      else
      {
         return new SimpleAttribute(attribute);
      }
   }
View Full Code Here

      {
         return (IdentityObjectAttribute)attribute;
      }
      else
      {
         return new SimpleAttribute(attribute);
      }
   }
View Full Code Here

      {
         return (Attribute)attribute;
      }
      else
      {
         return new SimpleAttribute(attribute);
      }
   }
View Full Code Here

      {
         return (IdentityObjectAttribute)attribute;
      }
      else
      {
         return new SimpleAttribute(attribute);
      }
   }
View Full Code Here

            Attribute attr = attrs.get(attrName);

            if (attr != null)
            {

               IdentityObjectAttribute identityObjectAttribute = new SimpleAttribute(name);

               NamingEnumeration values = attr.getAll();

               while (values.hasMoreElements())
               {
                  identityObjectAttribute.addValue(values.nextElement().toString());
               }

               attrsMap.put(name, identityObjectAttribute);
            }
            else
View Full Code Here

            Attribute attr = attrs.get(attrName);

            if (attr != null)
            {

               IdentityObjectAttribute identityObjectAttribute = new SimpleAttribute(name);

               NamingEnumeration values = attr.getAll();

               while (values.hasMoreElements())
               {
                  identityObjectAttribute.addValue(values.nextElement().toString());
               }

               attrsMap.put(name, identityObjectAttribute);
            }
            else
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.impl.api.SimpleAttribute

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.