diff --git a/src/main/java/edu/harvard/iq/dataverse/UserServiceBean.java b/src/main/java/edu/harvard/iq/dataverse/UserServiceBean.java index 45761b5be99..34aebac8f72 100644 --- a/src/main/java/edu/harvard/iq/dataverse/UserServiceBean.java +++ b/src/main/java/edu/harvard/iq/dataverse/UserServiceBean.java @@ -423,7 +423,6 @@ private List getUserListCore(String searchTerm, String sortKey, Intege logger.log(Level.FINE, "getUserCount: {0}", qstr); Query nativeQuery = em.createNativeQuery(qstr); - //nativeQuery.setParameter("searchTerm", searchTerm + "%"); return nativeQuery.getResultList(); @@ -436,15 +435,6 @@ private List getUserListCore(String searchTerm, String sortKey, Intege * * @return */ - /*private String getSharedSearchClause(){ - - String searchClause = " (u.useridentifier ILIKE #searchTerm"; - searchClause += " OR u.firstname ILIKE #searchTerm"; - searchClause += " OR u.lastname ILIKE #searchTerm"; - searchClause += " OR u.email ILIKE #searchTerm)"; - - return searchClause; - }*/ private String getSharedSearchClause(String searchTerm){ String[] searchTermTokens = searchTerm.replaceAll("['\"]", "").split("[ ,][ ,]*"); @@ -522,7 +512,6 @@ public Long getUserCount(String searchTerm) { qstr += ";"; Query nativeQuery = em.createNativeQuery(qstr); - //nativeQuery.setParameter("searchTerm", searchTerm + "%"); return (Long)nativeQuery.getSingleResult();