public class DailyLifecycleDateRule extends LifecycleDateRuleAdapter
Constructor and Description |
---|
DailyLifecycleDateRule()
Constructs a DailyLifecycleDateRule.
|
Modifier and Type | Method and Description |
---|---|
Date |
getLifecycleDate(Date createDate)
Determine the LifecycleDate based on a creation date
and the specified LifecyclePolicy.
|
void |
initialize(LifecycleDateRuleSpecification ldrs)
Initialize this instance.
|
getLifecycleDate
public DailyLifecycleDateRule()
public void initialize(LifecycleDateRuleSpecification ldrs) throws IfsException
LifecycleDateRule
Called immediately after construction (via the default constructor) and used so that the implementation can initialize session-independent state. This instance may be used concurrently by multiple threads.
initialize
in interface LifecycleDateRule
initialize
in class LifecycleDateRuleAdapter
ldrs
- the LifecycleDateRuleSpecification that references
this instanceIfsException
- if the operation failspublic Date getLifecycleDate(Date createDate) throws IfsException
LifecycleDateRule
This variant takes a document creation date and a LifecyclePolicy, and is typically used when creating a document and assigning a LifecyclePolicy at the same time.
getLifecycleDate
in interface LifecycleDateRule
getLifecycleDate
in class LifecycleDateRuleAdapter
createDate
- the creation date of a Document being createdIfsException
- if the operation failsCopyright © 2023. All rights reserved.