Class ContentServiceImpl

All Implemented Interfaces:
LockssConfigurableService, ContentService

@Service public class ContentServiceImpl extends BaseServiceImpl implements ContentService
The Content SOAP web service implementation.
  • Constructor Details

    • ContentServiceImpl

      public ContentServiceImpl()
  • Method Details

    • getVersions

      public List<org.lockss.ws.entities.FileWsResult> getVersions(String url, String auId) throws org.lockss.ws.entities.LockssWebServicesFault
      Provides a list of the versions of a URL in an Archival Unit.
      Specified by:
      getVersions in interface ContentService
      Parameters:
      url - A String with the URL.
      auId - A String with the identifier (auid) of the archival unit.
      Returns:
      a List<FileWsResult> with the results.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • isUrlCached

      public boolean isUrlCached(String url, String auId) throws org.lockss.ws.entities.LockssWebServicesFault
      Provides an indication of whether the content defined by a URL and Archival Unit is cached.
      Specified by:
      isUrlCached in interface ContentService
      Parameters:
      url - A String with the URL.
      auId - A String with the identifier (auid) of the archival unit.
      Returns:
      a boolean with the indication.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • isUrlVersionCached

      public boolean isUrlVersionCached(String url, String auId, Integer version) throws org.lockss.ws.entities.LockssWebServicesFault
      Provides an indication of whether the content defined by a URL, an Archival Unit and a version is cached.
      Specified by:
      isUrlVersionCached in interface ContentService
      Parameters:
      url - A String with the URL.
      auId - A String with the identifier (auid) of the archival unit.
      version - An Integer with the requested version of the content.
      Returns:
      a boolean with the indication.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • fetchFile

      public org.lockss.ws.entities.ContentResult fetchFile(String url, String auId) throws org.lockss.ws.entities.LockssWebServicesFault
      Provides the content defined by a URL and Archival Unit.
      Specified by:
      fetchFile in interface ContentService
      Parameters:
      url - A String with the URL.
      auId - A String with the identifier (auid) of the archival unit.
      Returns:
      a ContentResult with the result of the operation.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • fetchVersionedFile

      public org.lockss.ws.entities.ContentResult fetchVersionedFile(String url, String auId, Integer version) throws org.lockss.ws.entities.LockssWebServicesFault
      Provides the content defined by a URL, an Archival Unit and a version.
      Specified by:
      fetchVersionedFile in interface ContentService
      Parameters:
      url - A String with the URL.
      auId - A String with the identifier (auid) of the archival unit.
      version - An Integer with the requested version of the content.
      Returns:
      a ContentResult with the result of the operation.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.