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
  • Field Details

  • Constructor Details

    • BaseController

      public BaseController()
  • Method Details

    • getPortalModule

      protected final IPortalModule getPortalModule()
      Returns:
      the portalModule
    • getDirectoryModule

      protected final IDirectoryModule getDirectoryModule()
      Returns:
      the directoryModule
    • getProjectModule

      protected final IProjectModule getProjectModule()
      Returns:
      the projectModule
    • getWorkflowModule

      protected final IWorkflowModule getWorkflowModule()
      Returns:
      the workflowModule
    • doProcess

      public IExecutionContext doProcess(IExecutionContext ec) throws IOException
      Specified by:
      doProcess in interface com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
      Throws:
      IOException
    • buildResponse

      protected IExecutionContext buildResponse(IExecutionContext ec, BaseController.Result result) throws IOException
      Throws:
      IOException
    • checkSecurity

      protected void checkSecurity(IExecutionContext.IRequest request)
      Parameters:
      request -
    • isAuthorized

      protected final boolean isAuthorized(IExecutionContext.IRequest request) throws IOException
      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 interface com.axemble.vdp.utils.parameters.ParamsHandler
      Throws:
      IOException
    • findStringRecipient

      public com.axemble.vdp.utils.parameters.StringRecipient findStringRecipient(String name) throws IOException
      Specified by:
      findStringRecipient in interface com.axemble.vdp.utils.parameters.ParamsHandler
      Throws:
      IOException
    • findXmlRecipient

      public com.axemble.vdp.utils.parameters.XmlRecipient findXmlRecipient() throws IOException
      Specified by:
      findXmlRecipient in interface com.axemble.vdp.utils.parameters.ParamsHandler
      Throws:
      IOException
    • getMaxFileSize

      public long getMaxFileSize() throws IOException
      Specified by:
      getMaxFileSize in interface com.axemble.vdp.utils.parameters.FileRecipient
      Throws:
      IOException
    • prepareLoad

      public OutputStream prepareLoad(String name, String originalFileName) throws IOException
      Specified by:
      prepareLoad in interface com.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 interface com.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 interface com.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 interface com.axemble.vdp.ui.framework.files.TemporaryFileManager
      Throws:
      IOException
    • getAttachments

      protected final Collection<IAttachment> getAttachments()