@Test public void testGetPermittedAttributes() { final Set<String> permittedAttributes = getPermittedAttributes(principal, ALL_ATTRIBUTES); assertTrue(permittedAttributes.contains(GENERALLY_PERMITTED_ATTRIBUTE)); assertFalse(permittedAttributes.contains(PERMITTED_OWN_ATTRIBUTE)); assertFalse(permittedAttributes.contains(NEVER_PERMITTED_ATTRIBUTE)); }
protected Set<String> getPermittedAttributes(final IAuthorizationPrincipal principal) { final Set<String> attributeNames = personAttributeDao.getPossibleUserAttributeNames(); return getPermittedAttributes(principal, attributeNames); }
PersonLookupHelperImpl implements IPersonLookupHelper { protected Set<String> getPermittedAttributes(final IAuthorizationPrincipal principal) { final Set<String> attributeNames = personAttributeDao.getPossibleUserAttributeNames(); return getPermittedAttributes(principal, attributeNames); } }
PersonLookupHelperImpl implements IPersonLookupHelper { protected Set<String> getPermittedAttributes(final IAuthorizationPrincipal principal) { final Set<String> attributeNames = personAttributeDao.getPossibleUserAttributeNames(); return getPermittedAttributes(principal, attributeNames); }  }
PersonLookupHelperImpl implements IPersonLookupHelper { protected Set<String> getPermittedAttributes(final IAuthorizationPrincipal principal) { final Set<String> attributeNames = personAttributeDao.getPossibleUserAttributeNames(); return getPermittedAttributes(principal, attributeNames); }  IPersonAttributeDao getPersonAttributeDao(); void setPersonAttributeDao(IPersonAttributeDao personLookupDao); void setMaxResults(int maxResults); int getMaxResults(); void setSearchThreadCount(int searchThreadCount); void setSearchThreadTimeoutSeconds(long searchThreadTimeoutSeconds); @PostConstruct void initializeSearchExecutor(); @Override Set<String> getQueryAttributes(ExternalContext externalContext); @Override Set<String> getDisplayAttributes(ExternalContext externalContext); @Override IPersonAttributes getSelf(ExternalContext externalContext); @Override List<IPersonAttributes> searchForPeople(
            final IPerson searcher, final Map<String, Object> query); @Override IPersonAttributes findPerson(final IPerson searcher, final String username); }
PersonLookupHelperImpl implements IPersonLookupHelper { protected Set<String> getPermittedAttributes(final IAuthorizationPrincipal principal) { final Set<String> attributeNames = personAttributeDao.getPossibleUserAttributeNames(); return getPermittedAttributes(principal, attributeNames); }  IPersonAttributeDao getPersonAttributeDao(); void setPersonAttributeDao(IPersonAttributeDao personLookupDao); void setMaxResults(int maxResults); int getMaxResults(); void setSearchThreadCount(int searchThreadCount); void setSearchThreadTimeoutSeconds(long searchThreadTimeoutSeconds); @PostConstruct void initializeSearchExecutor(); @Override Set<String> getQueryAttributes(ExternalContext externalContext); @Override Set<String> getDisplayAttributes(ExternalContext externalContext); @Override IPersonAttributes getSelf(ExternalContext externalContext); @Override List<IPersonAttributes> searchForPeople(
            final IPerson searcher, final Map<String, Object> query); @Override IPersonAttributes findPerson(final IPerson searcher, final String username);  }