Class ImpexServiceImpl

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.impex.ImpexServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, com.logicaldoc.gui.frontend.client.services.ImpexService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ImpexServiceImpl extends com.logicaldoc.web.service.AbstractRemoteService implements com.logicaldoc.gui.frontend.client.services.ImpexService
Concrete implementation of the ImpexService
Since:
7.1.2
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.ImpexService

    com.logicaldoc.gui.frontend.client.services.ImpexService.Instance
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDocuments(long archiveId, Long[] documentIds)
     
    void
    addDocuments(com.logicaldoc.core.security.Session session, long archiveId, Long[] documentIds)
     
    void
    addFolder(long archiveId, long rootId)
     
    void
    delete(long archiveId)
     
    void
    delete(com.logicaldoc.core.security.Session session, long archiveId)
     
    void
    deleteFolder(String folderName)
     
    void
     
    com.logicaldoc.gui.common.client.beans.GUIArchive
    deleteVersions(long archiveId, Long[] versionIds)
     
    static File
    Retrieves the import directory in which will be copied the archive import zip files
    com.logicaldoc.gui.common.client.beans.GUIArchive
    load(long archiveId)
     
    com.logicaldoc.gui.common.client.beans.GUIIncrementalArchive
    loadIncremental(long id)
     
    com.logicaldoc.gui.common.client.beans.GUIArchive
    save(com.logicaldoc.gui.common.client.beans.GUIArchive archive)
     
    com.logicaldoc.gui.common.client.beans.GUIIncrementalArchive
    saveIncremental(com.logicaldoc.gui.common.client.beans.GUIIncrementalArchive incremental)
     
    void
    setStatus(long archiveId, int status)
     
    void
    setStatus(com.logicaldoc.core.security.Session session, long archiveId, int status)
     
    void
     

    Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet

    getSerializationPolicy, init, processCall, processCall, processPost

    Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

    doPost

    Methods inherited from class javax.servlet.http.HttpServlet

    service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImpexServiceImpl

      public ImpexServiceImpl()
  • Method Details

    • delete

      public void delete(com.logicaldoc.core.security.Session session, long archiveId) throws com.logicaldoc.gui.common.client.ServerException
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • delete

      public void delete(long archiveId) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      delete in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • deleteVersions

      public com.logicaldoc.gui.common.client.beans.GUIArchive deleteVersions(long archiveId, Long[] versionIds) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      deleteVersions in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • setStatus

      public void setStatus(com.logicaldoc.core.security.Session session, long archiveId, int status) throws com.logicaldoc.gui.common.client.ServerException
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • setStatus

      public void setStatus(long archiveId, int status) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      setStatus in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • save

      public com.logicaldoc.gui.common.client.beans.GUIArchive save(com.logicaldoc.gui.common.client.beans.GUIArchive archive) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      save in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • deleteIncremental

      public void deleteIncremental(long id) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      deleteIncremental in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • loadIncremental

      public com.logicaldoc.gui.common.client.beans.GUIIncrementalArchive loadIncremental(long id) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      loadIncremental in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • saveIncremental

      public com.logicaldoc.gui.common.client.beans.GUIIncrementalArchive saveIncremental(com.logicaldoc.gui.common.client.beans.GUIIncrementalArchive incremental) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      saveIncremental in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • addDocuments

      public void addDocuments(com.logicaldoc.core.security.Session session, long archiveId, Long[] documentIds) throws com.logicaldoc.gui.common.client.ServerException
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • addDocuments

      public void addDocuments(long archiveId, Long[] documentIds) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      addDocuments in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • addFolder

      public void addFolder(long archiveId, long rootId) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      addFolder in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • deleteFolder

      public void deleteFolder(String folderName) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      deleteFolder in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • startImport

      public void startImport(String name) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      startImport in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException
    • getImportDirectory

      public static File getImportDirectory(String tenantName)
      Retrieves the import directory in which will be copied the archive import zip files
      Parameters:
      tenantName - name of the tenant
      Returns:
      the import directory
    • load

      public com.logicaldoc.gui.common.client.beans.GUIArchive load(long archiveId) throws com.logicaldoc.gui.common.client.ServerException
      Specified by:
      load in interface com.logicaldoc.gui.frontend.client.services.ImpexService
      Throws:
      com.logicaldoc.gui.common.client.ServerException