001 package com.khubla.pragmatach.plugin.adminapp; 002 003 import java.util.Map; 004 005 import com.khubla.pragmatach.framework.annotation.Controller; 006 import com.khubla.pragmatach.framework.annotation.Route; 007 import com.khubla.pragmatach.framework.annotation.View; 008 import com.khubla.pragmatach.framework.api.PragmatachException; 009 import com.khubla.pragmatach.framework.api.Response; 010 import com.khubla.pragmatach.framework.application.Application; 011 012 /** 013 * @author tome 014 */ 015 @Controller(name = "pragmatachShowRoutesController") 016 @View(view = "pragmatach/admin/configuration.html") 017 public class ShowConfigurationController extends SecuredAdminController { 018 private Map<String, String> configuration; 019 020 public Map<String, String> getConfiguration() { 021 return configuration; 022 } 023 024 @Route(uri = "/pragmatach/admin/configuration") 025 public Response render() throws PragmatachException { 026 configuration = Application.getConfiguration().getAll(); 027 return super.render(); 028 } 029 030 public void setConfiguration(Map<String, String> configuration) { 031 this.configuration = configuration; 032 } 033 }