com.hack23.cia.web.impl.ui.controller.common
Class AbstractGenericHandler<ACTION extends AbstractAction,REQUEST extends AbstractServiceRequest,RESPONSE extends AbstractServiceResponse>

Package class diagram package AbstractGenericHandler
java.lang.Object
  extended by com.hack23.cia.web.impl.ui.controller.common.AbstractGenericHandler<ACTION,REQUEST,RESPONSE>
Type Parameters:
ACTION - the generic type
REQUEST - the generic type
RESPONSE - the generic type
All Implemented Interfaces:
ActionHandler
Direct Known Subclasses:
AbstractConfigurationActionHandler, AbstractContentActionHandler, AbstractControlActionHandler, AbstractEventsActionHandler, AbstractMonitorActionHandler, ApplicationActionHandler, DefaultActionHandler

public abstract class AbstractGenericHandler<ACTION extends AbstractAction,REQUEST extends AbstractServiceRequest,RESPONSE extends AbstractServiceResponse>
extends Object
implements ActionHandler

The Class AbstractGenericHandler.


Constructor Summary
Modifier Constructor and Description
protected AbstractGenericHandler(ViewFactoryService viewFactoryService, ApplicationManager applicationManager)
          Instantiates a new abstract generic handler.
 
Method Summary
Modifier and Type Method and Description
abstract  REQUEST createServiceRequest(ACTION action)
          Creates the service request.
 ApplicationDtoFactory getApplicationDtoFactory()
          Gets the application dto factory.
 ApplicationManager getApplicationManager()
          Gets the application manager.
 UserStateService getUserStateService()
          Gets the user state service.
 ViewFactoryService getViewFactoryService()
          Gets the view factory service.
abstract  ModelAndView handleSuccessResponse(ACTION action, RESPONSE response)
          Handle success response.
 void processAction(ControllerAction action)
          Process action.
 void setApplicationDtoFactory(ApplicationDtoFactory applicationDtoFactory)
          Sets the application dto factory.
 void setUserStateService(UserStateService userStateService)
          Sets the user state service.
 void setViewFactoryService(ViewFactoryService viewFactoryService)
          Sets the view factory service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.web.impl.ui.controller.common.ActionHandler
getSupportedAction
 

Constructor Detail

AbstractGenericHandler

protected AbstractGenericHandler(ViewFactoryService viewFactoryService,
                                 ApplicationManager applicationManager)
Instantiates a new abstract generic handler.

Parameters:
viewFactoryService - the view factory service
applicationManager - the application manager
Method Detail

createServiceRequest

public abstract REQUEST createServiceRequest(ACTION action)
Creates the service request.

Parameters:
action - the action
Returns:
the rEQUEST

getApplicationDtoFactory

public final ApplicationDtoFactory getApplicationDtoFactory()
Gets the application dto factory.

Returns:
the application dto factory

getApplicationManager

public final ApplicationManager getApplicationManager()
Gets the application manager.

Returns:
the application manager

getUserStateService

public final UserStateService getUserStateService()
Gets the user state service.

Returns:
the user state service

getViewFactoryService

public final ViewFactoryService getViewFactoryService()
Gets the view factory service.

Returns:
the view factory service

handleSuccessResponse

public abstract ModelAndView handleSuccessResponse(ACTION action,
                                                   RESPONSE response)
Handle success response.

Parameters:
action - the action
response - the response
Returns:
the model and view

processAction

public final void processAction(ControllerAction action)
Description copied from interface: ActionHandler
Process action.

Specified by:
processAction in interface ActionHandler
Parameters:
action - the action

setApplicationDtoFactory

public void setApplicationDtoFactory(ApplicationDtoFactory applicationDtoFactory)
Sets the application dto factory.

Parameters:
applicationDtoFactory - the new application dto factory

setUserStateService

public final void setUserStateService(UserStateService userStateService)
Description copied from interface: ActionHandler
Sets the user state service.

Specified by:
setUserStateService in interface ActionHandler
Parameters:
userStateService - the new user state service

setViewFactoryService

public final void setViewFactoryService(ViewFactoryService viewFactoryService)
Description copied from interface: ActionHandler
Sets the view factory service.

Specified by:
setViewFactoryService in interface ActionHandler
Parameters:
viewFactoryService - the new view factory service


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.