Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
EntityAddressContract |
|
| 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.api.identity.address; | |
17 | ||
18 | import org.kuali.rice.core.api.mo.common.Defaultable; | |
19 | import org.kuali.rice.core.api.mo.common.GloballyUnique; | |
20 | import org.kuali.rice.core.api.mo.common.Identifiable; | |
21 | import org.kuali.rice.core.api.mo.common.Versioned; | |
22 | import org.kuali.rice.core.api.mo.common.active.Inactivatable; | |
23 | import org.kuali.rice.kim.api.identity.TypeContract; | |
24 | ||
25 | /** | |
26 | * address information for a KIM identity | |
27 | * | |
28 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
29 | * | |
30 | */ | |
31 | public interface EntityAddressContract extends Versioned, GloballyUnique, Defaultable, Inactivatable, Identifiable { | |
32 | ||
33 | /** | |
34 | * Gets this id of the parent identity object. | |
35 | * @return the identity id for this {@link EntityAddressContract} | |
36 | */ | |
37 | String getEntityId(); | |
38 | ||
39 | /** | |
40 | * Gets this entityTypeCode of the {@link EntityAddressContract}'s object. | |
41 | * @return the identity type code for this {@link EntityAddressContract} | |
42 | */ | |
43 | String getEntityTypeCode(); | |
44 | ||
45 | /** | |
46 | * Gets this {@link EntityAddressContract}'s address type code. | |
47 | * @return the address type for this {@link EntityAddressContract}, or null if none has been assigned. | |
48 | */ | |
49 | TypeContract getAddressType(); | |
50 | ||
51 | /** | |
52 | * Gets this {@link EntityAddressContract}'s first line. | |
53 | * @return the first line for this {@link EntityAddressContract}, or null if none has been assigned. | |
54 | */ | |
55 | String getLine1(); | |
56 | ||
57 | /** | |
58 | * Gets this {@link EntityAddressContract}'s second line. | |
59 | * @return the second line for this {@link EntityAddressContract}, or null if none has been assigned. | |
60 | */ | |
61 | String getLine2(); | |
62 | ||
63 | /** | |
64 | * Gets this {@link EntityAddressContract}'s third line. | |
65 | * @return the third line for this {@link EntityAddressContract}, or null if none has been assigned. | |
66 | */ | |
67 | String getLine3(); | |
68 | ||
69 | /** | |
70 | * Gets this {@link EntityAddressContract}'s city name. | |
71 | * @return the city name for this {@link EntityAddressContract}, or null if none has been assigned. | |
72 | */ | |
73 | String getCityName(); | |
74 | ||
75 | /** | |
76 | * Gets this {@link EntityAddressContract}'s state code. | |
77 | * @return the state code for this {@link EntityAddressContract}, or null if none has been assigned. | |
78 | */ | |
79 | String getStateCode(); | |
80 | ||
81 | /** | |
82 | * Gets this {@link EntityAddressContract}'s postal code. | |
83 | * @return the postal code for this {@link EntityAddressContract}, or null if none has been assigned. | |
84 | */ | |
85 | String getPostalCode(); | |
86 | ||
87 | /** | |
88 | * Gets this {@link EntityAddressContract}'s country code. | |
89 | * @return the country code for this {@link EntityAddressContract}, or null if none has been assigned. | |
90 | */ | |
91 | String getCountryCode(); | |
92 | ||
93 | /** | |
94 | * Gets this {@link EntityAddressContract}'s unmasked first line. | |
95 | * @return the unmasked first line for this {@link EntityAddressContract}, or null if none has been assigned. | |
96 | */ | |
97 | String getLine1Unmasked(); | |
98 | ||
99 | /** | |
100 | * Gets this {@link EntityAddressContract}'s unmasked second line. | |
101 | * @return the unmasked second line for this {@link EntityAddressContract}, or null if none has been assigned. | |
102 | */ | |
103 | String getLine2Unmasked(); | |
104 | ||
105 | /** | |
106 | * Gets this {@link EntityAddressContract}'s unmasked third line. | |
107 | * @return the unmasked third line for this {@link EntityAddressContract}, or null if none has been assigned. | |
108 | */ | |
109 | String getLine3Unmasked(); | |
110 | ||
111 | /** | |
112 | * Gets this {@link EntityAddressContract}'s unmasked city name. | |
113 | * @return the unmasked city name for this {@link EntityAddressContract}, or null if none has been assigned. | |
114 | */ | |
115 | String getCityNameUnmasked(); | |
116 | ||
117 | /** | |
118 | * Gets this {@link EntityAddressContract}'s unmasked state code. | |
119 | * @return the unmasked state code for this {@link EntityAddressContract}, or null if none has been assigned. | |
120 | */ | |
121 | String getStateCodeUnmasked(); | |
122 | ||
123 | /** | |
124 | * Gets this {@link EntityAddressContract}'s unmasked postal code. | |
125 | * @return the unmasked postal code for this {@link EntityAddressContract}, or null if none has been assigned. | |
126 | */ | |
127 | String getPostalCodeUnmasked(); | |
128 | ||
129 | /** | |
130 | * Gets this {@link EntityAddressContract}'s unmasked country code. | |
131 | * @return the unmasked country code for this {@link EntityAddressContract}, or null if none has been assigned. | |
132 | */ | |
133 | String getCountryCodeUnmasked(); | |
134 | ||
135 | /** | |
136 | * Returns a boolean value that determines if address fields should be suppressed. | |
137 | * @return boolean value that determines if address should be suppressed. | |
138 | */ | |
139 | boolean isSuppressAddress(); | |
140 | } |