Package com.axemble.vdoc.sdk.controllers
Class BaseController
java.lang.Object
com.axemble.vdoc.sdk.controllers.BaseController
- All Implemented Interfaces:
com.axemble.vdp.ui.framework.files.TemporaryFileManager
,com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
,com.axemble.vdp.utils.parameters.FileRecipient
,com.axemble.vdp.utils.parameters.ParamsHandler
- Direct Known Subclasses:
Dispatcher
public abstract class BaseController
extends Object
implements com.axemble.vdp.ui.framework.foundation.controllers.ICustomController, com.axemble.vdp.ui.framework.files.TemporaryFileManager
- Author:
- vlygeros
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Logger
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.axemble.vdp.utils.parameters.ParamsHandler
ERROR_EXCEED_ELEM_SIZE, ERROR_EXCEED_TOTAL_SIZE, ERROR_NOT_COMPLETED, ERROR_READ_FAILED, EXCEED_ELEM_NUMBER, NO_ERROR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IExecutionContext
buildResponse
(IExecutionContext ec, BaseController.Result result) protected void
checkSecurity
(IExecutionContext.IRequest request) final com.axemble.vdp.utils.parameters.TempUploadFile
createTempFile
(String originalName) 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
protected final Collection
<IAttachment> protected final IDirectoryModule
long
protected final IPortalModule
protected final IProjectModule
protected final IWorkflowModule
protected final boolean
isAuthorized
(IExecutionContext.IRequest request) Check if the request is authorized.void
loadComplete
(int errorCode, String name, String originalFileName, long writeSize) prepareLoad
(String name, String originalFileName) final void
removeTempFile
(com.axemble.vdp.utils.parameters.TempUploadFile file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
parseRequest
-
Field Details
-
LOGGER
-
STATUS_KEY_AUTH_FAILED
- See Also:
-
STATUS_KEY_LOGIN_SUCCESS
- See Also:
-
STATUS_KEY_LOGGED_OUT
- See Also:
-
STATUS_KEY_CAS_NOT_ACTIVATED
- See Also:
-
STATUS_KEY_UNKNOWN_COMMAND
- See Also:
-
STATUS_KEY_REDIRECT_TO_LOGOUT_REDIRECT_URL
- See Also:
-
STATUS_KEY_SESSION_DOES_N0T_MATCH
- See Also:
-
STATUS_KEY_ISSUER_NOT_AUTHORIZED
- See Also:
-
STATUS_KEY_INTERNAL_ERROR
- See Also:
-
STATUS_KEY_REDIRECT_TO_LOGOUT
- See Also:
-
STATUS_KEY_REDIRECT_TO_OPENID_PROVIDER
- See Also:
-
STATUS_KEY_UNAUTHORIZED_IP_ADDRESS
- See Also:
-
-
Constructor Details
-
BaseController
public BaseController()
-
-
Method Details
-
getPortalModule
- Returns:
- the portalModule
-
getDirectoryModule
- Returns:
- the directoryModule
-
getProjectModule
- Returns:
- the projectModule
-
getWorkflowModule
- Returns:
- the workflowModule
-
doProcess
- Specified by:
doProcess
in interfacecom.axemble.vdp.ui.framework.foundation.controllers.ICustomController
- Throws:
IOException
-
buildResponse
protected IExecutionContext buildResponse(IExecutionContext ec, BaseController.Result result) throws IOException - Throws:
IOException
-
checkSecurity
- Parameters:
request
-
-
isAuthorized
Check if the request is authorized.- Parameters:
request
- The request.- Returns:
- true if the request is authorized, false otherwise.
- Throws:
IOException
-
findFileRecipient
public com.axemble.vdp.utils.parameters.FileRecipient findFileRecipient(String name, String originalFileName) throws IOException - Specified by:
findFileRecipient
in interfacecom.axemble.vdp.utils.parameters.ParamsHandler
- Throws:
IOException
-
findStringRecipient
public com.axemble.vdp.utils.parameters.StringRecipient findStringRecipient(String name) throws IOException - Specified by:
findStringRecipient
in interfacecom.axemble.vdp.utils.parameters.ParamsHandler
- Throws:
IOException
-
findXmlRecipient
- Specified by:
findXmlRecipient
in interfacecom.axemble.vdp.utils.parameters.ParamsHandler
- Throws:
IOException
-
getMaxFileSize
- Specified by:
getMaxFileSize
in interfacecom.axemble.vdp.utils.parameters.FileRecipient
- Throws:
IOException
-
prepareLoad
- Specified by:
prepareLoad
in interfacecom.axemble.vdp.utils.parameters.FileRecipient
- Throws:
IOException
-
loadComplete
public void loadComplete(int errorCode, String name, String originalFileName, long writeSize) throws IOException - Specified by:
loadComplete
in interfacecom.axemble.vdp.utils.parameters.FileRecipient
- Throws:
IOException
-
createTempFile
public final com.axemble.vdp.utils.parameters.TempUploadFile createTempFile(String originalName) throws IOException - Specified by:
createTempFile
in interfacecom.axemble.vdp.ui.framework.files.TemporaryFileManager
- Throws:
IOException
-
removeTempFile
public final void removeTempFile(com.axemble.vdp.utils.parameters.TempUploadFile file) throws IOException - Specified by:
removeTempFile
in interfacecom.axemble.vdp.ui.framework.files.TemporaryFileManager
- Throws:
IOException
-
getAttachments
-