public class LifecycleDateRuleAdapter extends Object implements LifecycleDateRule
Constructor and Description |
---|
LifecycleDateRuleAdapter() |
Modifier and Type | Method and Description |
---|---|
Date |
getLifecycleDate(Date createDate)
Determine the LifecycleDate based on a creation date
and the specified LifecyclePolicy.
|
Date |
getLifecycleDate(Document doc)
Determine the LifecycleDate for the specified document
and the specified LifecyclePolicy.
|
void |
initialize(LifecycleDateRuleSpecification ldrs)
Initialize this instance.
|
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
ldrs
- the LifecycleDateRuleSpecification that references
this instanceIfsException
- if the operation failspublic Date getLifecycleDate(Document doc) throws IfsException
LifecycleDateRule
This variant assumes the document has been created and that the LifecyclePolicy specified during initialization is being assigned to the document.
getLifecycleDate
in interface LifecycleDateRule
doc
- the DocumentIfsException
- 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
createDate
- the creation date of a Document being createdIfsException
- if the operation failsCopyright © 2023. All rights reserved.