Class TransactionalViewTypeServiceImpl
java.lang.Object
org.kuali.rice.krad.uif.service.impl.TransactionalViewTypeServiceImpl
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the document dictionary service.protected DocumentServiceReturns the document service.getParametersFromRequest(Map<String, String> requestParameters) Determines the view type name.getParametersFromViewConfiguration(org.springframework.beans.PropertyValues propertyValues) Get the document class and view name.Determines the view type name.voidsetDocumentDictionaryService(DocumentDictionaryService documentDictionaryService) Initializes the document dictionary service.voidsetDocumentService(DocumentService documentService) Initializes the document service .
-
Constructor Details
-
TransactionalViewTypeServiceImpl
public TransactionalViewTypeServiceImpl()
-
-
Method Details
-
getViewTypeName
Determines the view type name.The view type name is specific for each type of transactional document and manually set.
- Specified by:
getViewTypeNamein interfaceViewTypeService- 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:
getParametersFromViewConfigurationin interfaceViewTypeService- Parameters:
propertyValues- - collection including document class and view name- Returns:
- Mapinvalid input: '<'String, String>
-
getParametersFromRequest
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:
getParametersFromRequestin interfaceViewTypeService- Parameters:
requestParameters- - collection including document class and view name- Returns:
- Mapinvalid input: '<'String, String> - document class name, view name
-
getDocumentService
Returns the document service.Gets the document service.
- Returns:
- DocumentService - document service
-
setDocumentService
Initializes the document service .Sets the document service.
- Parameters:
documentService- - document service
-
getDocumentDictionaryService
Returns the document dictionary service.Gets the document dictionary service.
- Returns:
- DocumentDictionaryService - document dictionary service
-
setDocumentDictionaryService
Initializes the document dictionary service.Sets the document dictionary service.
- Parameters:
documentDictionaryService- - document dictionary service
-