Class TransactionalViewTypeServiceImpl

java.lang.Object
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 Details

    • TransactionalViewTypeServiceImpl

      public TransactionalViewTypeServiceImpl()
  • Method Details

    • 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<String, String>
    • 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<String, String> - 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