| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| KimEntityEntityType |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-2008 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 | package org.kuali.rice.kim.bo.entity; | |
| 17 | ||
| 18 | import java.util.List; | |
| 19 | ||
| 20 | import org.kuali.rice.kim.bo.reference.EntityType; | |
| 21 | import org.kuali.rice.kns.bo.Inactivateable; | |
| 22 | ||
| 23 | /** | |
| 24 | * the entity type for a KIM entity. | |
| 25 | * | |
| 26 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 27 | * | |
| 28 | */ | |
| 29 | public interface KimEntityEntityType extends Inactivateable { | |
| 30 | ||
| 31 | String getEntityTypeCode(); | |
| 32 | ||
| 33 | EntityType getEntityType(); | |
| 34 | ||
| 35 | /** | |
| 36 | * Gets this {@link KimEntityEntityType}'s List of {@link KimEntityAddress}S. | |
| 37 | * @return the List of {@link KimEntityAddress}S for this {@link KimEntityEntityType}. | |
| 38 | * The returned List will never be null, an empty List will be assigned and returned if needed. | |
| 39 | */ | |
| 40 | List<? extends KimEntityAddress> getAddresses(); | |
| 41 | ||
| 42 | /** | |
| 43 | * Gets this {@link KimEntityEntityType}'s List of {@link KimEntityEmail}S. | |
| 44 | * @return the List of {@link KimEntityEmail}S for this {@link KimEntityEntityType}. | |
| 45 | * The returned List will never be null, an empty List will be assigned and returned if needed. | |
| 46 | */ | |
| 47 | List<? extends KimEntityEmail> getEmailAddresses(); | |
| 48 | ||
| 49 | /** | |
| 50 | * Gets this {@link KimEntityEntityType}'s List of {@link KimEntityPhone}S. | |
| 51 | * @return the List of {@link KimEntityPhone}S for this {@link KimEntityEntityType}. | |
| 52 | * The returned List will never be null, an empty List will be assigned and returned if needed. | |
| 53 | */ | |
| 54 | List<? extends KimEntityPhone> getPhoneNumbers(); | |
| 55 | ||
| 56 | /** | |
| 57 | * Returns the default address record for the entity. If no default is defined, then | |
| 58 | * it returns the first one found. If none are defined, it returns null. | |
| 59 | */ | |
| 60 | KimEntityAddress getDefaultAddress(); | |
| 61 | ||
| 62 | /** | |
| 63 | * Returns the default email record for the entity. If no default is defined, then | |
| 64 | * it returns the first one found. If none are defined, it returns null. | |
| 65 | */ | |
| 66 | KimEntityEmail getDefaultEmailAddress(); | |
| 67 | ||
| 68 | /** | |
| 69 | * Returns the default phone record for the entity. If no default is defined, then | |
| 70 | * it returns the first one found. If none are defined, it returns null. | |
| 71 | */ | |
| 72 | KimEntityPhone getDefaultPhoneNumber(); | |
| 73 | } |