Big changes
This commit is contained in:
parent
f2b4cfdec7
commit
c6d2981b12
15 changed files with 203 additions and 205 deletions
|
|
@ -42,21 +42,25 @@ import java.util.logging.Logger;
|
|||
*/
|
||||
public class ServiceStatusPage extends WAPage {
|
||||
private static final Logger log = LogUtil.getLogger();
|
||||
|
||||
public static final String PAGE_NAME = "status";
|
||||
public static final String NAVIGATION_NAME = "Service Status";
|
||||
private static final String TMPL_FILE = "WebContent/page/ServiceStatusPage.tmpl";
|
||||
|
||||
private ArrayList<WAServiceStatus> services;
|
||||
|
||||
|
||||
public ServiceStatusPage(WAServiceStatus ss){
|
||||
services = new ArrayList<>();
|
||||
services.add(ss);
|
||||
}
|
||||
|
||||
public ServiceStatusPage(){
|
||||
super(WAServicePage.NAVIGATION_NAME +"/"+ PAGE_NAME);
|
||||
this.services = WAContext.getPluginManager().toArray(WAServiceStatus.class);
|
||||
|
||||
Navigation nav = WAContext.getRootNav().createSubNav(WAServicePage.NAVIGATION_NAME)
|
||||
.createSubNav(NAVIGATION_NAME).setWeight(-100);
|
||||
.createSubNav(getPageName(), NAVIGATION_NAME).setWeight(-100);
|
||||
}
|
||||
public ServiceStatusPage(WAServiceStatus ss){
|
||||
services = new ArrayList<>();
|
||||
services.add(ss);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue