Class ArchiveServiceClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.archive.ArchiveServiceClientImpl
- All Implemented Interfaces:
ArchiveServiceClient
This is the default implementation of
ArchiveServiceClient.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveServiceClientImpl(com.lexmark.saperion.archive.ArchiveService archiveService, com.lexmark.saperion.document.DocumentService documentService, com.lexmark.saperion.folder.FolderService folderService, com.lexmark.saperion.lookup.LookupEntryService lookupEntryService) -
Method Summary
Modifier and TypeMethodDescriptionSearchClient<com.lexmark.saperion.archive.ArchiveListItemType>This method returns a search client for the archives available in the system.SearchClient<com.lexmark.saperion.document.DocumentRevisionListItemType>newDocumentSearch(com.lexmark.saperion.archive.ArchiveReferenceType reference) This method returns a search client for documents in the archive.SearchClient<com.lexmark.saperion.document.DocumentRevisionListItemType>newDocumentSearch(com.lexmark.saperion.archive.ArchiveReferenceType reference, boolean recycleBinAware, boolean revisionAware) This method returns a search client for documents in the archive.SearchClient<com.lexmark.saperion.folder.FolderListItemType>newFolderSearch(com.lexmark.saperion.archive.ArchiveReferenceType reference) This method returns a search client for folders in the archive.SearchClient<com.lexmark.saperion.lookup.LookupEntryListItemType>newLookupEntrySearch(com.lexmark.saperion.archive.ArchiveReferenceType reference) This method returns a search client for lookup entries in the archive.resolve(com.lexmark.saperion.archive.ArchiveReferenceType reference) This method returns a client for the archive referenced.resolveName(String archiveName) This method returns a client for the archive with the given name.
-
Constructor Details
-
ArchiveServiceClientImpl
public ArchiveServiceClientImpl(com.lexmark.saperion.archive.ArchiveService archiveService, com.lexmark.saperion.document.DocumentService documentService, com.lexmark.saperion.folder.FolderService folderService, com.lexmark.saperion.lookup.LookupEntryService lookupEntryService)
-
-
Method Details
-
newArchiveSearch
public SearchClient<com.lexmark.saperion.archive.ArchiveListItemType> newArchiveSearch() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:ArchiveServiceClientThis method returns a search client for the archives available in the system. Note that only archives will be returned that can be accessed in the current tenant.- Specified by:
newArchiveSearchin interfaceArchiveServiceClient- Returns:
- a search client for the archives available in the system
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
resolve
public ArchiveClient resolve(com.lexmark.saperion.archive.ArchiveReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:ArchiveServiceClientThis method returns a client for the archive referenced.- Specified by:
resolvein interfaceArchiveServiceClient- Parameters:
reference- a reference to the archive to obtain a client for- Returns:
- a client for the archive referenced
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
resolveName
public ArchiveClient resolveName(String archiveName) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:ArchiveServiceClientThis method returns a client for the archive with the given name.- Specified by:
resolveNamein interfaceArchiveServiceClient- Parameters:
archiveName- the name of the archive to obtain a client for- Returns:
- a client for the archive with the given name
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
newDocumentSearch
public SearchClient<com.lexmark.saperion.document.DocumentRevisionListItemType> newDocumentSearch(com.lexmark.saperion.archive.ArchiveReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:ArchiveServiceClientThis method returns a search client for documents in the archive. Note that it will fail when the archive is not a document archive.- Specified by:
newDocumentSearchin interfaceArchiveServiceClient- Parameters:
reference- a reference to the archive to search in.- Returns:
- a search client for documents in the archive
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
newDocumentSearch
public SearchClient<com.lexmark.saperion.document.DocumentRevisionListItemType> newDocumentSearch(com.lexmark.saperion.archive.ArchiveReferenceType reference, boolean recycleBinAware, boolean revisionAware) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:ArchiveServiceClientThis method returns a search client for documents in the archive. Note that it will fail when the archive is not a document archive.- Specified by:
newDocumentSearchin interfaceArchiveServiceClient- Parameters:
reference- a reference to the archive to search in.recycleBinAware- if set to true, will ignore the deleted documents (SYSINDEXSTATE=65002)revisionAware- if set to true, will ignore the documents with SYSINDEXSTATE=55001- Returns:
- a search client for documents in the archive
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
newFolderSearch
public SearchClient<com.lexmark.saperion.folder.FolderListItemType> newFolderSearch(com.lexmark.saperion.archive.ArchiveReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:ArchiveServiceClientThis method returns a search client for folders in the archive. Note that it will fail when the archive is not a folder archive.- Specified by:
newFolderSearchin interfaceArchiveServiceClient- Parameters:
reference- a reference to the archive to search in.- Returns:
- a search client for folders in the archive
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
newLookupEntrySearch
public SearchClient<com.lexmark.saperion.lookup.LookupEntryListItemType> newLookupEntrySearch(com.lexmark.saperion.archive.ArchiveReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:ArchiveServiceClientThis method returns a search client for lookup entries in the archive. Note that it will fail when the archive is not a lookup entry archive.- Specified by:
newLookupEntrySearchin interfaceArchiveServiceClient- Parameters:
reference- a reference to the archive to search in.- Returns:
- a search client for lookup entries in the archive
- Throws:
com.lexmark.saperion.exceptions.EcmException
-