1 Reply Latest reply: Sep 6, 2011 2:29 AM by Chetan Mehrotra RSS

    Calling DirectoryManager.findPrincipals() returns max of 10 results

    Tim Mead Community Member

      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:



      public class MyServiceImpl implements MyService


         @Resource( name="applicationDomain" )

         private String applicationDomain;


         private DirectoryManager directoryManager;


         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;