Package org.jasig.portal.container.om.portlet

Examples of org.jasig.portal.container.om.portlet.UserAttributeImpl


        IPerson person = staticData.getPerson();
        if (person.getSecurityContext().isAuthenticated()) {
           
            // for each attribute the Portlet requested
            for (Iterator iter = userAttributes.iterator(); iter.hasNext(); ) {
                UserAttributeImpl userAttribute = (UserAttributeImpl)iter.next();
                String attName = userAttribute.getName();
                String attValue = (String)person.getAttribute(attName);
                if ((attValue == null || attValue.equals("")) && attName.equals(PASSWORD_ATTR)) {
                    attValue = getPassword(person.getSecurityContext());
                }
                userInfo.put(attName, attValue);
View Full Code Here


    private UserAttributeListImpl getUserAttributes(Element portletAppE) {
        UserAttributeListImpl userAttributes = new UserAttributeListImpl();
        NodeList userAttributesNL = portletAppE.getElementsByTagName("user-attribute");
        for (int i = 0; i < userAttributesNL.getLength(); i +=1) {
            Element userAttributeE = (Element)userAttributesNL.item(i);
            UserAttributeImpl userAttribute = new UserAttributeImpl();
            userAttribute.setDescription(XML.getChildElementText(userAttributeE, "description"));
            userAttribute.setName(XML.getChildElementText(userAttributeE, "name"));
            userAttributes.add(userAttribute);
        }
        return userAttributes;
    }
View Full Code Here

TOP

Related Classes of org.jasig.portal.container.om.portlet.UserAttributeImpl

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.