public class CoreLifecycleManager extends LifecycleManagerImpl
LifecycleManager
Constructor and Description |
---|
CoreLifecycleManager() |
CoreLifecycleManager(FdkSession session) |
Modifier and Type | Method and Description |
---|---|
Item |
createLifecyclePolicy(NamedValue[] def,
AttributeRequest[] attrs)
Creates a new LIFECYCLE_POLICY Item.
|
void |
deleteLifecyclePolicy(long idval,
NamedValue[] options)
Deletes a LIFECYCLE_POLICY Item.
|
Item[] |
findLifecyclePolicies(NamedValue[] options,
AttributeRequest[] attrs)
Returns an array of LIFECYCLE_POLICY Items that match the specified search
options.
|
Item |
findLifecyclePolicyByName(String name,
AttributeRequest[] attrs)
Returns the LIFECYCLE_POLICY Item with the specified name, or null if no
matching LIFECYCLE_POLICY Item exists.
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
String[] |
listLifecycleActionSpecifications()
Returns the list of registered lifecycle action specifications.
|
String[] |
listLifecycleDateRuleSpecifications()
Returns the list of registered Lifecycle date rule specifications.
|
protected NamedValue[] |
login(FdkCredential c,
NamedValue[] options,
AttributeRequest[] userAttributes)
Internal login method used by web services login managers.
|
void |
referenceTypes(TypeReference ref)
Dummy web service method to create a reference to data types used
in the web services to insure that they are defined in the WSDL.
|
Item |
updateLifecyclePolicy(long id,
NamedValue[] def,
AttributeRequest[] attrs)
Updates an existing LIFECYCLE_POLICY Item.
|
Item |
updateLifecyclePolicyEntry(long id,
NamedValue[] def,
AttributeRequest[] attrs)
Updates an existing LIFECYCLE_POLICY_ENTRY item.
|
public CoreLifecycleManager()
public CoreLifecycleManager(FdkSession session)
public Item[] findLifecyclePolicies(NamedValue[] options, AttributeRequest[] attrs) throws FdkException
Currently, no options are supported; this method always returns an array of all existing LIFECYCLE_POLICY Items.
options
- search and filter options
(currently, no options are supported)attrs
- attributes to retrieve for each LIFECYCLE_POLICY ItemFdkException
- if the operation failspublic Item findLifecyclePolicyByName(String name, AttributeRequest[] attrs) throws FdkException
LIFECYCLE_POLICY Items have unique NAME attribute; there is at most one LIFECYCLE_POLICY Item with any given name.
name
- the name of the LIFECYCLE_POLICY Item to retrieveattrs
- attributes to retrieve for the LIFECYCLE_POLICY ItemFdkException
- if the operation failspublic Item createLifecyclePolicy(NamedValue[] def, AttributeRequest[] attrs) throws FdkException
def
- the list of names and corresponding values of the
attributes for the LIFECYCLE_POLICY Item being
created; supported attributes:
attrs
- attributes to retrieve for the created
LIFECYCLE_POLICY ItemFdkException
- if the operation failspublic Item updateLifecyclePolicy(long id, NamedValue[] def, AttributeRequest[] attrs) throws FdkException
id
- the ID of the LIFECYCLE_POLICY Item to updatedef
- the list of names and corresponding values of the
attributes to update; supported attributes:
attrs
- attributes to retrieve for the updated
LIFECYCLE_POLICY ItemFdkException
- if the operation failspublic Item updateLifecyclePolicyEntry(long id, NamedValue[] def, AttributeRequest[] attrs) throws FdkException
id
- The ID of the LIFECYCLE_POLICY_ENTRY item to update.def
- The list of names and corresponding values of the
attributes to update. Supported attributes:
attrs
- Attributes to return for the updated
LIFECYCLE_POLICY_ENTRY item.FdkException
- if the operation fails.public void deleteLifecyclePolicy(long idval, NamedValue[] options) throws FdkException
idval
- the ID of the LIFECYCLE_POLICY Item to deleteoptions
- delete options (none currently supported)FdkException
- if the operation failspublic String[] listLifecycleActionSpecifications() throws FdkException
Any element of the return value may be used as the value for the LIFECYCLE_ACTION attribute of a LIFECYCLE_POLICY_ENTRY Item.
FdkException
- if the operation failspublic String[] listLifecycleDateRuleSpecifications() throws FdkException
Any element of the return value may be used as the value for the LIFECYCLE_DATE_RULE attribute of a LIFECYCLE_POLICY Item.
FdkException
- if the operation failsprotected final boolean isWebServiceCall()
true
if the current call was made from a web services
client. This check can be made by any subclasses in order to determine
functionality and restrictions based on the originating call. This
feature should be used lightly and only where really necessary as
this is not an idea way of implementing business logic.public void referenceTypes(TypeReference ref)
protected final NamedValue[] login(FdkCredential c, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
FdkException
protected final FdkSessionImpl getConnectedSession() throws FdkException
FdkException
Copyright © 2023. All rights reserved.