Package com.logicaldoc.impex
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImpexServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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
deleteIncremental(long id)
com.logicaldoc.gui.common.client.beans.GUIArchive
deleteVersions(long archiveId, Long[] versionIds)
static File
getImportDirectory(String tenantName)
Retrieves the import directory in which will be copied the archive import zip filescom.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
startImport(String name)
-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.logicaldoc.gui.frontend.client.services.ImpexService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
-