org.kuali.rice.krad.uif.service.impl
Class TransactionalViewTypeServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.TransactionalViewTypeServiceImpl
All Implemented Interfaces:
ViewTypeService

public class TransactionalViewTypeServiceImpl
extends Object
implements ViewTypeService

Type service implementation for transactional views.

Indexes views on document class and view name. Can retrieve views by document type, document type and view name, document class, document class and view name, or document id.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
TransactionalViewTypeServiceImpl()
           
 
Method Summary
 DocumentDictionaryService getDocumentDictionaryService()
          Returns the document dictionary service.
protected  DocumentService getDocumentService()
          Returns the document service.
 Map<String,String> getParametersFromRequest(Map<String,String> requestParameters)
          Determines the view type name.
 Map<String,String> getParametersFromViewConfiguration(org.springframework.beans.PropertyValues propertyValues)
          Get the document class and view name.
 UifConstants.ViewType getViewTypeName()
          Determines the view type name.
 void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
          Initializes the document dictionary service.
 void setDocumentService(DocumentService documentService)
          Initializes the document service .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalViewTypeServiceImpl

public TransactionalViewTypeServiceImpl()
Method Detail

getViewTypeName

public UifConstants.ViewType getViewTypeName()
Determines the view type name.

The view type name is specific for each type of transactional document and manually set.

Specified by:
getViewTypeName in interface ViewTypeService
Returns:
String

getParametersFromViewConfiguration

public Map<String,String> getParametersFromViewConfiguration(org.springframework.beans.PropertyValues propertyValues)
Get the document class and view name.

Extracts the view name and document class name from the PropertyValues.

Specified by:
getParametersFromViewConfiguration in interface ViewTypeService
Parameters:
propertyValues - - collection including document class and view name
Returns:
Map

getParametersFromRequest

public Map<String,String> getParametersFromRequest(Map<String,String> requestParameters)
Determines the view type name.

Check for document id in request parameters, if given retrieve document instance to get the document class. Otherwise check for document class or document type parameters for creating a new document view. #

Specified by:
getParametersFromRequest in interface ViewTypeService
Parameters:
requestParameters - - collection including document class and view name
Returns:
Map - document class name, view name

getDocumentService

protected DocumentService getDocumentService()
Returns the document service.

Gets the document service.

Returns:
DocumentService - document service

setDocumentService

public void setDocumentService(DocumentService documentService)
Initializes the document service .

Sets the document service.

Parameters:
documentService - - document service

getDocumentDictionaryService

public DocumentDictionaryService getDocumentDictionaryService()
Returns the document dictionary service.

Gets the document dictionary service.

Returns:
DocumentDictionaryService - document dictionary service

setDocumentDictionaryService

public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
Initializes the document dictionary service.

Sets the document dictionary service.

Parameters:
documentDictionaryService - - document dictionary service


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