public class CoreRequestManager extends RequestManagerImpl
RequestManager
Constructor and Description |
---|
CoreRequestManager()
Constructor required for in-process clients.
|
CoreRequestManager(FdkSession session)
Constructor required for web services.
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeRequestForUser(long requestId,
NamedValue[] def,
AttributeRequest[] attributes)
Acknowledges the request for the given user.
|
void |
approveRequestForUser(long requestId,
NamedValue[] def,
AttributeRequest[] attributes)
Approves the request for the given user.
|
void |
cancelRequestForUser(long requestId,
NamedValue[] def,
AttributeRequest[] attributes)
Cancels the request for the given user.
|
void |
createUserRequest(long[] targets,
NamedValue[] workflowParams)
Creates a UserRequest for each set of targets that are controlled by a
specific UserRequestWorkflowConfiguration.
|
void |
deleteRequests(long[] ids)
Deletes the Reqeusts having the given IDs.
|
void |
denyRequestForUser(long requestId,
NamedValue[] def,
AttributeRequest[] attributes)
Denies the request for the given user.
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
boolean |
isOperationRequestEnabled(long id,
String ecmAction)
Returns whether the specified operation(ecm action) is
workflow enabled i.e request based.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
Item[] |
listRequests(long id,
NamedValue[] options,
AttributeRequest[] attributes)
Returns the list of all reqeusts sent out by given user(id).
|
Item[] |
listRequestsForUser(long id,
NamedValue[] options,
AttributeRequest[] attributes)
Returns the list of all reqeusts that the given user is responder to.
|
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[] |
searchResponders(String name,
AttributeRequest[] attrs)
Simple search for Users with given (exact)name.
|
public CoreRequestManager(FdkSession session)
public CoreRequestManager()
public Item[] listRequests(long id, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
RequestManager
id
- The ID of the useroptions
- attributes on the request search
attributes
- The requested attributes.FdkException
- if the operation fails.public void deleteRequests(long[] ids) throws FdkException
RequestManager
ids
- the IDs of the Requests to delete.FdkException
- if the operation fails.public Item[] listRequestsForUser(long id, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
RequestManager
id
- The ID of the useroptions
- attributes on the request search
attributes
- The requested attributes.FdkException
- if the operation fails.public void approveRequestForUser(long requestId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
RequestManager
Note: This method is only available for REQUEST Items whose WORKFLOW has a WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_ORACLE; it does not work for custom WORKFLOW instances (WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_BPEL).
requestId
- ID of the requestdef
- attributes on the requestattributes
- requested attributesFdkException
- if the operation failspublic void denyRequestForUser(long requestId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
RequestManager
Note: This method is only available for REQUEST Items whose WORKFLOW has a WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_ORACLE; it does not work for custom WORKFLOW instances (WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_BPEL).
requestId
- ID of the requestdef
- attributes on the requestattributes
- requested attributesFdkException
- if the operation failspublic void cancelRequestForUser(long requestId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
RequestManager
Note: This method is only available for REQUEST Items whose WORKFLOW has a WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_ORACLE; it does not work for custom WORKFLOW instances (WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_BPEL).
requestId
- ID of the requestdef
- attributes on the requestattributes
- requested attributesFdkException
- if the operation failspublic void acknowledgeRequestForUser(long requestId, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
RequestManager
Note: This method is only available for REQUEST Items whose WORKFLOW has a WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_ORACLE; it does not work for custom WORKFLOW instances (WORKFLOW_TYPE attribute with value FdkConstants.WORKFLOW_TYPE_BPEL).
requestId
- ID of the requestdef
- attributes on the requestattributes
- requested attributesFdkException
- if the operation failspublic void createUserRequest(long[] targets, NamedValue[] workflowParams) throws FdkException
RequestManager
targets
- the targets of the UserRequest.workflowParams
- parameters (name/value) to send to workflowFdkException
- if the operation fails.public boolean isOperationRequestEnabled(long id, String ecmAction) throws FdkException
RequestManager
id
- The ID of the object.ecmAction
- The ecm action's id.FdkException
- if the operation fails.public Item[] searchResponders(String name, AttributeRequest[] attrs) throws FdkException
RequestManager
name
- The name to search forattrs
- The requested attributes.FdkException
- if the operation fails.protected 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.