|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.impl.document.WorkflowDocumentServiceImpl
public class WorkflowDocumentServiceImpl
| Constructor Summary | |
|---|---|
WorkflowDocumentServiceImpl()
|
|
| Method Summary | |
|---|---|
protected boolean |
actionRequestMatches(ActionRequestValue actionRequest,
String nodeName,
String principalId)
|
DocumentLink |
addDocumentLink(DocumentLink documentLink)
Saves the passed in DocumentLink. |
DocumentLink |
deleteDocumentLink(String documentLinkId)
Removes the DocumentLink with the given documentLinkId. |
List<DocumentLink> |
deleteDocumentLinksByDocumentId(String originatingDocumentId)
Removes all DocumentLinks for the given Document with the given originatingDocumentId. |
DocumentSearchResults |
documentSearch(String principalId,
DocumentSearchCriteria criteria)
Executes a search for workflow documents using the given criteria and as the principal with the given id. |
boolean |
doesDocumentExist(String documentId)
Returns a boolean depending on if a Document exists with the specified documentId |
List<ActionRequest> |
getActionRequestsForPrincipalAtNode(String documentId,
String nodeName,
String principalId)
Gets a list of ActionRequests for a given documentId, nodeName and principalId |
Map<String,String> |
getActionsRequested(String principalId,
String documentId)
Gets a map of actions requested for a given principalId and documentId The action request code is filled for the key value of the map, and a string representation of a boolean value is the value. |
List<ActionTaken> |
getActionsTaken(String documentId)
Gets a list of past ActionTaken of a Document with the given documentId |
List<RouteNodeInstance> |
getActiveRouteNodeInstances(String documentId)
Gets a list of active RouteNodeInstance for a Document with the given documentId |
String |
getApplicationDocumentId(String documentId)
Gets a value application document id of a Document with the given documentId |
List<RouteNodeInstance> |
getCurrentRouteNodeInstances(String documentId)
Gets a list of current RouteNodeInstances for a Document with the given documentId |
Document |
getDocument(String documentId)
Gets a Document from a documentId. |
DocumentContent |
getDocumentContent(String documentId)
Gets DocumentContent from a documentId. |
DocumentDetail |
getDocumentDetail(String documentId)
Gets a DocumentDetail of a Document with the given documentId |
DocumentDetail |
getDocumentDetailByAppId(String documentTypeName,
String appId)
Gets a DocumentDetail of a Document with the given documentTypeName and appId |
String |
getDocumentInitiatorPrincipalId(String documentId)
Gets the Document initiator's principalId with the given documentId |
DocumentLink |
getDocumentLink(String documentLinkId)
Gets the DocumentLink for with the given documentLinkId. |
String |
getDocumentStatus(String documentId)
Gets the status value for a Document with the given documentId |
List<DocumentStatusTransition> |
getDocumentStatusTransitionHistory(String documentId)
Gets a list of DocumentStatusTransitions for the Document with the given documentId |
List<DocumentLink> |
getIncomingDocumentLinks(String destinationDocumentId)
Gets a list of all DocumentLinks for incoming links from the Document with the given documentId. |
List<DocumentLink> |
getOutgoingDocumentLinks(String originatingDocumentId)
Gets a list of all DocumentLinks for outgoing links from the Document with the given documentId. |
List<String> |
getPreviousRouteNodeNames(String documentId)
Gets a list of all previous RouteNodeInstance's node names for a Document with the given documentId |
List<String> |
getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId(String actionRequestedCd,
String documentId)
Gets a list of principalId values for a Document with the given documentId
and action request code that have pending action requests |
List<ActionRequest> |
getRootActionRequests(String documentId)
Gets a list of root ActionRequests for a given documentId |
String |
getRoutedByPrincipalIdByDocumentId(String documentId)
Gets the Document's 'routed by' principalId with the given documentId
Returns null if the document is not found |
RouteNodeInstance |
getRouteNodeInstance(String nodeInstanceId)
Gets a RouteNodeInstance with the given nodeInstanceId |
List<RouteNodeInstance> |
getRouteNodeInstances(String documentId)
Gets a list of all RouteNodeInstance for a Document with the given documentId |
List<org.joda.time.DateTime> |
getSearchableAttributeDateTimeValuesByKey(String documentId,
String key)
Does a direct search for searchableAttributes without going through the document search This returns a list of DateTime values for date/time searchableAttributes |
List<BigDecimal> |
getSearchableAttributeFloatValuesByKey(String documentId,
String key)
Does a direct search for searchableAttributes without going through the document search This returns a list of BigDecimal values for decimal searchableAttributes |
List<Long> |
getSearchableAttributeLongValuesByKey(String documentId,
String key)
Does a direct search for searchableAttributes without going through the document search This returns a list of Long values for long searchableAttributes |
List<String> |
getSearchableAttributeStringValuesByKey(String documentId,
String key)
Does a direct search for searchableAttributes without going through the document search This returns a list of String values for String searchableAttributes |
List<RouteNodeInstance> |
getTerminalRouteNodeInstances(String documentId)
Gets a list of terminal RouteNodeInstances for a Document with the given documentId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowDocumentServiceImpl()
| Method Detail |
|---|
public Document getDocument(String documentId)
WorkflowDocumentServiceDocument from a documentId.
This method will return null if the Document does not exist.
getDocument in interface WorkflowDocumentServicedocumentId - the unique id of the document to return
public boolean doesDocumentExist(String documentId)
WorkflowDocumentServiceDocument exists with the specified documentId
This method will return false if the responsibility does not exist.
doesDocumentExist in interface WorkflowDocumentServicedocumentId - the unique id of the document to check for existence
public DocumentDetail getDocumentDetailByAppId(String documentTypeName,
String appId)
WorkflowDocumentServiceDocumentDetail of a Document with the given documentTypeName and appId
getDocumentDetailByAppId in interface WorkflowDocumentServicedocumentTypeName - the name of the DocumentTypeappId - the unique id of the application
DocumentDetail for with the given documentTypeName and appIdpublic RouteNodeInstance getRouteNodeInstance(String nodeInstanceId)
WorkflowDocumentServiceRouteNodeInstance with the given nodeInstanceId
getRouteNodeInstance in interface WorkflowDocumentServicenodeInstanceId - the unique id of the RouteNodeInstance
DocumentDetail for with the given documentIdpublic String getDocumentStatus(String documentId)
WorkflowDocumentServiceDocument with the given documentId
getDocumentStatus in interface WorkflowDocumentServicedocumentId - the unique id of a Document
Document with the
given documentIdpublic String getApplicationDocumentId(String documentId)
WorkflowDocumentServiceDocument with the given documentId
getApplicationDocumentId in interface WorkflowDocumentServicedocumentId - the unique id of the Document
Document with the given documentId
public DocumentSearchResults documentSearch(String principalId,
DocumentSearchCriteria criteria)
WorkflowDocumentService
documentSearch in interface WorkflowDocumentServiceprincipalId - the id of the principal to execute the search as, if this value is non-null then security
filtering will be executed against the results, if it is null then no filtering will be performedcriteria - the criteria to use when executing the search
public List<String> getSearchableAttributeStringValuesByKey(String documentId,
String key)
WorkflowDocumentService
getSearchableAttributeStringValuesByKey in interface WorkflowDocumentServicedocumentId - the unique id of a Documentkey - the searchableAttributes key value
Document with the
given documentId and searchable attribute key
public List<org.joda.time.DateTime> getSearchableAttributeDateTimeValuesByKey(String documentId,
String key)
WorkflowDocumentService
getSearchableAttributeDateTimeValuesByKey in interface WorkflowDocumentServicedocumentId - the unique id of a Documentkey - the searchableAttributes key value
Document with the
given documentId and searchable attribute key
public List<BigDecimal> getSearchableAttributeFloatValuesByKey(String documentId,
String key)
WorkflowDocumentService
getSearchableAttributeFloatValuesByKey in interface WorkflowDocumentServicedocumentId - the unique id of a Documentkey - the searchableAttributes key value
Document with the
given documentId and searchable attribute key
public List<Long> getSearchableAttributeLongValuesByKey(String documentId,
String key)
WorkflowDocumentService
getSearchableAttributeLongValuesByKey in interface WorkflowDocumentServicedocumentId - the unique id of a Documentkey - the searchableAttributes key value
Document with the
given documentId and searchable attribute keypublic DocumentContent getDocumentContent(String documentId)
WorkflowDocumentServiceDocumentContent from a documentId.
This method will return null if the document does not exist.
getDocumentContent in interface WorkflowDocumentServicedocumentId - the unique id of the document content to return
public List<ActionRequest> getRootActionRequests(String documentId)
WorkflowDocumentService
getRootActionRequests in interface WorkflowDocumentServicedocumentId - the unique id of a document
public List<ActionRequest> getActionRequestsForPrincipalAtNode(String documentId,
String nodeName,
String principalId)
WorkflowDocumentService
getActionRequestsForPrincipalAtNode in interface WorkflowDocumentServicedocumentId - the unique id of a documentnodeName - the name of a RouteNodeprincipalId - the unique id of a principal
public Map<String,String> getActionsRequested(String principalId,
String documentId)
WorkflowDocumentService
getActionsRequested in interface WorkflowDocumentServicedocumentId - the unique id of a Document
Document's 'routed by' principalId
protected boolean actionRequestMatches(ActionRequestValue actionRequest,
String nodeName,
String principalId)
public List<ActionTaken> getActionsTaken(String documentId)
WorkflowDocumentServiceActionTaken of a Document with the given documentId
getActionsTaken in interface WorkflowDocumentServicedocumentId - the unique id of a document
public DocumentDetail getDocumentDetail(String documentId)
WorkflowDocumentServiceDocumentDetail of a Document with the given documentId
getDocumentDetail in interface WorkflowDocumentServicedocumentId - the unique id of the Document
DocumentDetail for with the given documentIdpublic List<DocumentStatusTransition> getDocumentStatusTransitionHistory(String documentId)
WorkflowDocumentServiceDocument with the given documentId
getDocumentStatusTransitionHistory in interface WorkflowDocumentServicedocumentId - the unique id of a Document
Document with the
given documentIdpublic List<RouteNodeInstance> getRouteNodeInstances(String documentId)
WorkflowDocumentServiceRouteNodeInstance for a Document with the given documentId
getRouteNodeInstances in interface WorkflowDocumentServicedocumentId - the unique id of a Document
RouteNodeInstances for the Document with the given documentIdpublic List<RouteNodeInstance> getActiveRouteNodeInstances(String documentId)
WorkflowDocumentServiceRouteNodeInstance for a Document with the given documentId
getActiveRouteNodeInstances in interface WorkflowDocumentServicedocumentId - the unique id of a Document
RouteNodeInstances for the Document with the given documentIdpublic List<RouteNodeInstance> getTerminalRouteNodeInstances(String documentId)
WorkflowDocumentServiceRouteNodeInstances for a Document with the given documentId
getTerminalRouteNodeInstances in interface WorkflowDocumentServicedocumentId - the unique id of a Document
RouteNodeInstances for the Document with the given documentIdpublic List<RouteNodeInstance> getCurrentRouteNodeInstances(String documentId)
WorkflowDocumentServiceRouteNodeInstances for a Document with the given documentId
getCurrentRouteNodeInstances in interface WorkflowDocumentServicedocumentId - the unique id of a Document
RouteNodeInstances for the Document with the given documentIdpublic List<String> getPreviousRouteNodeNames(String documentId)
WorkflowDocumentServiceRouteNodeInstance's node names for a Document with the given documentId
getPreviousRouteNodeNames in interface WorkflowDocumentServicedocumentId - the unique id of a Document
RouteNodeInstance's node names for the Document with the
given documentId
public List<String> getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId(String actionRequestedCd,
String documentId)
WorkflowDocumentServiceDocument with the given documentId
and action request code that have pending action requests
getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId in interface WorkflowDocumentServiceactionRequestedCd - code for the pending action requesteddocumentId - the unique id of a Document
Document with the
given parameters and have a pending action requestpublic String getDocumentInitiatorPrincipalId(String documentId)
WorkflowDocumentServiceDocument initiator's principalId with the given documentId
getDocumentInitiatorPrincipalId in interface WorkflowDocumentServicedocumentId - the unique id of a Document
Document initiator's principalIdpublic String getRoutedByPrincipalIdByDocumentId(String documentId)
WorkflowDocumentServiceDocument's 'routed by' principalId with the given documentId
Returns null if the document is not found
getRoutedByPrincipalIdByDocumentId in interface WorkflowDocumentServicedocumentId - the unique id of a Document
Document's 'routed by' principalId
public DocumentLink addDocumentLink(DocumentLink documentLink)
throws RiceIllegalArgumentException
WorkflowDocumentServiceDocumentLink. If the DocumentLink's id field is created. This method
actually creates two different links in the database (one from the document being
linked to the target and vice-versa). If the links already exist, then the call is ignored.
addDocumentLink in interface WorkflowDocumentServicedocumentLink - the unique id of a Document
DocumentLink
RiceIllegalArgumentException - if documentLink is null
public DocumentLink deleteDocumentLink(String documentLinkId)
throws RiceIllegalArgumentException
WorkflowDocumentServiceDocumentLink with the given documentLinkId.
deleteDocumentLink in interface WorkflowDocumentServicedocumentLinkId - the unique id of a Document
DocumentLink
RiceIllegalArgumentException - if documentLink is null
public List<DocumentLink> deleteDocumentLinksByDocumentId(String originatingDocumentId)
throws RiceIllegalArgumentException
WorkflowDocumentServiceDocumentLinks for the given Document with the given originatingDocumentId.
deleteDocumentLinksByDocumentId in interface WorkflowDocumentServiceoriginatingDocumentId - the unique id of the originating Document of the document links to delete
DocumentLinks
RiceIllegalArgumentException - if documentLink is null
public List<DocumentLink> getOutgoingDocumentLinks(String originatingDocumentId)
throws RiceIllegalArgumentException
WorkflowDocumentServiceDocumentLinks for outgoing links from the Document with the given documentId.
getOutgoingDocumentLinks in interface WorkflowDocumentServiceoriginatingDocumentId - the unique id of the originating Document of the document links to retrieve
DocumentLinks for the originating document
RiceIllegalArgumentException - if originatingDocumentId is null
public List<DocumentLink> getIncomingDocumentLinks(String destinationDocumentId)
throws RiceIllegalArgumentException
WorkflowDocumentServiceDocumentLinks for incoming links from the Document with the given documentId.
getIncomingDocumentLinks in interface WorkflowDocumentServicedestinationDocumentId - the unique id of the incoming Document of the document links to retrieve
DocumentLinks for the incoming document
RiceIllegalArgumentException - if originatingDocumentId is null
public DocumentLink getDocumentLink(String documentLinkId)
throws RiceIllegalArgumentException
WorkflowDocumentServiceDocumentLink for with the given documentLinkId.
getDocumentLink in interface WorkflowDocumentServicedocumentLinkId - the unique id of the DocumentLink to retrieve
DocumentLink with the passed in documentLinkId
RiceIllegalArgumentException - if documentLinkId is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||