Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.LdapLookupRequest


          if (log.isInfoEnabled())
          {
            log.info("Retrieving people for group full DN: " + groupDn);
          }
         
            List<Person> people = directGroupMemberMapper.execute(new LdapLookupRequest(
                groupDn));

            // throw all results into map to eliminate duplicates.
            for (Person p : people)
            {
View Full Code Here


    {
        // map used to collect all groups keyed by their dn. this eliminates duplicates in results.
        HashMap<String, LdapGroup> allGroups = new HashMap<String, LdapGroup>();

        // get the groups by name.
        List<LdapGroup> topLevelGroups = groupMapper.execute(new LdapLookupRequest(inSearchString));

        if (log.isDebugEnabled())
        {
            for (LdapGroup lg : topLevelGroups)
            {
View Full Code Here

        {
          log.debug("Searching for sub groups of group: " + inParentGroup.getDistinguishedName()
              + " with templateKey: " + templateKey);
        }
       
        List<LdapGroup> subGroups = subGroupMapper.execute(new LdapLookupRequest(
            inParentGroup.getDistinguishedName().toCompactString(),
                templateKey));

        // call once here to avoid multiple calls in loop.
        boolean logDebug = log.isDebugEnabled();
View Full Code Here

     */
    @Override
    public List<Person> findPeople(final String inSearchString, final int inResultsUpperBound)
    {
        // lookup users.
        List<Person> results = ldapLookup.execute(new LdapLookupRequest(inSearchString, inResultsUpperBound));

        // set sourcelist criteria on results.
        for (Person p : results)
        {
            p.getSourceList().add(inSearchString);
View Full Code Here

     * Tests mapping.
     */
    @Test
    public void testExecuteOneResult()
    {
        final LdapLookupRequest rqst = new LdapLookupRequest(NTID);

        context.checking(new Expectations()
        {
            {
                allowing(ldapQueryMapper).execute(with(equalInternally(rqst)));
View Full Code Here

     * Tests mapping.
     */
    @Test
    public void testExecuteNoResults()
    {
        final LdapLookupRequest rqst = new LdapLookupRequest(NTID);

        context.checking(new Expectations()
        {
            {
                allowing(ldapQueryMapper).execute(with(equalInternally(rqst)));
View Full Code Here

     */
    @Override
    public String execute(final String inRequest)
    {
        // use LDAP mapper to fetch desired attribute for user
        List<String> results = ldapQueryMapper.execute(new LdapLookupRequest(inRequest));

        return results.isEmpty() ? null : results.get(0);
    }
View Full Code Here

     */
    @Override
    public Boolean execute(final ActionContext inActionContext) throws ExecutionException
    {
        GroupLookupRequest params = (GroupLookupRequest) inActionContext.getParams();
        List<LdapGroup> results = groupMapper.execute(new LdapLookupRequest(params.getQueryString()));

        return results.size() > 0;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.LdapLookupRequest

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.