Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
InactivatableFromTo |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2006-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 | ||
17 | package org.kuali.rice.core.api.mo.common.active; | |
18 | ||
19 | import java.sql.Timestamp; | |
20 | ||
21 | /** | |
22 | * This interface can be used to identify a model object which has an | |
23 | * "active range" such that an object is only active with a certain | |
24 | * temporal range. | |
25 | * | |
26 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
27 | */ | |
28 | public interface InactivatableFromTo { | |
29 | ||
30 | /** | |
31 | * Gets the date for which the record become active. Can be null. | |
32 | * | |
33 | * @return Timestamp of active from date | |
34 | */ | |
35 | Timestamp getActiveFromDate(); | |
36 | ||
37 | /** | |
38 | * Gets the date for which the record become inactive. Can be null. | |
39 | * | |
40 | * @return Timestamp of active to date | |
41 | */ | |
42 | Timestamp getActiveToDate(); | |
43 | ||
44 | /** | |
45 | * Returns if the record is active for a given Time. | |
46 | * If the activeAsOfDate is null will return null. | |
47 | * | |
48 | * @return true if active false if not | |
49 | */ | |
50 | boolean isActive(Timestamp activeAsOfDate); | |
51 | } |