T
- public interface SplitManager<T extends TimePeriod>
TimePeriod
s
Normally this is implemented by the appropriate factory classModifier and Type | Method and Description |
---|---|
default void |
canSplit(T orig,
java.util.Date d)
Validate a proposed split.
|
BoundedDateInput |
getDateInput()
get the appropriate date input to use for this class
|
default java.util.Date |
getEditLimit(SessionService<?> sess)
Get a date before which edits are forbidden for the current user
If no limit return null.
|
java.util.Date |
getEditMarker()
Get a date before which edits should be confirmed.
|
T |
split(T orig,
java.util.Date d)
Split a record at a specified time returning new record starting
at the split.
|
BoundedDateInput getDateInput()
default void canSplit(T orig, java.util.Date d) throws ValidateException
orig
- d
- ValidateException
T split(T orig, java.util.Date d) throws java.lang.Exception
orig
- d
- java.lang.Exception
java.util.Date getEditMarker()
default java.util.Date getEditLimit(SessionService<?> sess)