Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RoleContract |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2006-2011 The Kuali Foundation | |
3 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
4 | * you may not use this file except in compliance with the License. | |
5 | * You may obtain a copy of the License at | |
6 | * | |
7 | * http://www.opensource.org/licenses/ecl2.php | |
8 | * | |
9 | * Unless required by applicable law or agreed to in writing, software | |
10 | * distributed under the License is distributed on an "AS IS" BASIS, | |
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | * See the License for the specific language governing permissions and | |
13 | * limitations under the License. | |
14 | */ | |
15 | ||
16 | package org.kuali.rice.kim.api.role; | |
17 | ||
18 | import org.kuali.rice.core.api.mo.common.Identifiable; | |
19 | import org.kuali.rice.core.api.mo.common.Versioned; | |
20 | import org.kuali.rice.core.api.mo.common.active.Inactivatable; | |
21 | ||
22 | /** | |
23 | * Contract for a Role. Role is a basic abstraction over a role assignable to a principal within KIM. | |
24 | */ | |
25 | public interface RoleContract extends Versioned, Identifiable, Inactivatable { | |
26 | ||
27 | /** | |
28 | * A namespace for this role. A namespace for a role identifies the system/module to which this role applies. | |
29 | * | |
30 | * @return Namespace for the role. | |
31 | */ | |
32 | String getNamespaceCode(); | |
33 | ||
34 | /** | |
35 | * The human readable name for this role. | |
36 | * | |
37 | * @return Human readable role name. | |
38 | */ | |
39 | String getName(); | |
40 | ||
41 | /** | |
42 | * A full textual description of this role. This String should provide a verbose description of the role, what | |
43 | * it is meant to provide to principals assigned to it, and what permissions it implies. | |
44 | * | |
45 | * @return Description of the role. | |
46 | */ | |
47 | String getDescription(); | |
48 | ||
49 | /** | |
50 | * Provides the associated KimType identifier for this role. This controls what additional attributes | |
51 | * are available. | |
52 | * | |
53 | * @return KimType Id | |
54 | */ | |
55 | String getKimTypeId(); | |
56 | } |