Class TransactionalViewTypeServiceImpl
java.lang.Object
org.kuali.rice.krad.uif.service.impl.TransactionalViewTypeServiceImpl
- All Implemented Interfaces:
org.kuali.rice.krad.uif.service.ViewTypeService
public class TransactionalViewTypeServiceImpl
extends Object
implements org.kuali.rice.krad.uif.service.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 TypeMethodDescriptionorg.kuali.rice.krad.service.DocumentDictionaryServiceReturns the document dictionary service.protected org.kuali.rice.krad.service.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.org.kuali.rice.krad.uif.UifConstants.ViewTypeDetermines the view type name.voidsetDocumentDictionaryService(org.kuali.rice.krad.service.DocumentDictionaryService documentDictionaryService) Initializes the document dictionary service.voidsetDocumentService(org.kuali.rice.krad.service.DocumentService documentService) Initializes the document service .
-
Constructor Details
-
TransactionalViewTypeServiceImpl
public TransactionalViewTypeServiceImpl()
-
-
Method Details
-
getViewTypeName
public org.kuali.rice.krad.uif.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:
getViewTypeNamein interfaceorg.kuali.rice.krad.uif.service.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:
getParametersFromViewConfigurationin interfaceorg.kuali.rice.krad.uif.service.ViewTypeService- 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 interfaceorg.kuali.rice.krad.uif.service.ViewTypeService- Parameters:
requestParameters- - collection including document class and view name- Returns:
- Mapinvalid input: '<'String, String> - document class name, view name
-
getDocumentService
protected org.kuali.rice.krad.service.DocumentService getDocumentService()Returns the document service.Gets the document service.
- Returns:
- DocumentService - document service
-
setDocumentService
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) Initializes the document service .Sets the document service.
- Parameters:
documentService- - document service
-
getDocumentDictionaryService
public org.kuali.rice.krad.service.DocumentDictionaryService getDocumentDictionaryService()Returns the document dictionary service.Gets the document dictionary service.
- Returns:
- DocumentDictionaryService - document dictionary service
-
setDocumentDictionaryService
public void setDocumentDictionaryService(org.kuali.rice.krad.service.DocumentDictionaryService documentDictionaryService) Initializes the document dictionary service.Sets the document dictionary service.
- Parameters:
documentDictionaryService- - document dictionary service
-