public abstract class BaseController extends Object implements com.axemble.vdp.ui.framework.foundation.controllers.ICustomController, com.axemble.vdp.ui.framework.files.TemporaryFileManager
Modifier and Type | Class and Description |
---|---|
class |
BaseController.Result |
Constructor and Description |
---|
BaseController() |
Modifier and Type | Method and Description |
---|---|
protected IExecutionContext |
buildResponse(IExecutionContext ec,
BaseController.Result result) |
protected void |
checkSecurity(IExecutionContext.IRequest request) |
com.axemble.vdp.utils.parameters.TempUploadFile |
createTempFile(String originalName) |
IExecutionContext |
doProcess(IExecutionContext ec) |
com.axemble.vdp.utils.parameters.FileRecipient |
findFileRecipient(String name,
String originalFileName) |
com.axemble.vdp.utils.parameters.StringRecipient |
findStringRecipient(String name) |
com.axemble.vdp.utils.parameters.XmlRecipient |
findXmlRecipient() |
protected Collection<IAttachment> |
getAttachments() |
protected IDirectoryModule |
getDirectoryModule() |
long |
getMaxFileSize() |
protected IPortalModule |
getPortalModule() |
protected IProjectModule |
getProjectModule() |
protected IWorkflowModule |
getWorkflowModule() |
protected boolean |
isAuthorized(IExecutionContext.IRequest request)
Check if the request is authorized.
|
void |
loadComplete(int errorCode,
String name,
String originalFileName,
long writeSize) |
OutputStream |
prepareLoad(String name,
String originalFileName) |
void |
removeTempFile(com.axemble.vdp.utils.parameters.TempUploadFile file) |
public static final Logger LOGGER
protected final IPortalModule getPortalModule()
protected final IDirectoryModule getDirectoryModule()
protected final IProjectModule getProjectModule()
protected final IWorkflowModule getWorkflowModule()
public IExecutionContext doProcess(IExecutionContext ec) throws IOException
doProcess
in interface com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
IOException
protected IExecutionContext buildResponse(IExecutionContext ec, BaseController.Result result) throws IOException
IOException
protected void checkSecurity(IExecutionContext.IRequest request)
request
- protected final boolean isAuthorized(IExecutionContext.IRequest request) throws IOException
request
- The request.IOException
public com.axemble.vdp.utils.parameters.FileRecipient findFileRecipient(String name, String originalFileName) throws IOException
findFileRecipient
in interface com.axemble.vdp.utils.parameters.ParamsHandler
IOException
public com.axemble.vdp.utils.parameters.StringRecipient findStringRecipient(String name) throws IOException
findStringRecipient
in interface com.axemble.vdp.utils.parameters.ParamsHandler
IOException
public com.axemble.vdp.utils.parameters.XmlRecipient findXmlRecipient() throws IOException
findXmlRecipient
in interface com.axemble.vdp.utils.parameters.ParamsHandler
IOException
public long getMaxFileSize() throws IOException
getMaxFileSize
in interface com.axemble.vdp.utils.parameters.FileRecipient
IOException
public OutputStream prepareLoad(String name, String originalFileName) throws IOException
prepareLoad
in interface com.axemble.vdp.utils.parameters.FileRecipient
IOException
public void loadComplete(int errorCode, String name, String originalFileName, long writeSize) throws IOException
loadComplete
in interface com.axemble.vdp.utils.parameters.FileRecipient
IOException
public final com.axemble.vdp.utils.parameters.TempUploadFile createTempFile(String originalName) throws IOException
createTempFile
in interface com.axemble.vdp.ui.framework.files.TemporaryFileManager
IOException
public final void removeTempFile(com.axemble.vdp.utils.parameters.TempUploadFile file) throws IOException
removeTempFile
in interface com.axemble.vdp.ui.framework.files.TemporaryFileManager
IOException
protected final Collection<IAttachment> getAttachments()
Copyright © 2019 Visiativ Software. All rights reserved.