org.kuali.rice.kew.routeheader.service.impl
Class RouteHeaderServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.routeheader.service.impl.RouteHeaderServiceImpl
All Implemented Interfaces:
RouteHeaderService

public class RouteHeaderServiceImpl
extends Object
implements RouteHeaderService


Constructor Summary
RouteHeaderServiceImpl()
           
 
Method Summary
 void clearRouteHeaderSearchValues(String documentId)
          Removes all SearchableAttributeValues associated with the RouteHeader.
 void deleteRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 Collection findByDocTypeAndAppId(String documentTypeName, String appId)
           
 Collection findPendingByResponsibilityIds(Set responsibilityIds)
           
 String getAppDocId(String documentId)
           
 String getAppDocStatus(String documentId)
          This method Returns the application document status for the given document id
 String getApplicationIdByDocumentId(String documentId)
          Returns the application id of the DocumentType for the Document with the given ID.
 DocumentRouteHeaderValueContent getContent(String documentId)
           
 String getDocumentStatus(String documentId)
           
 String getNextDocumentId()
           
 DocumentRouteHeaderValue getRouteHeader(String documentId)
           
 DocumentRouteHeaderValue getRouteHeader(String documentId, boolean clearCache)
           
 DocumentRouteHeaderDAO getRouteHeaderDAO()
           
 Collection<DocumentRouteHeaderValue> getRouteHeaders(Collection<String> documentIds)
           
 Collection<DocumentRouteHeaderValue> getRouteHeaders(Collection<String> documentIds, boolean clearCache)
           
 Map<String,DocumentRouteHeaderValue> getRouteHeadersForActionItems(Collection<ActionItem> actionItems)
           
 SearchableAttributeDAO getSearchableAttributeDAO()
           
 List<Timestamp> getSearchableAttributeDateTimeValuesByKey(String documentId, String key)
          This method is a more direct way to get the searchable attribute values
 List<BigDecimal> getSearchableAttributeFloatValuesByKey(String documentId, String key)
          This method is a more direct way to get the searchable attribute values
 List<Long> getSearchableAttributeLongValuesByKey(String documentId, String key)
          This method is a more direct way to get the searchable attribute values
 List<String> getSearchableAttributeStringValuesByKey(String documentId, String key)
          This method is a more direct way to get the searchable attribute values
 boolean hasSearchableAttributeValue(String documentId, String searchableAttributeKey, String searchableAttributeValue)
           
 void lockRouteHeader(String documentId, boolean wait)
           
 void saveRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 void setRouteHeaderDAO(DocumentRouteHeaderDAO routeHeaderDAO)
           
 void setSearchableAttributeDAO(SearchableAttributeDAO searchableAttributeDAO)
           
 void updateRouteHeaderSearchValues(String documentId, List<SearchableAttributeValue> searchAttributes)
          Updates the searchable attribute values for the document with the given id to the given values.
 void validateRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteHeaderServiceImpl

public RouteHeaderServiceImpl()
Method Detail

getRouteHeader

public DocumentRouteHeaderValue getRouteHeader(String documentId)
Specified by:
getRouteHeader in interface RouteHeaderService

getRouteHeader

public DocumentRouteHeaderValue getRouteHeader(String documentId,
                                               boolean clearCache)
Specified by:
getRouteHeader in interface RouteHeaderService

getRouteHeaders

public Collection<DocumentRouteHeaderValue> getRouteHeaders(Collection<String> documentIds)
Specified by:
getRouteHeaders in interface RouteHeaderService

getRouteHeaders

public Collection<DocumentRouteHeaderValue> getRouteHeaders(Collection<String> documentIds,
                                                            boolean clearCache)
Specified by:
getRouteHeaders in interface RouteHeaderService

getRouteHeadersForActionItems

public Map<String,DocumentRouteHeaderValue> getRouteHeadersForActionItems(Collection<ActionItem> actionItems)
Specified by:
getRouteHeadersForActionItems in interface RouteHeaderService

lockRouteHeader

public void lockRouteHeader(String documentId,
                            boolean wait)
Specified by:
lockRouteHeader in interface RouteHeaderService

saveRouteHeader

public void saveRouteHeader(DocumentRouteHeaderValue routeHeader)
Specified by:
saveRouteHeader in interface RouteHeaderService

deleteRouteHeader

public void deleteRouteHeader(DocumentRouteHeaderValue routeHeader)
Specified by:
deleteRouteHeader in interface RouteHeaderService

getNextDocumentId

public String getNextDocumentId()
Specified by:
getNextDocumentId in interface RouteHeaderService

findPendingByResponsibilityIds

public Collection findPendingByResponsibilityIds(Set responsibilityIds)
Specified by:
findPendingByResponsibilityIds in interface RouteHeaderService

clearRouteHeaderSearchValues

public void clearRouteHeaderSearchValues(String documentId)
Description copied from interface: RouteHeaderService
Removes all SearchableAttributeValues associated with the RouteHeader.

Specified by:
clearRouteHeaderSearchValues in interface RouteHeaderService

updateRouteHeaderSearchValues

public void updateRouteHeaderSearchValues(String documentId,
                                          List<SearchableAttributeValue> searchAttributes)
Description copied from interface: RouteHeaderService
Updates the searchable attribute values for the document with the given id to the given values. This method will clear existing search attribute values and replace with the ones given.

Specified by:
updateRouteHeaderSearchValues in interface RouteHeaderService

validateRouteHeader

public void validateRouteHeader(DocumentRouteHeaderValue routeHeader)
Specified by:
validateRouteHeader in interface RouteHeaderService

getApplicationIdByDocumentId

public String getApplicationIdByDocumentId(String documentId)
Description copied from interface: RouteHeaderService
Returns the application id of the DocumentType for the Document with the given ID.

Specified by:
getApplicationIdByDocumentId in interface RouteHeaderService

getContent

public DocumentRouteHeaderValueContent getContent(String documentId)
Specified by:
getContent in interface RouteHeaderService

hasSearchableAttributeValue

public boolean hasSearchableAttributeValue(String documentId,
                                           String searchableAttributeKey,
                                           String searchableAttributeValue)
Specified by:
hasSearchableAttributeValue in interface RouteHeaderService

getDocumentStatus

public String getDocumentStatus(String documentId)
Specified by:
getDocumentStatus in interface RouteHeaderService

getAppDocId

public String getAppDocId(String documentId)
Specified by:
getAppDocId in interface RouteHeaderService

getAppDocStatus

public String getAppDocStatus(String documentId)
Description copied from interface: RouteHeaderService
This method Returns the application document status for the given document id

Specified by:
getAppDocStatus in interface RouteHeaderService
Returns:
String

getRouteHeaderDAO

public DocumentRouteHeaderDAO getRouteHeaderDAO()

setRouteHeaderDAO

public void setRouteHeaderDAO(DocumentRouteHeaderDAO routeHeaderDAO)

getSearchableAttributeDateTimeValuesByKey

public List<Timestamp> getSearchableAttributeDateTimeValuesByKey(String documentId,
                                                                 String key)
Description copied from interface: RouteHeaderService
This method is a more direct way to get the searchable attribute values

Specified by:
getSearchableAttributeDateTimeValuesByKey in interface RouteHeaderService
Returns:

getSearchableAttributeFloatValuesByKey

public List<BigDecimal> getSearchableAttributeFloatValuesByKey(String documentId,
                                                               String key)
Description copied from interface: RouteHeaderService
This method is a more direct way to get the searchable attribute values

Specified by:
getSearchableAttributeFloatValuesByKey in interface RouteHeaderService
Returns:

getSearchableAttributeLongValuesByKey

public List<Long> getSearchableAttributeLongValuesByKey(String documentId,
                                                        String key)
Description copied from interface: RouteHeaderService
This method is a more direct way to get the searchable attribute values

Specified by:
getSearchableAttributeLongValuesByKey in interface RouteHeaderService
Returns:

getSearchableAttributeStringValuesByKey

public List<String> getSearchableAttributeStringValuesByKey(String documentId,
                                                            String key)
Description copied from interface: RouteHeaderService
This method is a more direct way to get the searchable attribute values

Specified by:
getSearchableAttributeStringValuesByKey in interface RouteHeaderService
Returns:

setSearchableAttributeDAO

public void setSearchableAttributeDAO(SearchableAttributeDAO searchableAttributeDAO)

getSearchableAttributeDAO

public SearchableAttributeDAO getSearchableAttributeDAO()

findByDocTypeAndAppId

public Collection findByDocTypeAndAppId(String documentTypeName,
                                        String appId)
Specified by:
findByDocTypeAndAppId in interface RouteHeaderService


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.