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

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

public class MaintenanceViewTypeServiceImpl
extends Object
implements ViewTypeService

Type service implementation for maintenance views

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

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

Constructor Summary
MaintenanceViewTypeServiceImpl()
           
 
Method Summary
 DocumentDictionaryService getDocumentDictionaryService()
           
protected  DocumentService getDocumentService()
           
 Map<String,String> getParametersFromRequest(Map<String,String> requestParameters)
          Check for document id in request parameters, if given retrieve document instance to get the data object class.
 Map<String,String> getParametersFromViewConfiguration(org.springframework.beans.PropertyValues propertyValues)
          Pulls values for the supported parameters from the views configured property values.
 UifConstants.ViewType getViewTypeName()
          Gives the view type name that is supported by the type service
 void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
           
 void setDocumentService(DocumentService documentService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaintenanceViewTypeServiceImpl

public MaintenanceViewTypeServiceImpl()
Method Detail

getViewTypeName

public UifConstants.ViewType getViewTypeName()
Description copied from interface: ViewTypeService
Gives the view type name that is supported by the type service

The name is used to associated a type (and thus a view type service) with a view instance through the view type name property. Thus must be unique among all view types implemented

Specified by:
getViewTypeName in interface ViewTypeService
Returns:
ViewType view type name
See Also:
ViewTypeService.getViewTypeName()

getParametersFromViewConfiguration

public Map<String,String> getParametersFromViewConfiguration(org.springframework.beans.PropertyValues propertyValues)
Description copied from interface: ViewTypeService
Pulls values for the supported parameters from the views configured property values. These name/value pairs are used to index the view for later retrieval

Specified by:
getParametersFromViewConfiguration in interface ViewTypeService
Parameters:
propertyValues - - property values configured on the view bean definition
Returns:
Map of parameters where map key is the parameter name, and the map value is the parameter value
See Also:
ViewTypeService.getParametersFromViewConfiguration(org.springframework.beans.PropertyValues)

getParametersFromRequest

public Map<String,String> getParametersFromRequest(Map<String,String> requestParameters)
Check for document id in request parameters, if given retrieve document instance to get the data object class. Otherwise check for data object class parameter for creating a new maintenance view

Specified by:
getParametersFromRequest in interface ViewTypeService
Parameters:
requestParameters - - Map of request parameters to pull view type parameters from
Returns:
Map of parameters where map key is the parameter name, and the map value is the parameter value
See Also:
ViewTypeService.getParametersFromRequest(java.util.Map)

getDocumentService

protected DocumentService getDocumentService()

setDocumentService

public void setDocumentService(DocumentService documentService)

getDocumentDictionaryService

public DocumentDictionaryService getDocumentDictionaryService()

setDocumentDictionaryService

public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)


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