org.exoplatform.services.organization.Query.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(257)

本文整理了Java中org.exoplatform.services.organization.Query.<init>方法的一些代码示例,展示了Query.<init>的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.<init>方法的具体详情如下:
包路径:org.exoplatform.services.organization.Query
类名称:Query
方法名:<init>

Query.<init>介绍

暂无

代码示例

代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo

  1. public void search(String keyword, String filter, String groupId) throws Exception
  2. Query q = new Query();
  3. if (keyword != null && (keyword = keyword.trim()).length() != 0)

代码示例来源:origin: exoplatform/platform

  1. query = new Query();
  2. query.setUserName(username);
  3. users = userHandler.findUsersByQuery(query, UserStatus.ANY);
  4. query = new Query();
  5. query.setEmail(email);
  6. users = userHandler.findUsersByQuery(query, UserStatus.ANY);
  7. username = cookie.getValue();
  8. if(username != null && username.length() > 0) {
  9. query = new Query();
  10. query.setUserName(username);
  11. users = userHandler.findUsersByQuery(query, UserStatus.ANY);

代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo

  1. public void execute(Event<UIUserSelector> event) throws Exception
  2. {
  3. UIUserSelector uiSelectUserForm = event.getSource();
  4. String groupId = uiSelectUserForm.getSelectedGroup();
  5. OrganizationService service = uiSelectUserForm.getApplicationComponent(OrganizationService.class);
  6. PageList users = PageList.EMPTY_LIST;
  7. if (groupId != null && groupId.trim().length() != 0)
  8. {
  9. if (service.getGroupHandler().findGroupById(groupId) != null)
  10. {
  11. users = uiSelectUserForm.removeDuplicate(service.getUserHandler().findUsersByGroup(groupId));
  12. }
  13. }
  14. else
  15. {
  16. users = service.getUserHandler().findUsers(new Query());
  17. }
  18. users.setPageSize(10);
  19. uiSelectUserForm.uiIterator_.setPageList(users);
  20. uiSelectUserForm.setKeyword(null);
  21. event.getRequestContext().addUIComponentToUpdateByAjax(uiSelectUserForm);
  22. }
  23. }

代码示例来源:origin: exoplatform/platform

  1. if (!errorFields.contains("emailAddress")) {
  2. try {
  3. Query query = new Query();
  4. query.setEmail(email);
  5. ListAccess<User> users = orgService.getUserHandler().findUsersByQuery(query, UserStatus.ANY);

代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo

  1. public UIUserSelector() throws Exception
  2. {
  3. addUIFormInput(new UIFormStringInput(FIELD_KEYWORD, FIELD_KEYWORD, null));
  4. addUIFormInput(new UIFormSelectBox(FIELD_FILTER, FIELD_FILTER, getFilters()));
  5. addUIFormInput(new UIFormStringInput(FIELD_GROUP, FIELD_GROUP, null));
  6. isShowSearch_ = true;
  7. OrganizationService service = getApplicationComponent(OrganizationService.class);
  8. ObjectPageList objPageList = new ObjectPageList(service.getUserHandler().findUsers(new Query()).getAll(), 10);
  9. uiIterator_ = new UIPageIterator();
  10. uiIterator_.setPageList(objPageList);
  11. uiIterator_.setId("UISelectUserPage");
  12. // create group selector
  13. UIPopupWindow uiPopup = addChild(UIPopupWindow.class, null, "UIPopupGroupSelector");
  14. uiPopup.setWindowSize(540, 0);
  15. UIGroupSelector uiGroup = createUIComponent(UIGroupSelector.class, null, null);
  16. uiPopup.setUIComponent(uiGroup);
  17. uiGroup.setId("GroupSelector");
  18. uiGroup.getChild(UITree.class).setId("TreeGroupSelector");
  19. uiGroup.getChild(UIBreadcumbs.class).setId("BreadcumbsGroupSelector");
  20. }

代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo

  1. Query query = new Query();
  2. query.setEmail(getUIStringInput("email").getValue());
  3. if (service.getUserHandler().findUsers(query).getAll().size() > 0)

相关文章