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