Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-220

Expose Identity atributes as a read-only map

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.5.0.Beta6
    • PLINK_2.5.0.Beta5
    • IDM
    • None

      In JSF pages, normally it's desirable to display a user attribute from the logged user, like:

      <h:graphicImage value="#{identity.agent.attributes['image']}" width="40" height="40" />
      

      However, the code above does not work, given that org.picketlink.idm.model.AbstractAttributedType doesn't expose the attributes as a java.util.Map, therefore making it impossible to use it in JSF.

      The following method could be added in this same class to allow that:

       
      public Map<String, Attribute<? extends Serializable>> getAttributeMap() {
          return Collections.unmodifiableMap(attributes);
      }
      

              psilva@redhat.com Pedro Igor Craveiro
              rhn-support-ggastald George Gastaldi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: