Package org.jboss.identity.idm.api

Examples of org.jboss.identity.idm.api.Attribute


    return getAttributeString(null, idGroup, attributeName);
  }

  protected String getAttributeString(org.jboss.identity.idm.api.User idUser, org.jboss.identity.idm.api.Group idGroup, String attributeName) throws IdentityException {
    AttributesManager attributesManager = identitySession.getAttributesManager();
    Attribute attribute = null;
    if (idUser !=null) {
      attribute = attributesManager.getAttribute(idUser, attributeName);
    } else {
      attribute = attributesManager.getAttribute(idGroup, attributeName);
    }
    if (attribute!=null) {
      return (String) attribute.getValue();
    }
    return null;
  }
View Full Code Here


         for (Map.Entry<String, String[]> entry : attrs.entrySet())
         {
            if (presentAttrs.containsKey(entry.getKey()))
            {
               Set<String> given = new HashSet<String>(Arrays.asList(entry.getValue()));
               Attribute attr = presentAttrs.get(entry.getKey());

               Collection present = null;

               if (attr != null)
               {
                  present = attr.getValues();
               }
               else
               {
                  present = Collections.emptySet();
               }
View Full Code Here

      // Pre fetch attributes
      final Map<T, String> attributes = new HashMap<T, String>();

      for (T object : objects)
      {
         Attribute attr = identitySession.getAttributesManager().getAttribute(object, attributeName);

         if (attr != null && attr.getValue() != null)
         {
            attributes.put(object, attr.getValue().toString());
         }
         else
         {
            attributes.put(object, "");
         }
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.api.Attribute

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.