Interface WorkflowDocumentService


public interface WorkflowDocumentService
TODO ... annotate for JAX-WS!
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Details

    • getDocument

      Document getDocument(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a Document from a documentId.

      This method will return null if the Document does not exist.

      Parameters:
      documentId - the unique id of the document to return
      Returns:
      the document with the passed in id value
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • doesDocumentExist

      boolean doesDocumentExist(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Returns a boolean depending on if a Document exists with the specified documentId

      This method will return false if the responsibility does not exist.

      Parameters:
      documentId - the unique id of the document to check for existence
      Returns:
      boolean value representative of whether the document exists
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getDocumentContent

      DocumentContent getDocumentContent(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets DocumentContent from a documentId.

      This method will return null if the document does not exist.

      Parameters:
      documentId - the unique id of the document content to return
      Returns:
      the documentContent with the passed in id value
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getDocumentTypeName

      String getDocumentTypeName(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Returns the name of the document type used by the document with the given id.
      Parameters:
      documentId - the id of the document for which to fetch the document type name, must not be null or blank
      Returns:
      the name of the document type for the document with the given id, will never return a null or blank value
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null or if the document id does not resolve to a valid document from which a document type name can be fetched
      Since:
      2.4
    • getRootActionRequests

      List<ActionRequest> getRootActionRequests(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of root ActionRequests for a given documentId
      Parameters:
      documentId - the unique id of a document
      Returns:
      the list of root ActionRequests for a given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getPendingActionRequests

      List<ActionRequest> getPendingActionRequests(String documentId)
      Gets a list of ActionRequests which are pending for a given documentId
      Parameters:
      documentId - the unique id of a document
      Returns:
      the list of pending ActionRequests for a given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      Since:
      2.1
    • getActionRequestsForPrincipalAtNode

      List<ActionRequest> getActionRequestsForPrincipalAtNode(String documentId, String nodeName, String principalId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of ActionRequests for a given documentId, nodeName and principalId
      Parameters:
      documentId - the unique id of a document
      nodeName - the name of a RouteNode
      principalId - the unique id of a principal
      Returns:
      the list of ActionRequests for a given documentId, nodeName, and principalId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getActionsTaken

      List<ActionTaken> getActionsTaken(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of past ActionTaken of a Document with the given documentId
      Parameters:
      documentId - the unique id of a document
      Returns:
      the list of past ActionTakens for a given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • _getActionsTaken

      @Deprecated List<ActionTaken> _getActionsTaken(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Deprecated.
      mistaken operation name...use getActionsTaken instead
      Parameters:
      documentId - the unique id of a document
      Returns:
      the list of past ActionTakens for a given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getAllActionsTaken

      List<ActionTaken> getAllActionsTaken(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of all ActionTaken of a Document with the given documentId
      Parameters:
      documentId - the unique id of a document
      Returns:
      the list of ActionTakens (both current and not) for a given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      Since:
      2.0.2
    • getDocumentDetailByAppId

      DocumentDetail getDocumentDetailByAppId(String documentTypeName, String appId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a DocumentDetail of a Document with the given documentTypeName and appId
      Parameters:
      documentTypeName - the name of the DocumentType
      appId - the unique id of the application
      Returns:
      a DocumentDetail for with the given documentTypeName and appId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentTypeName is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if appId is null
    • getDocumentDetail

      DocumentDetail getDocumentDetail(String documentId)
      Gets a DocumentDetail of a Document with the given documentId
      Parameters:
      documentId - the unique id of the Document
      Returns:
      a DocumentDetail for with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getRouteNodeInstance

      RouteNodeInstance getRouteNodeInstance(String routeNodeInstanceId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a RouteNodeInstance with the given nodeInstanceId
      Parameters:
      routeNodeInstanceId - the unique id of the RouteNodeInstance
      Returns:
      a DocumentDetail for with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if nodeInstanceId is null
    • getApplicationDocumentId

      String getApplicationDocumentId(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a value application document id of a Document with the given documentId
      Parameters:
      documentId - the unique id of the Document
      Returns:
      the value of the applicationDocumentId for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getApplicationDocumentStatus

      String getApplicationDocumentStatus(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a value application document status of a Document with the given documentId
      Parameters:
      documentId - the unique id of the Document
      Returns:
      the value of the applicationDocumentStatus for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • documentSearch

      DocumentSearchResults documentSearch(String principalId, DocumentSearchCriteria criteria) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Executes a search for workflow documents using the given criteria and as the principal with the given id. Since documents can define security which permits access to view certain search results, the given principal id will be used when evaluating which documents should be filtered from the results because of lack of access.
      Parameters:
      principalId - 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 performed
      criteria - the criteria to use when executing the search
      Returns:
      the results of the search, this will never be null but may contain an empty list of results
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the given criteria is null
    • documentSearchSaveable

      DocumentSearchResults documentSearchSaveable(String principalId, DocumentSearchCriteria criteria, boolean saveSearch) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Executes a search for workflow documents using the given criteria and as the principal with the given id. Since documents can define security which permits access to view certain search results, the given principal id will be used when evaluating which documents should be filtered from the results because of lack of access.
      Parameters:
      principalId - 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 performed
      criteria - the criteria to use when executing the search
      boolean - to represent whether the document search details should be saved to the users preferences
      Returns:
      the results of the search, this will never be null but may contain an empty list of results
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if the given criteria is null
    • getRouteNodeInstances

      List<RouteNodeInstance> getRouteNodeInstances(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of all RouteNodeInstance for a Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the list of RouteNodeInstances for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getActiveRouteNodeInstances

      List<RouteNodeInstance> getActiveRouteNodeInstances(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of active RouteNodeInstance for a Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the list of active RouteNodeInstances for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getTerminalRouteNodeInstances

      List<RouteNodeInstance> getTerminalRouteNodeInstances(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of terminal RouteNodeInstances for a Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the list of terminal RouteNodeInstances for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getCurrentRouteNodeInstances

      List<RouteNodeInstance> getCurrentRouteNodeInstances(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of current RouteNodeInstances for a Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the list of current RouteNodeInstances for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getPreviousRouteNodeNames

      List<String> getPreviousRouteNodeNames(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of all previous RouteNodeInstance's node names for a Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the list of all previous RouteNodeInstance's node names for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getDocumentStatus

      DocumentStatus getDocumentStatus(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets the status value for a Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the current status of the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId

      List<String> getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId(String actionRequestedCd, String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of principalId values for a Document with the given documentId and action request code that have pending action requests
      Parameters:
      actionRequestedCd - code for the pending action requested
      documentId - the unique id of a Document
      Returns:
      a list of principalIds for the Document with the given parameters and have a pending action request
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if actionRequestCd is null
    • getDocumentInitiatorPrincipalId

      String getDocumentInitiatorPrincipalId(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets the Document initiator's principalId with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the Document initiator's principalId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getRoutedByPrincipalIdByDocumentId

      String getRoutedByPrincipalIdByDocumentId(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets the Document's 'routed by' principalId with the given documentId Returns null if the document is not found
      Parameters:
      documentId - the unique id of a Document
      Returns:
      the Document's 'routed by' principalId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • getSearchableAttributeStringValuesByKey

      List<String> getSearchableAttributeStringValuesByKey(String documentId, String key) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Does a direct search for searchableAttributes without going through the document search This returns a list of String values for String searchableAttributes
      Parameters:
      documentId - the unique id of a Document
      key - the searchableAttributes key value
      Returns:
      a list of String values for the Document with the given documentId and searchable attribute key
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if key is null
    • getSearchableAttributeDateTimeValuesByKey

      List<org.joda.time.DateTime> getSearchableAttributeDateTimeValuesByKey(String documentId, String key) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Does a direct search for searchableAttributes without going through the document search This returns a list of DateTime values for date/time searchableAttributes
      Parameters:
      documentId - the unique id of a Document
      key - the searchableAttributes key value
      Returns:
      a list of DateTime values for the Document with the given documentId and searchable attribute key
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if key is null
    • getSearchableAttributeFloatValuesByKey

      List<BigDecimal> getSearchableAttributeFloatValuesByKey(String documentId, String key) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Does a direct search for searchableAttributes without going through the document search This returns a list of BigDecimal values for decimal searchableAttributes
      Parameters:
      documentId - the unique id of a Document
      key - the searchableAttributes key value
      Returns:
      a list of BigDecimal values for the Document with the given documentId and searchable attribute key
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if key is null
    • getSearchableAttributeLongValuesByKey

      List<Long> getSearchableAttributeLongValuesByKey(String documentId, String key) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Does a direct search for searchableAttributes without going through the document search This returns a list of Long values for long searchableAttributes
      Parameters:
      documentId - the unique id of a Document
      key - the searchableAttributes key value
      Returns:
      a list of BigDecimal values for the Document with the given documentId and searchable attribute key
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if key is null
    • getDocumentStatusTransitionHistory

      List<DocumentStatusTransition> getDocumentStatusTransitionHistory(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of DocumentStatusTransitions for the Document with the given documentId
      Parameters:
      documentId - the unique id of a Document
      Returns:
      a list of DocumentStatusTransitions for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null
    • addDocumentLink

      DocumentLink addDocumentLink(DocumentLink documentLink) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Saves the passed in DocumentLink. 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.
      Parameters:
      documentLink - the unique id of a Document
      Returns:
      the newly saved DocumentLink
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentLink is null
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentLink's is id value is populated
    • deleteDocumentLink

      DocumentLink deleteDocumentLink(String documentLinkId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Removes the DocumentLink with the given documentLinkId.
      Parameters:
      documentLinkId - the unique id of a Document
      Returns:
      the deleted DocumentLink
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentLink is null
      org.kuali.rice.core.api.exception.RiceIllegalStateException - if no DocumentLink with the passed indocumentLink exist
    • deleteDocumentLinksByDocumentId

      List<DocumentLink> deleteDocumentLinksByDocumentId(String originatingDocumentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Removes all DocumentLinks for the given Document with the given originatingDocumentId.
      Parameters:
      originatingDocumentId - the unique id of the originating Document of the document links to delete
      Returns:
      a list of the deleted DocumentLinks
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentLink is null
    • getOutgoingDocumentLinks

      List<DocumentLink> getOutgoingDocumentLinks(String originatingDocumentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of all DocumentLinks for outgoing links from the Document with the given documentId.
      Parameters:
      originatingDocumentId - the unique id of the originating Document of the document links to retrieve
      Returns:
      a list of the outgoing DocumentLinks for the originating document
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if originatingDocumentId is null
    • getIncomingDocumentLinks

      List<DocumentLink> getIncomingDocumentLinks(String originatingDocumentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of all DocumentLinks for incoming links from the Document with the given documentId.
      Parameters:
      originatingDocumentId - the unique id of the incoming Document of the document links to retrieve
      Returns:
      a list of the outgoing DocumentLinks for the incoming document
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if originatingDocumentId is null
    • getDocumentLink

      DocumentLink getDocumentLink(String documentLinkId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets the DocumentLink for with the given documentLinkId.
      Parameters:
      documentLinkId - the unique id of the DocumentLink to retrieve
      Returns:
      a DocumentLink with the passed in documentLinkId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentLinkId is null
    • getActiveRouteNodeNames

      List<String> getActiveRouteNodeNames(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of active route node names for a Document with the given documentId. Will never return null but an empty collection to indicate no results.
      Parameters:
      documentId - the unique id of a Document
      Returns:
      an unmodifiable list of active route node names for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null or blank
      Since:
      rice 2.2
    • getActiveSimpleRouteNodeNames

      List<String> getActiveSimpleRouteNodeNames(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of active route node names for simple nodes for a Document with the given documentId. Will never return null but an empty collection to indicate no results.
      Parameters:
      documentId - the unique id of a Document
      Returns:
      an unmodifiable list of active route node names for simple nodes for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null or blank
      Since:
      rice 2.6
    • getTerminalRouteNodeNames

      List<String> getTerminalRouteNodeNames(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of terminal route node names for a Document with the given documentId. Will never return null but an empty collection to indicate no results.
      Parameters:
      documentId - the unique id of a Document
      Returns:
      an unmodifiable list of terminal route node names for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null or blank
      Since:
      rice 2.2
    • getCurrentRouteNodeNames

      List<String> getCurrentRouteNodeNames(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of current route node names for a Document with the given documentId. Will never return null but an empty collection to indicate no results.
      Parameters:
      documentId - the unique id of a Document
      Returns:
      an unmodifiable list of current route node names for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null or blank
      Since:
      rice 2.2
    • getCurrentSimpleRouteNodeNames

      List<String> getCurrentSimpleRouteNodeNames(String documentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Gets a list of simple current route node names for a Document with the given documentId. Will never return null but an empty collection to indicate no results.
      Parameters:
      documentId - the unique id of a Document
      Returns:
      an unmodifiable list of current simple route node names for the Document with the given documentId
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if documentId is null or blank
      Since:
      rice 2.6