Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.container.server.handler
Class AbstractActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>

java.lang.Object
  extended by 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

Constructor Summary
AbstractActionHandler()
           
 
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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.customware.gwt.dispatch.server.ActionHandler
getActionType
 

Constructor Detail

AbstractActionHandler

public AbstractActionHandler()
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.