Mercurial > hg > ismi-richfaces
comparison src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java @ 179:c9dec00f0f17
add "show private" to browse all function.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 08 Jun 2018 18:59:49 +0200 |
parents | aa564b1b5e1f |
children | b0b0f8e63c26 |
comparison
equal
deleted
inserted
replaced
178:ca83d67a2dc9 | 179:c9dec00f0f17 |
---|---|
317 } else { | 317 } else { |
318 this.resultSummaryMsg = "No items were found!"; | 318 this.resultSummaryMsg = "No items were found!"; |
319 } | 319 } |
320 } | 320 } |
321 | 321 |
322 public void searchByPublic() { | 322 public void searchByPublic(boolean isPublic) { |
323 this.resultMode = MODE_ADVANCED; | 323 this.resultMode = MODE_ADVANCED; |
324 this.setPage(""); | 324 this.setPage(""); |
325 this.currentEntities = new ArrayList<Entity>(); | 325 this.currentEntities = new ArrayList<Entity>(); |
326 boolean isPublic = true; | |
327 this.entities = getWrapper().searchEntityByPublic(objectClass, isPublic); | 326 this.entities = getWrapper().searchEntityByPublic(objectClass, isPublic); |
328 this.resultSummaryMsg = ""; | 327 this.resultSummaryMsg = ""; |
329 | 328 |
330 if (this.entities.size() > 0) { | 329 if (this.entities.size() > 0) { |
331 this.advancedPaginator.setCurrentPage(0); | 330 this.advancedPaginator.setCurrentPage(0); |
376 return GOTO_ENTITY_REPOSITORY; | 375 return GOTO_ENTITY_REPOSITORY; |
377 } | 376 } |
378 | 377 |
379 public String actionSearchByPublic() { | 378 public String actionSearchByPublic() { |
380 try { | 379 try { |
381 this.searchByPublic(); | 380 this.searchByPublic(true); |
382 } catch (Exception e) { | 381 } catch (Exception e) { |
383 printInternalError(e); | 382 printInternalError(e); |
384 logger.error(e.getMessage(), e); | 383 logger.error(e.getMessage(), e); |
385 } | 384 } |
386 | 385 |
387 return GOTO_ENTITY_REPOSITORY; | 386 return GOTO_ENTITY_REPOSITORY; |
388 } | 387 } |
389 | 388 |
389 public String actionSearchByPrivate() { | |
390 try { | |
391 this.searchByPublic(false); | |
392 } catch (Exception e) { | |
393 printInternalError(e); | |
394 logger.error(e.getMessage(), e); | |
395 } | |
396 | |
397 return GOTO_ENTITY_REPOSITORY; | |
398 } | |
399 | |
390 public boolean isAdvancedSearch() { | 400 public boolean isAdvancedSearch() { |
391 return advancedSearch; | 401 return advancedSearch; |
392 } | 402 } |
393 | 403 |
394 public void setAdvancedSearch(boolean advancedSearch) { | 404 public void setAdvancedSearch(boolean advancedSearch) { |