Skip to content

Commit

Permalink
removed some dead, commented-out code. (IQSS#5808)
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Sep 24, 2019
1 parent 4e64044 commit 4b6c857
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/java/edu/harvard/iq/dataverse/UserServiceBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ private List<Object[]> 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();

Expand All @@ -436,15 +435,6 @@ private List<Object[]> 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("[ ,][ ,]*");
Expand Down Expand Up @@ -522,7 +512,6 @@ public Long getUserCount(String searchTerm) {
qstr += ";";

Query nativeQuery = em.createNativeQuery(qstr);
//nativeQuery.setParameter("searchTerm", searchTerm + "%");

return (Long)nativeQuery.getSingleResult();

Expand Down

0 comments on commit 4b6c857

Please sign in to comment.