Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
GroupContract |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2006-2011 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.kuali.rice.kim.api.group; | |
18 | ||
19 | import org.kuali.rice.core.api.mo.common.GloballyUnique; | |
20 | import org.kuali.rice.core.api.mo.common.Identifiable; | |
21 | import org.kuali.rice.core.api.mo.common.Versioned; | |
22 | import org.kuali.rice.core.api.mo.common.active.Inactivatable; | |
23 | ||
24 | import java.util.Map; | |
25 | ||
26 | public interface GroupContract extends Versioned, GloballyUnique, Inactivatable, Identifiable { | |
27 | ||
28 | /** | |
29 | * This is the namespace code for the Group. | |
30 | * | |
31 | * <p> | |
32 | * This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group | |
33 | * </p> | |
34 | * | |
35 | * @return namespaceCode | |
36 | */ | |
37 | String getNamespaceCode(); | |
38 | ||
39 | /** | |
40 | * This is the name for the Group. | |
41 | * | |
42 | * <p> | |
43 | * This is a name assigned to a Group. Together with NamespaceCode, it makes up another unique identifier for Group | |
44 | * </p> | |
45 | * | |
46 | * @return name | |
47 | */ | |
48 | String getName(); | |
49 | ||
50 | /** | |
51 | * This a description for the Group. | |
52 | * | |
53 | * <p> | |
54 | * This is a description assigned to a Group. | |
55 | * </p> | |
56 | * | |
57 | * @return description | |
58 | */ | |
59 | String getDescription(); | |
60 | ||
61 | /** | |
62 | * This a Kim Type Id for the Group. | |
63 | * | |
64 | * <p> | |
65 | * This links a Kim Type to the Group to allow custom types of Groups. | |
66 | * </p> | |
67 | * | |
68 | * @return description | |
69 | */ | |
70 | String getKimTypeId(); | |
71 | ||
72 | /** | |
73 | * This a list of the members of the Group. | |
74 | * | |
75 | * <p> | |
76 | * This returns a list of group members | |
77 | * </p> | |
78 | * | |
79 | * @return members | |
80 | */ | |
81 | //List<? extends GroupMemberContract> getMembers(); | |
82 | ||
83 | /*List<? extends PersonContract> getPersonMembers(); | |
84 | ||
85 | List<? extends GroupContract> getGroupMembers();*/ | |
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | /** | |
92 | * This is a set of Attributes for a Group. | |
93 | * | |
94 | * <p> | |
95 | * This is a set of attributes which are key-label pairs that are defined by the Group's Kim Type. | |
96 | * </p> | |
97 | * | |
98 | * @return attributes | |
99 | */ | |
100 | Map<String, String> getAttributes(); | |
101 | ||
102 | } |