| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| EntityTypeContactInfoContract |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2005-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 | package org.kuali.rice.kim.api.identity.type; | |
| 17 | ||
| 18 | ||
| 19 | import org.kuali.rice.core.api.mo.common.GloballyUnique; | |
| 20 | import org.kuali.rice.core.api.mo.common.Versioned; | |
| 21 | import org.kuali.rice.core.api.mo.common.active.Inactivatable; | |
| 22 | import org.kuali.rice.kim.api.identity.CodedAttributeContract; | |
| 23 | import org.kuali.rice.kim.api.identity.address.EntityAddressContract; | |
| 24 | import org.kuali.rice.kim.api.identity.email.EntityEmailContract; | |
| 25 | import org.kuali.rice.kim.api.identity.phone.EntityPhoneContract; | |
| 26 | ||
| 27 | import java.util.List; | |
| 28 | ||
| 29 | public interface EntityTypeContactInfoContract extends Versioned, GloballyUnique, Inactivatable { | |
| 30 | /** | |
| 31 | * Gets the id of the parent identity object. | |
| 32 | * @return the identity id for this {@link EntityAddressContract} | |
| 33 | */ | |
| 34 | String getEntityId(); | |
| 35 | ||
| 36 | /** | |
| 37 | * Gets this entityTypeCode of the {@link EntityAddressContract}'s object. | |
| 38 | * @return the identity type code for this {@link EntityAddressContract} | |
| 39 | */ | |
| 40 | String getEntityTypeCode(); | |
| 41 | ||
| 42 | /** | |
| 43 | * Gets this identity Type of the {@link EntityTypeContactInfoContract}'s object. | |
| 44 | * @return the identity type for this {@link EntityTypeContactInfoContract} | |
| 45 | */ | |
| 46 | CodedAttributeContract getEntityType(); | |
| 47 | ||
| 48 | /** | |
| 49 | * Gets this {@link EntityTypeContactInfoContract}'s List of {@link org.kuali.rice.kim.api.identity.address.EntityAddress}S. | |
| 50 | * @return the List of {@link org.kuali.rice.kim.api.identity.address.EntityAddressContract}S for this {@link EntityTypeContactInfoContract}. | |
| 51 | * The returned List will never be null, an empty List will be assigned and returned if needed. | |
| 52 | */ | |
| 53 | List<? extends EntityAddressContract> getAddresses(); | |
| 54 | ||
| 55 | /** | |
| 56 | * Gets this {@link EntityTypeContactInfoContract}'s List of {@link org.kuali.rice.kim.api.identity.email.EntityEmailContract}S. | |
| 57 | * @return the List of {@link org.kuali.rice.kim.api.identity.email.EntityEmailContract}S for this {@link EntityTypeContactInfoContract}. | |
| 58 | * The returned List will never be null, an empty List will be assigned and returned if needed. | |
| 59 | */ | |
| 60 | List<? extends EntityEmailContract> getEmailAddresses(); | |
| 61 | ||
| 62 | /** | |
| 63 | * Gets this {@link EntityTypeContactInfoContract}'s List of {@link org.kuali.rice.kim.api.identity.phone.EntityPhone}S. | |
| 64 | * @return the List of {@link org.kuali.rice.kim.api.identity.phone.EntityPhoneContract}S for this {@link EntityTypeContactInfoContract}. | |
| 65 | * The returned List will never be null, an empty List will be assigned and returned if needed. | |
| 66 | */ | |
| 67 | List<? extends EntityPhoneContract> getPhoneNumbers(); | |
| 68 | ||
| 69 | /** | |
| 70 | * Returns the default address record for the identity. If no default is defined, then | |
| 71 | * it returns the first one found. If none are defined, it returns null. | |
| 72 | */ | |
| 73 | EntityAddressContract getDefaultAddress(); | |
| 74 | ||
| 75 | /** | |
| 76 | * Returns the default email record for the identity. If no default is defined, then | |
| 77 | * it returns the first one found. If none are defined, it returns null. | |
| 78 | */ | |
| 79 | EntityEmailContract getDefaultEmailAddress(); | |
| 80 | ||
| 81 | /** | |
| 82 | * Returns the default phone record for the identity. If no default is defined, then | |
| 83 | * it returns the first one found. If none are defined, it returns null. | |
| 84 | */ | |
| 85 | EntityPhoneContract getDefaultPhoneNumber(); | |
| 86 | } |