org.nuxeo.opensocial.container.server.handler
Class AbstractActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>
java.lang.Object
org.nuxeo.opensocial.container.server.handler.AbstractActionHandler<T,R>
- All Implemented Interfaces:
- net.customware.gwt.dispatch.server.ActionHandler<T,R>
- Direct Known Subclasses:
- CreateWebContentHandler, CreateYUIZoneHandler, DeleteWebContentHandler, DeleteYUIZoneHandler, InitApplicationHandler, UpdateAllWebContentsHandler, UpdateWebContentHandler, UpdateYUILayoutBodySizeHandler, UpdateYUILayoutFooterHandler, UpdateYUILayoutHeaderHandler, UpdateYUILayoutSideBarHandler, UpdateYUIZoneHandler
public abstract class AbstractActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>
- extends Object
- implements net.customware.gwt.dispatch.server.ActionHandler<T,R>
This class abstracts all the job for getting the CoreSession, make sure
session is cleaned after being used and all Tx stuff goes well
- Author:
- Stéphane Fourrier
Method Summary |
R |
execute(T action,
net.customware.gwt.dispatch.server.ExecutionContext context)
|
void |
rollback(T action,
R result,
net.customware.gwt.dispatch.server.ExecutionContext context)
|
Methods inherited from interface net.customware.gwt.dispatch.server.ActionHandler |
getActionType |
AbstractActionHandler
public AbstractActionHandler()
execute
public final R execute(T action,
net.customware.gwt.dispatch.server.ExecutionContext context)
throws net.customware.gwt.dispatch.shared.ActionException
- Specified by:
execute
in interface net.customware.gwt.dispatch.server.ActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>
- Throws:
net.customware.gwt.dispatch.shared.ActionException
rollback
public void rollback(T action,
R result,
net.customware.gwt.dispatch.server.ExecutionContext context)
throws net.customware.gwt.dispatch.shared.ActionException
- Specified by:
rollback
in interface net.customware.gwt.dispatch.server.ActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>
- Throws:
net.customware.gwt.dispatch.shared.ActionException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.