本文整理了Java中org.exoplatform.services.organization.Query.<init>
方法的一些代码示例,展示了Query.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.<init>
方法的具体详情如下:
包路径:org.exoplatform.services.organization.Query
类名称:Query
方法名:<init>
暂无
代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo
public void search(String keyword, String filter, String groupId) throws Exception
Query q = new Query();
if (keyword != null && (keyword = keyword.trim()).length() != 0)
代码示例来源:origin: exoplatform/platform
query = new Query();
query.setUserName(username);
users = userHandler.findUsersByQuery(query, UserStatus.ANY);
query = new Query();
query.setEmail(email);
users = userHandler.findUsersByQuery(query, UserStatus.ANY);
username = cookie.getValue();
if(username != null && username.length() > 0) {
query = new Query();
query.setUserName(username);
users = userHandler.findUsersByQuery(query, UserStatus.ANY);
代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo
public void execute(Event<UIUserSelector> event) throws Exception
{
UIUserSelector uiSelectUserForm = event.getSource();
String groupId = uiSelectUserForm.getSelectedGroup();
OrganizationService service = uiSelectUserForm.getApplicationComponent(OrganizationService.class);
PageList users = PageList.EMPTY_LIST;
if (groupId != null && groupId.trim().length() != 0)
{
if (service.getGroupHandler().findGroupById(groupId) != null)
{
users = uiSelectUserForm.removeDuplicate(service.getUserHandler().findUsersByGroup(groupId));
}
}
else
{
users = service.getUserHandler().findUsers(new Query());
}
users.setPageSize(10);
uiSelectUserForm.uiIterator_.setPageList(users);
uiSelectUserForm.setKeyword(null);
event.getRequestContext().addUIComponentToUpdateByAjax(uiSelectUserForm);
}
}
代码示例来源:origin: exoplatform/platform
if (!errorFields.contains("emailAddress")) {
try {
Query query = new Query();
query.setEmail(email);
ListAccess<User> users = orgService.getUserHandler().findUsersByQuery(query, UserStatus.ANY);
代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo
public UIUserSelector() throws Exception
{
addUIFormInput(new UIFormStringInput(FIELD_KEYWORD, FIELD_KEYWORD, null));
addUIFormInput(new UIFormSelectBox(FIELD_FILTER, FIELD_FILTER, getFilters()));
addUIFormInput(new UIFormStringInput(FIELD_GROUP, FIELD_GROUP, null));
isShowSearch_ = true;
OrganizationService service = getApplicationComponent(OrganizationService.class);
ObjectPageList objPageList = new ObjectPageList(service.getUserHandler().findUsers(new Query()).getAll(), 10);
uiIterator_ = new UIPageIterator();
uiIterator_.setPageList(objPageList);
uiIterator_.setId("UISelectUserPage");
// create group selector
UIPopupWindow uiPopup = addChild(UIPopupWindow.class, null, "UIPopupGroupSelector");
uiPopup.setWindowSize(540, 0);
UIGroupSelector uiGroup = createUIComponent(UIGroupSelector.class, null, null);
uiPopup.setUIComponent(uiGroup);
uiGroup.setId("GroupSelector");
uiGroup.getChild(UITree.class).setId("TreeGroupSelector");
uiGroup.getChild(UIBreadcumbs.class).setId("BreadcumbsGroupSelector");
}
代码示例来源:origin: org.exoplatform.portal/exo.portal.webui.eXo
Query query = new Query();
query.setEmail(getUIStringInput("email").getValue());
if (service.getUserHandler().findUsers(query).getAll().size() > 0)
内容来源于网络,如有侵权,请联系作者删除!