Class SaWsContentService


  • public class SaWsContentService
    extends AbstractService
    This class wraps all methods of the SaClassicConnector. It parses the information, which is fetched from the server to classes useable for webservices. JAX-B requires classes to be JavaBeans, because it uses the set/get-Methods.

    You need a token for calling the methods to perform searches and modifications. For getting a token the logon method has to be called. If the thread is timed out on the backend or if you aren't logged in you will get an exception.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Annotations getAnnotations​(java.lang.String token, java.lang.String xhdoc, int elementNumber)
      Returns the annotations by the specified document in its current revision.
      SaWsContent getContent​(java.lang.String token, java.lang.String xhdoc, int elementNumber)
      Loads a document in its current revision from the backend system.
      java.lang.String getFilename​(java.lang.String token, java.lang.String xhdoc, int elementNumber)
      Loads the filename for a document from the backend system.
      long getSize​(java.lang.String token, java.lang.String xhdoc, int elementNumber)
      Returns the total document size in archive.
      SaWsContentStructure getStructure​(java.lang.String token, java.lang.String xhdoc)
      With the help of getStructure you are able to receive all informations about the documents content structure of the actual document version.
      void setAnnotations​(java.lang.String token, Annotations annotations, java.lang.String xhdoc, int elementNumber)
      Sets the annotations of a document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait