KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > webapp > bean > AdminBean


1 package org.jbpm.webapp.bean;
2
3 import java.util.List JavaDoc;
4
5 import javax.faces.context.FacesContext;
6
7 import org.jbpm.scheduler.impl.Scheduler;
8
9 public class AdminBean {
10   
11   String JavaDoc deployUrl;
12   
13   public void deployProcess() {
14   }
15   
16   public void createSchema() {
17   }
18   
19   public void dropSchema() {
20   }
21   
22   public boolean isSchedulerRunning() {
23     return getScheduler().isRunning();
24   }
25   
26   public List JavaDoc getSchedulerHistoryLogs() {
27     return getScheduler().getSchedulerHistoryLogs();
28   }
29   
30   private Scheduler getScheduler() {
31     return (Scheduler) FacesContext.getCurrentInstance()
32                                    .getExternalContext()
33                                    .getApplicationMap()
34                                    .get("scheduler");
35   }
36
37   public String JavaDoc getDeployUrl() {
38     return deployUrl;
39   }
40   public void setDeployUrl(String JavaDoc deployUrl) {
41     this.deployUrl = deployUrl;
42   }
43 }
44
Popular Tags