| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AssigneeContract | 
  | 
  | 1.0;1 | 
| 1 |  /* | |
| 2 |   * Copyright 2011 The Kuali Foundation | |
| 3 |   * | |
| 4 |   * Licensed under the Educational Community License, Version 1.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/ecl1.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 |  package org.kuali.rice.kim.api.common.assignee; | |
| 17 | ||
| 18 |  import org.kuali.rice.kim.api.common.delegate.DelegateContract; | |
| 19 | ||
| 20 |  import java.util.List; | |
| 21 | ||
| 22 |  //TODO Get a better description | |
| 23 |  /** | |
| 24 |   * This is the contract for a Permission Assignee. | |
| 25 |   *  | |
| 26 |   * Permissions are attached to roles. All authorization checks should be done against permissions, | |
| 27 |   * never against roles or groups. | |
| 28 |   *   | |
| 29 |   */ | |
| 30 | public interface AssigneeContract {  | |
| 31 | ||
| 32 |      /** | |
| 33 |       * The Principal ID referenced by the Permission Assignee. | |
| 34 |       * | |
| 35 |       * @return principalId | |
| 36 |       */ | |
| 37 | String getPrincipalId();  | |
| 38 | ||
| 39 |      /** | |
| 40 |       * The Group ID referenced by the Permission Assignee. | |
| 41 |       *  | |
| 42 |       * @return groupId | |
| 43 |       */ | |
| 44 | String getGroupId() ;  | |
| 45 | ||
| 46 |     /**  | |
| 47 |           * List of Delegates for a Permission Assignee  | |
| 48 |           *  | |
| 49 |           * @return delegates | |
| 50 |           */ | |
| 51 |          List<? extends DelegateContract> getDelegates(); | |
| 52 | }  |