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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Loggerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IExecutionContextbuildResponse(IExecutionContext ec, BaseController.Result result) protected voidcheckSecurity(IExecutionContext.IRequest request) final com.axemble.vdp.utils.parameters.TempUploadFilecreateTempFile(String originalName) com.axemble.vdp.utils.parameters.FileRecipientfindFileRecipient(String name, String originalFileName) com.axemble.vdp.utils.parameters.StringRecipientfindStringRecipient(String name) com.axemble.vdp.utils.parameters.XmlRecipientprotected final Collection<IAttachment> protected final IDirectoryModulelongprotected final IPortalModuleprotected final IProjectModuleprotected final IWorkflowModuleprotected final booleanisAuthorized(IExecutionContext.IRequest request) Check if the request is authorized.voidloadComplete(int errorCode, String name, String originalFileName, long writeSize) prepareLoad(String name, String originalFileName) final voidremoveTempFile(com.axemble.vdp.utils.parameters.TempUploadFile file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
doProcessin 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:
findFileRecipientin interfacecom.axemble.vdp.utils.parameters.ParamsHandler- Throws:
IOException
-
findStringRecipient
public com.axemble.vdp.utils.parameters.StringRecipient findStringRecipient(String name) throws IOException - Specified by:
findStringRecipientin interfacecom.axemble.vdp.utils.parameters.ParamsHandler- Throws:
IOException
-
findXmlRecipient
- Specified by:
findXmlRecipientin interfacecom.axemble.vdp.utils.parameters.ParamsHandler- Throws:
IOException
-
getMaxFileSize
- Specified by:
getMaxFileSizein interfacecom.axemble.vdp.utils.parameters.FileRecipient- Throws:
IOException
-
prepareLoad
- Specified by:
prepareLoadin interfacecom.axemble.vdp.utils.parameters.FileRecipient- Throws:
IOException
-
loadComplete
public void loadComplete(int errorCode, String name, String originalFileName, long writeSize) throws IOException - Specified by:
loadCompletein interfacecom.axemble.vdp.utils.parameters.FileRecipient- Throws:
IOException
-
createTempFile
public final com.axemble.vdp.utils.parameters.TempUploadFile createTempFile(String originalName) throws IOException - Specified by:
createTempFilein 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:
removeTempFilein interfacecom.axemble.vdp.ui.framework.files.TemporaryFileManager- Throws:
IOException
-
getAttachments
-