org.kuali.rice.kew.routeheader.service.impl
Class RouteHeaderServiceImpl
java.lang.Object
org.kuali.rice.kew.routeheader.service.impl.RouteHeaderServiceImpl
- All Implemented Interfaces:
- RouteHeaderService
public class RouteHeaderServiceImpl
- extends Object
- implements RouteHeaderService
|
Method Summary |
void |
clearRouteHeaderSearchValues(Long routeHeaderId)
Removes all SearchableAttributeValues associated with the RouteHeader. |
void |
deleteRouteHeader(DocumentRouteHeaderValue routeHeader)
|
Collection |
findByDocTypeAndAppId(String documentTypeName,
String appId)
|
Collection |
findPendingByResponsibilityIds(Set responsibilityIds)
|
String |
getAppDocId(Long documentId)
|
DocumentRouteHeaderValueContent |
getContent(Long routeHeaderId)
|
String |
getDocumentStatus(Long documentId)
|
Long |
getNextRouteHeaderId()
|
DocumentRouteHeaderValue |
getRouteHeader(Long routeHeaderId)
|
DocumentRouteHeaderValue |
getRouteHeader(Long routeHeaderId,
boolean clearCache)
|
DocumentRouteHeaderDAO |
getRouteHeaderDAO()
|
Collection<DocumentRouteHeaderValue> |
getRouteHeaders(Collection<Long> routeHeaderIds)
|
Collection<DocumentRouteHeaderValue> |
getRouteHeaders(Collection<Long> routeHeaderIds,
boolean clearCache)
|
Map<Long,DocumentRouteHeaderValue> |
getRouteHeadersForActionItems(Collection<ActionItem> actionItems)
|
SearchableAttributeDAO |
getSearchableAttributeDAO()
|
List<Timestamp> |
getSearchableAttributeDateTimeValuesByKey(Long documentId,
String key)
This method is a more direct way to get the searchable attribute values |
List<BigDecimal> |
getSearchableAttributeFloatValuesByKey(Long documentId,
String key)
This method is a more direct way to get the searchable attribute values |
List<Long> |
getSearchableAttributeLongValuesByKey(Long documentId,
String key)
This method is a more direct way to get the searchable attribute values |
List<String> |
getSearchableAttributeStringValuesByKey(Long documentId,
String key)
This method is a more direct way to get the searchable attribute values |
String |
getServiceNamespaceByDocumentId(Long documentId)
Returns the Service Namespace of the DocumentType for the Document with the given ID. |
boolean |
hasSearchableAttributeValue(Long documentId,
String searchableAttributeKey,
String searchableAttributeValue)
|
void |
lockRouteHeader(Long routeHeaderId,
boolean wait)
|
void |
saveRouteHeader(DocumentRouteHeaderValue routeHeader)
|
void |
setRouteHeaderDAO(DocumentRouteHeaderDAO routeHeaderDAO)
|
void |
setSearchableAttributeDAO(SearchableAttributeDAO searchableAttributeDAO)
|
void |
updateRouteHeaderSearchValues(Long routeHeaderId,
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 |
RouteHeaderServiceImpl
public RouteHeaderServiceImpl()
getRouteHeader
public DocumentRouteHeaderValue getRouteHeader(Long routeHeaderId)
- Specified by:
getRouteHeader in interface RouteHeaderService
getRouteHeader
public DocumentRouteHeaderValue getRouteHeader(Long routeHeaderId,
boolean clearCache)
- Specified by:
getRouteHeader in interface RouteHeaderService
getRouteHeaders
public Collection<DocumentRouteHeaderValue> getRouteHeaders(Collection<Long> routeHeaderIds)
- Specified by:
getRouteHeaders in interface RouteHeaderService
getRouteHeaders
public Collection<DocumentRouteHeaderValue> getRouteHeaders(Collection<Long> routeHeaderIds,
boolean clearCache)
- Specified by:
getRouteHeaders in interface RouteHeaderService
getRouteHeadersForActionItems
public Map<Long,DocumentRouteHeaderValue> getRouteHeadersForActionItems(Collection<ActionItem> actionItems)
- Specified by:
getRouteHeadersForActionItems in interface RouteHeaderService
lockRouteHeader
public void lockRouteHeader(Long routeHeaderId,
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
getNextRouteHeaderId
public Long getNextRouteHeaderId()
- Specified by:
getNextRouteHeaderId in interface RouteHeaderService
findPendingByResponsibilityIds
public Collection findPendingByResponsibilityIds(Set responsibilityIds)
- Specified by:
findPendingByResponsibilityIds in interface RouteHeaderService
clearRouteHeaderSearchValues
public void clearRouteHeaderSearchValues(Long routeHeaderId)
- Description copied from interface:
RouteHeaderService
- Removes all SearchableAttributeValues associated with the RouteHeader.
- Specified by:
clearRouteHeaderSearchValues in interface RouteHeaderService
updateRouteHeaderSearchValues
public void updateRouteHeaderSearchValues(Long routeHeaderId,
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
getServiceNamespaceByDocumentId
public String getServiceNamespaceByDocumentId(Long documentId)
- Description copied from interface:
RouteHeaderService
- Returns the Service Namespace of the
DocumentType for the Document with the given ID.
- Specified by:
getServiceNamespaceByDocumentId in interface RouteHeaderService
getContent
public DocumentRouteHeaderValueContent getContent(Long routeHeaderId)
- Specified by:
getContent in interface RouteHeaderService
hasSearchableAttributeValue
public boolean hasSearchableAttributeValue(Long documentId,
String searchableAttributeKey,
String searchableAttributeValue)
- Specified by:
hasSearchableAttributeValue in interface RouteHeaderService
getDocumentStatus
public String getDocumentStatus(Long documentId)
- Specified by:
getDocumentStatus in interface RouteHeaderService
getAppDocId
public String getAppDocId(Long documentId)
- Specified by:
getAppDocId in interface RouteHeaderService
getRouteHeaderDAO
public DocumentRouteHeaderDAO getRouteHeaderDAO()
setRouteHeaderDAO
public void setRouteHeaderDAO(DocumentRouteHeaderDAO routeHeaderDAO)
getSearchableAttributeDateTimeValuesByKey
public List<Timestamp> getSearchableAttributeDateTimeValuesByKey(Long 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(Long 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(Long 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(Long 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 © 2004-2011 The Kuali Foundation. All Rights Reserved.