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 |
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER |
static String |
STATUS_KEY_AUTH_FAILED |
static String |
STATUS_KEY_CAS_NOT_ACTIVATED |
static String |
STATUS_KEY_INTERNAL_ERROR |
static String |
STATUS_KEY_ISSUER_NOT_AUTHORIZED |
static String |
STATUS_KEY_LOGGED_OUT |
static String |
STATUS_KEY_LOGIN_SUCCESS |
static String |
STATUS_KEY_REDIRECT_TO_LOGOUT |
static String |
STATUS_KEY_REDIRECT_TO_LOGOUT_REDIRECT_URL |
static String |
STATUS_KEY_REDIRECT_TO_OPENID_PROVIDER |
static String |
STATUS_KEY_SESSION_DOES_N0T_MATCH |
static String |
STATUS_KEY_UNAUTHORIZED_IP_ADDRESS |
static String |
STATUS_KEY_UNKNOWN_COMMAND |
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
public static final String STATUS_KEY_AUTH_FAILED
public static final String STATUS_KEY_LOGIN_SUCCESS
public static final String STATUS_KEY_LOGGED_OUT
public static final String STATUS_KEY_CAS_NOT_ACTIVATED
public static final String STATUS_KEY_UNKNOWN_COMMAND
public static final String STATUS_KEY_REDIRECT_TO_LOGOUT_REDIRECT_URL
public static final String STATUS_KEY_SESSION_DOES_N0T_MATCH
public static final String STATUS_KEY_ISSUER_NOT_AUTHORIZED
public static final String STATUS_KEY_INTERNAL_ERROR
public static final String STATUS_KEY_REDIRECT_TO_LOGOUT
public static final String STATUS_KEY_REDIRECT_TO_OPENID_PROVIDER
public static final String STATUS_KEY_UNAUTHORIZED_IP_ADDRESS
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 © 2022 Visiativ. All rights reserved.