KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corba > poa > ApplicationMapCORBA


1 package org.enhydra.shark.corba.poa;
2
3
4 import org.enhydra.shark.corba.WorkflowService.ApplicationMapPOA;
5 import org.omg.CORBA.ORB JavaDoc;
6
7 /**
8  * Implementation of CORBA ApplicationMap interface.
9  *
10  * @author David Forslund
11  */

12 public class ApplicationMapCORBA extends ApplicationMapPOA {
13
14    private String JavaDoc toolAgentClassName = "";
15
16    private String JavaDoc username = "";
17
18    private String JavaDoc password = "";
19
20    private String JavaDoc applicationName = "";
21
22    private int applicationMode = -Integer.MAX_VALUE;
23
24    private String JavaDoc processDefId = "";
25
26    private String JavaDoc packageId = "";
27
28    private String JavaDoc applicationDefinitionId = "";
29
30    public ApplicationMapCORBA(Collective toJoin) {
31      // toJoin.__recruit(this);
32
}
33
34    public ApplicationMapCORBA(Collective toJoin,
35                               org.enhydra.shark.api.client.wfservice.ApplicationMap am) {
36     // this(toJoin);
37
setToolAgentClassName(am.getToolAgentClassName());
38       setUsername(am.getUsername());
39       setPassword(am.getPassword());
40       setApplicationName(am.getApplicationName());
41       if (am.getApplicationMode() != null) {
42          setApplicationMode(am.getApplicationMode().intValue());
43       }
44       setPackageId(am.getPackageId());
45       setProcessDefinitionId(am.getProcessDefinitionId());
46       setApplicationDefinitionId(am.getApplicationDefinitionId());
47    }
48
49    public String JavaDoc getToolAgentClassName() {
50       return toolAgentClassName;
51    }
52
53    public void setToolAgentClassName(String JavaDoc name) {
54       if (name == null) return;
55       this.toolAgentClassName = name;
56    }
57
58    public String JavaDoc getPackageId() {
59       return packageId;
60    }
61
62    public void setPackageId(String JavaDoc id) {
63       if (id == null) return;
64       this.packageId = id;
65    }
66
67    public String JavaDoc getApplicationDefinitionId() {
68       return applicationDefinitionId;
69    }
70
71    public void setApplicationDefinitionId(String JavaDoc id) {
72       if (id == null) return;
73       this.applicationDefinitionId = id;
74    }
75
76    public String JavaDoc getProcessDefinitionId() {
77       return processDefId;
78    }
79
80    public void setProcessDefinitionId(String JavaDoc id) {
81       if (id == null) return;
82       this.processDefId = id;
83    }
84
85    public String JavaDoc getUsername() {
86       return username;
87    }
88
89    public void setUsername(String JavaDoc username) {
90       if (username == null) return;
91       this.username = username;
92    }
93
94    public String JavaDoc getPassword() {
95       return password;
96    }
97
98    public void setPassword(String JavaDoc password) {
99       if (password == null) return;
100       this.password = password;
101    }
102
103    public String JavaDoc getApplicationName() {
104       return applicationName;
105    }
106
107    public void setApplicationName(String JavaDoc appName) {
108       if (applicationName == null) return;
109       this.applicationName = appName;
110    }
111
112    public int getApplicationMode() {
113       return applicationMode;
114    }
115
116    public void setApplicationMode(int appMode) {
117       this.applicationMode = appMode;
118    }
119
120 }
Popular Tags