01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.workgroup;
18:
19: import java.io.Serializable;
20: import java.util.List;
21:
22: import org.kuali.workflow.attribute.Extension;
23:
24: import edu.iu.uis.eden.user.Recipient;
25: import edu.iu.uis.eden.user.WorkflowUser;
26:
27: /**
28: * A group of users.
29: *
30: * @see WorkflowUser
31: * @see WorkgroupService
32: *
33: * @author rkirkend
34: */
35: public interface Workgroup extends Recipient, Serializable {
36:
37: /**
38: * Retrieves the ID of the workgroup.
39: */
40: public WorkflowGroupId getWorkflowGroupId();
41:
42: /**
43: * Retrieves the name of the workgroup.
44: */
45: public GroupNameId getGroupNameId();
46:
47: /**
48: * Retrieves the description of the workgroup.
49: */
50: public String getDescription();
51:
52: /**
53: * Returns all users and workgroups that are members of this workgroup.
54: */
55: public List<Recipient> getMembers();
56:
57: /**
58: * Returns all users in this workgroup, including those that are members
59: * of any nested workgroups.
60: */
61: public List<WorkflowUser> getUsers();
62:
63: public boolean hasMember(Recipient member);
64:
65: public Boolean getActiveInd();
66:
67: public Integer getLockVerNbr();
68:
69: public String getWorkgroupType();
70:
71: public List<Extension> getExtensions();
72:
73: public void setWorkflowGroupId(WorkflowGroupId workflowGroupId);
74:
75: public void setGroupNameId(GroupNameId groupNameId);
76:
77: public void setDescription(String description);
78:
79: public void setMembers(List<Recipient> members);
80:
81: public void setActiveInd(Boolean activeInd);
82:
83: public void setWorkgroupType(String workgroupType);
84:
85: public void setExtensions(List<Extension> extensions);
86:
87: }
|