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