|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.web.impl.ui.controller.common.AbstractGenericHandler<ACTION,REQUEST,RESPONSE>
ACTION - the generic typeREQUEST - the generic typeRESPONSE - the generic typepublic abstract class AbstractGenericHandler<ACTION extends AbstractAction,REQUEST extends AbstractServiceRequest,RESPONSE extends AbstractServiceResponse> extends Object implements ActionHandler
The Class AbstractGenericHandler.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGenericHandler(ViewFactoryService viewFactoryService,
ApplicationManager applicationManager)
Instantiates a new abstract generic handler. |
| 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 |
|---|
protected AbstractGenericHandler(ViewFactoryService viewFactoryService,
ApplicationManager applicationManager)
viewFactoryService - the view factory serviceapplicationManager - the application manager| Method Detail |
|---|
public abstract REQUEST createServiceRequest(ACTION action)
action - the actionpublic final ApplicationDtoFactory getApplicationDtoFactory()
public final ApplicationManager getApplicationManager()
public final UserStateService getUserStateService()
public final ViewFactoryService getViewFactoryService()
public abstract ModelAndView handleSuccessResponse(ACTION action,
RESPONSE response)
action - the actionresponse - the responsepublic final void processAction(ControllerAction action)
ActionHandler
processAction in interface ActionHandleraction - the actionpublic void setApplicationDtoFactory(ApplicationDtoFactory applicationDtoFactory)
applicationDtoFactory - the new application dto factorypublic final void setUserStateService(UserStateService userStateService)
ActionHandler
setUserStateService in interface ActionHandleruserStateService - the new user state servicepublic final void setViewFactoryService(ViewFactoryService viewFactoryService)
ActionHandler
setViewFactoryService in interface ActionHandlerviewFactoryService - the new view factory service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||