KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.corba;
2
3 import org.enhydra.shark.corba.WorkflowService._ApplicationMapImplBase;
4
5 /**
6  * Implementation of CORBA ApplicationMap interface.
7  *
8  * @author Sasa Bojanic
9  */

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