username can be stored as setting and the find boolean is set based on this name.
plugins have only access to DAOs and not to jdbcTemplate directly
This commit is contained in:
@@ -17,7 +17,7 @@ class BasicListStatisticsPlugin implements Plugin {
|
||||
|
||||
@Override
|
||||
void run(final Map context) {
|
||||
showDialog(createContent(context.cacheService))
|
||||
showDialog(createContent(context.cacheDAO))
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -25,10 +25,10 @@ class BasicListStatisticsPlugin implements Plugin {
|
||||
* @param sessionContext context with the cache list in it
|
||||
* @return
|
||||
*/
|
||||
private javafx.scene.Node createContent(cacheService) {
|
||||
private javafx.scene.Node createContent(cacheDAO) {
|
||||
|
||||
// get the cache list from service
|
||||
def cacheList = cacheService.getAllCaches()
|
||||
def cacheList = cacheDAO.getAllCaches()
|
||||
|
||||
// create a vbox as layout container
|
||||
VBox contenPane = new VBox()
|
||||
|
||||
Reference in New Issue
Block a user