Class SoapArchiveClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<ArchiveService>
com.logicaldoc.enterprise.webservice.soap.client.SoapArchiveClient
- All Implemented Interfaces:
ArchiveService
public class SoapArchiveClient
extends com.logicaldoc.webservice.soap.client.SoapClient<ArchiveService>
implements ArchiveService
Archive Web Service client.
- Since:
- 7.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveDocuments(String sid, List<Long> docIds, String comment) Archives a set of documentslongarchiveFolder(String sid, long folderId, String comment) Archives all the documents contained in a treeList<com.logicaldoc.webservice.model.WSDocument> listArchivedDocs(String sid, long folderId) Lists the archived documentsvoidunarchiveDocuments(String sid, List<Long> docIds) Restores a set of archived documents
-
Constructor Details
-
SoapArchiveClient
-
-
Method Details
-
listArchivedDocs
public List<com.logicaldoc.webservice.model.WSDocument> listArchivedDocs(String sid, long folderId) throws com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:ArchiveServiceLists the archived documents- Specified by:
listArchivedDocsin interfaceArchiveService- Parameters:
sid- Session identifierfolderId- If specified, it searches for all the archived documents inside this folder- Returns:
- The list of archived documents
- Throws:
com.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionscom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the data layerFeatureNotEnabledException- Feature not enabled in the license
-
archiveFolder
public long archiveFolder(String sid, long folderId, String comment) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, FeatureNotEnabledException, com.logicaldoc.core.PersistenceException Description copied from interface:ArchiveServiceArchives all the documents contained in a tree- Specified by:
archiveFolderin interfaceArchiveService- Parameters:
sid- Session identifierfolderId- All the documents stored inside this folder at whatever depth will be archivedcomment- reason of this action- Returns:
- Number of archived documents
- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionscom.logicaldoc.webservice.WebserviceException- Error in the webservice logicFeatureNotEnabledException- Feature not enabled in the licensecom.logicaldoc.core.PersistenceException- Error in the data layer
-
archiveDocuments
public void archiveDocuments(String sid, List<Long> docIds, String comment) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:ArchiveServiceArchives a set of documents- Specified by:
archiveDocumentsin interfaceArchiveService- Parameters:
sid- Session identifierdocIds- All the documents to be archivedcomment- reason of this action- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the data layerFeatureNotEnabledException- Feature not enabled in the license
-
unarchiveDocuments
public void unarchiveDocuments(String sid, List<Long> docIds) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException Description copied from interface:ArchiveServiceRestores a set of archived documents- Specified by:
unarchiveDocumentsin interfaceArchiveService- Parameters:
sid- Session identifierdocIds- All the documents to be restored- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.core.security.authorization.PermissionException- The user does not have enough permissionscom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the data layerFeatureNotEnabledException- Feature not enabled in the license
-