Examples of IPersonAttributeDao


Examples of org.jasig.services.persondir.IPersonAttributeDao

       
        daoBackingMap.put("userWithDisplayName", userWithDisplayNameAttributes);
        daoBackingMap.put("userWithEmptyDisplayName", userWithEmptyDisplayNameAttributes);
        daoBackingMap.put("userWithoutDisplayName", userWithoutDisplayNameAttributes);
             
        IPersonAttributeDao paDao = new ComplexStubPersonAttributeDao(daoBackingMap);
       
        this.finder = new PersonDirNameFinder(paDao);
       
    }
View Full Code Here

Examples of org.jasig.services.persondir.IPersonAttributeDao

    IPortletDefinition portletDefinition = mock(IPortletDefinition.class);
    when(portletEntity.getPortletDefinition()).thenReturn(portletDefinition);
    IPortletDefinitionId portletDefinitionId = mock(IPortletDefinitionId.class);
    when(portletDefinition.getPortletDefinitionId()).thenReturn(portletDefinitionId);
   
    IPersonAttributeDao personAttributeDao = mock(IPersonAttributeDao.class);
    when(personAttributeDao.getPerson("username")).thenReturn(personAttributes);
 
    IPortletWindowRegistry portletWindowRegistry = mock(IPortletWindowRegistry.class);
    when(portletWindowRegistry.convertPortletWindow(httpServletRequest, plutoPortletWindow)).thenReturn(portletWindow);
   
    List<UserAttributeType> userAttributesList = new ArrayList<UserAttributeType>();
View Full Code Here

Examples of org.jasig.services.persondir.IPersonAttributeDao

    private synchronized static void storeSingleton() {
        // recheck that we need to run because field could have been
        // set since we decided to invoke this method but before we acquired
        // the lock on this object
        if (PERSON_DIR_NAME_FINDER_INSTANCE == null) {
            IPersonAttributeDao personAttributeDao = PersonAttributeDaoLocator
                    .getPersonAttributeDao();
            PERSON_DIR_NAME_FINDER_INSTANCE = new PersonDirNameFinder(
                    personAttributeDao);
        }
    }
View Full Code Here

Examples of org.jasig.services.persondir.IPersonAttributeDao

       
        daoBackingMap.put("userWithDisplayName", userWithDisplayNameAttributes);
        daoBackingMap.put("userWithEmptyDisplayName", userWithEmptyDisplayNameAttributes);
        daoBackingMap.put("userWithoutDisplayName", userWithoutDisplayNameAttributes);
             
        IPersonAttributeDao paDao = new ComplexStubPersonAttributeDao(daoBackingMap);
       
        this.finder = new PersonDirNameFinder(paDao);
       
    }
View Full Code Here

Examples of org.jasig.services.persondir.IPersonAttributeDao

      {
         if (member.getEntityType() != IPERSON_CLASS)
             { return false; }
         IPerson person = null;
         try {
             IPersonAttributeDao pa = PersonAttributeDaoLocator.getPersonAttributeDao();
             final IPersonAttributes personAttributes = pa.getPerson(member.getKey());

             RestrictedPerson rp = PersonFactory.createRestrictedPerson();
             if (personAttributes != null) {
                 rp.setAttributes(personAttributes.getAttributes());
             }
View Full Code Here

Examples of org.jasig.services.persondir.IPersonAttributeDao

        {
           if (member.getEntityType() != IPERSON_CLASS)
               { return false; }
           IPerson person = null;
           try {
               IPersonAttributeDao pa = PersonAttributeDaoLocator.getPersonAttributeDao();
               final IPersonAttributes personAttributes = pa.getPerson(member.getKey());

               RestrictedPerson rp = PersonFactory.createRestrictedPerson();
               if (personAttributes != null) {
                   rp.setAttributes(personAttributes.getAttributes());
               }
View Full Code Here

Examples of org.jasig.services.persondir.IPersonAttributeDao

   
    /* (non-Javadoc)
     * @see org.jasig.portal.portlets.swapper.IAttributeSwapperHelper#getOriginalUserAttributes(java.lang.String)
     */
    public IPersonAttributes getOriginalUserAttributes(String uid) {
        final IPersonAttributeDao delegatePersonAttributeDao = this.overwritingPersonAttributeDao.getDelegatePersonAttributeDao();
        return delegatePersonAttributeDao.getPerson(uid);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.