Package org.picketlink.idm.api.query

Examples of org.picketlink.idm.api.query.UserQuery


        if (fullResults == null) {
            getOrganizationService().flush();

            userQueryBuilder.page(index, length);
            UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
            users = getIDMService().getIdentitySession().list(query);
        } else {
            users = fullResults.subList(index, index + length);
        }
View Full Code Here


                result = fullResults.size();
            } else if (countAll) {
                result = getIDMService().getIdentitySession().getPersistenceManager().getUserCount();
            } else {
                userQueryBuilder.page(0, 0);
                UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
                fullResults = getIDMService().getIdentitySession().list(query);
                result = fullResults.size();
            }

            size = result;
View Full Code Here

   }

   public User[] load(int index, int length) throws Exception, IllegalArgumentException
   {
      userQueryBuilder.page(index, length);
      UserQuery query = userQueryBuilder.createQuery();
      List<org.picketlink.idm.api.User> users = idmService.getIdentitySession().list(query);

      User[] exoUsers = new User[users.size()];

      for (int i = 0; i < users.size(); i++)
View Full Code Here

         return idmService.getIdentitySession().getPersistenceManager().getUserCount();
      }
      else
      {
         userQueryBuilder.page(0, 0);
         UserQuery query = userQueryBuilder.createQuery();
         return idmService.getIdentitySession().execute(query).size();
      }

   }
View Full Code Here

        log.info("Finish enable all users in : {}ms", (System.currentTimeMillis() - startTime));
    }

    private List<org.picketlink.idm.api.User> load(UserQueryBuilder qb, int index, int length) throws Exception {
        qb.sort(SortOrder.ASCENDING).page(index, length);
        UserQuery query = qb.createQuery();
        return getIdentitySession().list(query);
    }
View Full Code Here

        if (fullResults == null) {
            getOrganizationService().flush();

            userQueryBuilder.page(index, length);
            UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
            users = getIDMService().getIdentitySession().list(query);
        } else {
            users = fullResults.subList(index, index + length);
        }
View Full Code Here

                */
//             result = getIDMService().getIdentitySession().getPersistenceManager().getUserCount(enabledOnly);
                result = getIDMService().getIdentitySession().getPersistenceManager().getUserCount();
            } else {
                userQueryBuilder.page(0, 0);
                UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
                fullResults = getIDMService().getIdentitySession().list(query);
                result = fullResults.size();
            }

            size = result;
View Full Code Here

        if (fullResults == null) {
            getOrganizationService().flush();

            userQueryBuilder.page(index, length);
            UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
            users = getIDMService().getIdentitySession().list(query);
        } else {
            users = fullResults.subList(index, index + length);
        }
View Full Code Here

                */
//             result = getIDMService().getIdentitySession().getPersistenceManager().getUserCount(enabledOnly);
                result = getIDMService().getIdentitySession().getPersistenceManager().getUserCount();
            } else {
                userQueryBuilder.page(0, 0);
                UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
                fullResults = getIDMService().getIdentitySession().list(query);
                result = fullResults.size();
            }

            size = result;
View Full Code Here

   }

   public User[] load(int index, int length) throws Exception, IllegalArgumentException
   {
      userQueryBuilder.page(index, length);
      UserQuery query = userQueryBuilder.sort(SortOrder.ASCENDING).createQuery();
      List<org.picketlink.idm.api.User> users = idmService.getIdentitySession().list(query);

      User[] exoUsers = new User[users.size()];

      for (int i = 0; i < users.size(); i++)
View Full Code Here

TOP

Related Classes of org.picketlink.idm.api.query.UserQuery

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.