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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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.ParamsHandlerERROR_EXCEED_ELEM_SIZE, ERROR_EXCEED_TOTAL_SIZE, ERROR_NOT_COMPLETED, ERROR_READ_FAILED, EXCEED_ELEM_NUMBER, NO_ERROR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdp.ui.framework.foundation.controllers.ICustomControllerparseRequest
- 
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- 
BaseControllerpublic BaseController()
 
- 
- 
Method Details- 
getPortalModule- Returns:
- the portalModule
 
- 
getDirectoryModule- Returns:
- the directoryModule
 
- 
getProjectModule- Returns:
- the projectModule
 
- 
getWorkflowModule- Returns:
- the workflowModule
 
- 
doProcess- Specified by:
- doProcessin interface- com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
- Throws:
- IOException
 
- 
buildResponseprotected IExecutionContext buildResponse(IExecutionContext ec, BaseController.Result result) throws IOException - Throws:
- IOException
 
- 
checkSecurity- Parameters:
- request-
 
- 
isAuthorizedCheck if the request is authorized.- Parameters:
- request- The request.
- Returns:
- true if the request is authorized, false otherwise.
- Throws:
- IOException
 
- 
findFileRecipientpublic com.axemble.vdp.utils.parameters.FileRecipient findFileRecipient(String name, String originalFileName) throws IOException - Specified by:
- findFileRecipientin interface- com.axemble.vdp.utils.parameters.ParamsHandler
- Throws:
- IOException
 
- 
findStringRecipientpublic com.axemble.vdp.utils.parameters.StringRecipient findStringRecipient(String name) throws IOException - Specified by:
- findStringRecipientin interface- com.axemble.vdp.utils.parameters.ParamsHandler
- Throws:
- IOException
 
- 
findXmlRecipient- Specified by:
- findXmlRecipientin interface- com.axemble.vdp.utils.parameters.ParamsHandler
- Throws:
- IOException
 
- 
getMaxFileSize- Specified by:
- getMaxFileSizein interface- com.axemble.vdp.utils.parameters.FileRecipient
- Throws:
- IOException
 
- 
prepareLoad- Specified by:
- prepareLoadin interface- com.axemble.vdp.utils.parameters.FileRecipient
- Throws:
- IOException
 
- 
loadCompletepublic void loadComplete(int errorCode, String name, String originalFileName, long writeSize) throws IOException - Specified by:
- loadCompletein interface- com.axemble.vdp.utils.parameters.FileRecipient
- Throws:
- IOException
 
- 
createTempFilepublic final com.axemble.vdp.utils.parameters.TempUploadFile createTempFile(String originalName) throws IOException - Specified by:
- createTempFilein interface- com.axemble.vdp.ui.framework.files.TemporaryFileManager
- Throws:
- IOException
 
- 
removeTempFilepublic final void removeTempFile(com.axemble.vdp.utils.parameters.TempUploadFile file) throws IOException - Specified by:
- removeTempFilein interface- com.axemble.vdp.ui.framework.files.TemporaryFileManager
- Throws:
- IOException
 
- 
getAttachments
 
-