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

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

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

Query.getFirstName介绍

暂无

代码示例

代码示例来源:origin: org.gatein.portal/exo.portal.component.identity

  1. String getQueryKey(Query query, UserStatus userStatus) {
  2. StringBuilder sb = new StringBuilder();
  3. String SEP = ":::";
  4. sb.append(query.getEmail()).append(SEP).append(query.getFirstName()).append(SEP).append(query.getLastName())
  5. .append(SEP).append(query.getUserName()).append(SEP).append(query.getFromLoginDate()).append(SEP)
  6. .append(query.getToLoginDate()).append(SEP).append(userStatus.name()).append(SEP);
  7. return sb.toString();
  8. }
  9. }

代码示例来源:origin: org.exoplatform.core/exo.core.component.organization.ldap

  1. if (q.getFirstName() != null && q.getFirstName().length() > 0)
  2. list.add("(" + ldapAttrMapping.userFirstNameAttr + "=" + q.getFirstName() + ")");

代码示例来源:origin: org.exoplatform.core/exo.core.component.organization.jdbc

  1. /**
  2. * Query( name = "" , standardSQL = "..." oracleSQL = "..." )
  3. */
  4. public ListAccess<User> findUsersByQuery(Query orgQuery) throws Exception
  5. {
  6. DBObjectQuery<UserImpl> dbQuery = new DBObjectQuery<UserImpl>(UserImpl.class);
  7. if (orgQuery.getUserName() != null)
  8. {
  9. dbQuery.addLIKE("UPPER(USER_NAME)", addAsterisk(orgQuery.getUserName().toUpperCase()));
  10. }
  11. if (orgQuery.getFirstName() != null)
  12. {
  13. dbQuery.addLIKE("UPPER(FIRST_NAME)", orgQuery.getFirstName().toUpperCase());
  14. }
  15. if (orgQuery.getLastName() != null)
  16. {
  17. dbQuery.addLIKE("UPPER(LAST_NAME)", orgQuery.getLastName().toUpperCase());
  18. }
  19. dbQuery.addLIKE("EMAIL", orgQuery.getEmail());
  20. dbQuery.addGT("LAST_LOGIN_TIME", orgQuery.getFromLoginDate());
  21. dbQuery.addLT("LAST_LOGIN_TIME", orgQuery.getToLoginDate());
  22. return new JDBCListAccess<User>(this, dbQuery.toQuery(), dbQuery.toCountQuery());
  23. }

代码示例来源:origin: org.exoplatform.core/exo.core.component.organization.jdbc

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public ListAccess<User> findUsersByQuery(Query q) throws Exception
  5. {
  6. ObjectQuery oq = new ObjectQuery(UserImpl.class);
  7. if (q.getUserName() != null)
  8. {
  9. oq.addLIKE("UPPER(userName)", addAsterisk(q.getUserName().toUpperCase()));
  10. }
  11. if (q.getFirstName() != null)
  12. {
  13. oq.addLIKE("UPPER(firstName)", q.getFirstName().toUpperCase());
  14. }
  15. if (q.getLastName() != null)
  16. {
  17. oq.addLIKE("UPPER(lastName)", q.getLastName().toUpperCase());
  18. }
  19. oq.addLIKE("email", q.getEmail());
  20. oq.addGT("lastLoginTime", q.getFromLoginDate());
  21. oq.addLT("lastLoginTime", q.getToLoginDate());
  22. return new HibernateListAccess<User>(service_, oq.getHibernateQueryWithBinding(),
  23. oq.getHibernateCountQueryWithBinding(), oq.getBindingFields());
  24. }

代码示例来源:origin: org.gatein.portal/exo.portal.component.identity

  1. if (q.getUserName() == null && q.getEmail() != null && q.getFirstName() == null && q.getLastName() == null) {
  2. final User uniqueUser = findUserByUniqueAttribute(USER_EMAIL, q.getEmail(), userStatus);
  3. qb.attributeValuesFilter(UserDAOImpl.USER_EMAIL, new String[] { q.getEmail() });
  4. if (q.getFirstName() != null) {
  5. qb.attributeValuesFilter(UserDAOImpl.USER_FIRST_NAME, new String[] { q.getFirstName() });
  6. if (q.getUserName() == null && q.getEmail() == null && q.getFirstName() == null && q.getLastName() == null) {
  7. list = new IDMUserListAccess(qb, 20, !countPaginatedUsers(), userStatus);
  8. } else {

相关文章