Package org.jasig.services.persondir.support

Examples of org.jasig.services.persondir.support.NamedPersonImpl


    MockHttpServletRequest httpServletRequest  = new MockHttpServletRequest();
    httpServletRequest.setRemoteUser("username");
   
    Map<String, List<Object>> attributes = new HashMap<String, List<Object>>();
    attributes.put("attribute1", Arrays.asList(new Object[] { "value1", "value2", "value3" }));
    NamedPersonImpl personAttributes = new NamedPersonImpl("username", attributes);
   
    PortletWindow plutoPortletWindow = mock(PortletWindow.class);
    IPortletWindow portletWindow = mock(IPortletWindow.class);
    IPortletEntity portletEntity = mock(IPortletEntity.class);
    when(portletWindow.getPortletEntity()).thenReturn(portletEntity);
View Full Code Here


                }
            }
           
            // use the filtered attribute list to create and return a new
            // person object
            final IPersonAttributes visiblePerson = new NamedPersonImpl(person.getName(), visibleAttributes);
            return visiblePerson;
           
        } else {
            logger.debug("Principal " + principal.getKey() + " does not have permissions to view user " + person.getName());
            return null;
View Full Code Here

       
        final IPersonAttributes newPerson;
       
        final String name = person.getName();
        if (name != null) {
            newPerson = new NamedPersonImpl(name, mappedAttributes);
        }
        else {
            final String userNameAttribute = this.getConfiguredUserNameAttribute();
            newPerson = new AttributeNamedPersonImpl(userNameAttribute, mappedAttributes);
        }
View Full Code Here

        }
       
        final Map<String, List<Object>> personAttributes = person.getAttributes();
        final Map<String, List<Object>> mutablePersonAttributes = new LinkedHashMap<String, List<Object>>(personAttributes);
        final Map<String, List<Object>> mergedAttributes = this.attributeMerger.mergeAttributes(mutablePersonAttributes, attributeOverrides);
        return new NamedPersonImpl(name, mergedAttributes);
    }
View Full Code Here

TOP

Related Classes of org.jasig.services.persondir.support.NamedPersonImpl

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.