Skip navigation
Tim Mead
Currently Being Moderated

Calling DirectoryManager.findPrincipals() returns max of 10 results

Sep 6, 2011 1:24 AM

I've got a basic service written in Java that leverages the LiveCycle API, and I'm calling com.adobe.idp.um.api.DirectoryManager.findPrincipals() to load a set of users from the system. However, this always seems to return a maximum of 10 results. Is there an optional parameter to override the maximum?

 

An excerpt of the implementation is below:

 

@Service("...")

public class MyServiceImpl implements MyService

{

   @Resource( name="applicationDomain" )

   private String applicationDomain;


   @Autowired

   private DirectoryManager directoryManager;


   @Override

   pubilc List<User> getUsers(  )

   {

      PrincipalSearchFilter psf = new PrincipalSearchFilter(  );

      psf.setPrincipalType( Principal.PRINCIPALTYPE_USER );

      psf.setRetrieveOnlyActive(  );

      psf.setSpecificDomainName( applicationDomain );

 


      List<User> results;


      results = directoryManager.findPrincipals( psf );


      return results;

   }

}

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points