Package com.saperion.ws.strategy
Class ReadStrategy
- java.lang.Object
-
- com.saperion.ws.strategy.ReadStrategy
-
- Direct Known Subclasses:
InMemoryLoader
,NormalLoader
,StreamOnlyLoader
public abstract class ReadStrategy extends java.lang.Object
Abstract class for reading the content of a SAPERION document.
-
-
Constructor Summary
Constructors Constructor Description ReadStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SaWsContent
read(java.lang.String xhdoc, int element, CloseablePooledSession session, boolean currentRevision)
Reads the content of the specified document into an SaWsContent object.
-
-
-
Method Detail
-
read
public abstract SaWsContent read(java.lang.String xhdoc, int element, CloseablePooledSession session, boolean currentRevision) throws SaWsRepositoryException, SaWsAuthenticationException, SaWsDBException
Reads the content of the specified document into an SaWsContent object.- Parameters:
xhdoc
- The document identifier.element
- The position of the element inside a structured document to read.session
- The closeable session containing the connection to use for reading.- Returns:
- The read content as a SaWsContent
- Throws:
SaWsRepositoryException
- if a repository error occursSaWsAuthenticationException
- if a authentication error occursSaWsDBException
- if a database error occurs
-
-