KickJava   Java API By Example, From Geeks To Geeks.

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


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

12 public class ParticipantMapCORBA extends ParticipantMapPOA {
13
14    private String JavaDoc participantId = "";
15
16    private String JavaDoc packageId = "";
17
18    private String JavaDoc processDefinitionId = "";
19
20    private String JavaDoc username = "";
21
22    private boolean isGroupUser;
23
24    public ParticipantMapCORBA() {
25
26      // toJoin.__recruit(this);
27
}
28
29    public ParticipantMapCORBA(org.enhydra.shark.api.client.wfservice.ParticipantMap pm) {
30      // this(toJoin);
31
setParticipantId(pm.getParticipantId());
32       setPackageId(pm.getPackageId());
33       setProcessDefinitionId(pm.getProcessDefinitionId());
34       setUsername(pm.getUsername());
35       setIsGroupUser(pm.getIsGroupUser());
36    }
37
38    public void setParticipantId(String JavaDoc id) {
39       if (id == null) return;
40       this.participantId = id;
41    }
42
43    public String JavaDoc getParticipantId() {
44       return this.participantId;
45    }
46
47    public void setPackageId(String JavaDoc id) {
48       if (id == null) return;
49       this.packageId = id;
50    }
51
52    public String JavaDoc getPackageId() {
53       return this.packageId;
54    }
55
56    public void setProcessDefinitionId(String JavaDoc id) {
57       if (id == null) return;
58       this.processDefinitionId = id;
59    }
60
61    public String JavaDoc getProcessDefinitionId() {
62       return this.processDefinitionId;
63    }
64
65    public void setUsername(String JavaDoc username) {
66       if (username == null) return;
67       this.username = username;
68    }
69
70    public String JavaDoc getUsername() {
71       return this.username;
72    }
73
74    public void setIsGroupUser(boolean isGroupUser) {
75       this.isGroupUser = isGroupUser;
76    }
77
78    public boolean getIsGroupUser() {
79       return this.isGroupUser;
80    }
81
82 }
Popular Tags