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>
| Constructor and Description |
|---|
AbstractActionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract R |
doExecute(T action,
net.customware.gwt.dispatch.server.ExecutionContext context,
org.nuxeo.ecm.core.api.CoreSession session)
Real job takes place here
|
R |
execute(T action,
net.customware.gwt.dispatch.server.ExecutionContext context) |
protected static org.nuxeo.ecm.core.api.Blob |
getBlob(org.apache.commons.fileupload.FileItem item) |
protected Space |
getSpaceFromId(String spaceId,
org.nuxeo.ecm.core.api.CoreSession session) |
protected SpaceManager |
getSpaceManager() |
void |
rollback(T action,
R result,
net.customware.gwt.dispatch.server.ExecutionContext context) |
public final R execute(T action, net.customware.gwt.dispatch.server.ExecutionContext context) throws net.customware.gwt.dispatch.shared.ActionException
execute in interface net.customware.gwt.dispatch.server.ActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>net.customware.gwt.dispatch.shared.ActionExceptionpublic void rollback(T action, R result, net.customware.gwt.dispatch.server.ExecutionContext context) throws net.customware.gwt.dispatch.shared.ActionException
rollback in interface net.customware.gwt.dispatch.server.ActionHandler<T extends AbstractAction<R>,R extends net.customware.gwt.dispatch.shared.Result>net.customware.gwt.dispatch.shared.ActionExceptionprotected abstract R doExecute(T action, net.customware.gwt.dispatch.server.ExecutionContext context, org.nuxeo.ecm.core.api.CoreSession session) throws Exception
Exceptionprotected Space getSpaceFromId(String spaceId, org.nuxeo.ecm.core.api.CoreSession session) throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionprotected SpaceManager getSpaceManager() throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionprotected static org.nuxeo.ecm.core.api.Blob getBlob(org.apache.commons.fileupload.FileItem item)
Copyright © 2019 Nuxeo SA. All rights reserved.