public class TransactionalViewTypeServiceImpl extends Object implements ViewTypeService
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.
| Constructor and Description |
|---|
TransactionalViewTypeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 .
|
public TransactionalViewTypeServiceImpl()
public UifConstants.ViewType getViewTypeName()
The view type name is specific for each type of transactional document and manually set.
getViewTypeName in interface ViewTypeServicepublic Map<String,String> getParametersFromViewConfiguration(org.springframework.beans.PropertyValues propertyValues)
Extracts the view name and document class name from the PropertyValues.
getParametersFromViewConfiguration in interface ViewTypeServicepropertyValues - - collection including document class and view namepublic Map<String,String> getParametersFromRequest(Map<String,String> requestParameters)
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. #
getParametersFromRequest in interface ViewTypeServicerequestParameters - - collection including document class and view nameprotected DocumentService getDocumentService()
Gets the document service.
public void setDocumentService(DocumentService documentService)
Sets the document service.
documentService - - document servicepublic DocumentDictionaryService getDocumentDictionaryService()
Gets the document dictionary service.
public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
Sets the document dictionary service.
documentDictionaryService - - document dictionary serviceCopyright © 2005–2016 The Kuali Foundation. All rights reserved.