public class SaWsArchiveService extends AbstractService
configured
Constructor and Description |
---|
SaWsArchiveService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SaWsSaveInfo |
create(int token,
String definition,
List<SaWsProperty> metadatas,
SaWsContentContainer container,
String versionComment,
String acls)
Creates a new document on the backend system with the given metadata and content.
|
void |
delete(int token,
String xhdoc,
SaWsDeleteType deleteType)
Deletes a document from the backend system with the given strategy.
|
SaWsAccessData |
getAccessData(int token,
String xhdoc)
Reads the access rights of the given document.
|
SaWsContent |
getContent(int token,
String xhdoc,
int elementNumber)
Deprecated.
This method is deprecated. Use SaWsContentService.getContent instead.
|
String |
getContentFilename(int token,
String xhdoc,
int elementNumber)
Deprecated.
This method is deprecated. Use SaWsContentService.getContentFilename instead.
|
SaWsLockInfo |
getLockInfo(int token,
String sysRowId)
Returns the locking informations for a given document.
|
boolean |
lock(int token,
String sysRowId,
String definition)
Locks a document.
|
List<SaWsDocumentInfo> |
query(int token,
SaWsQueryInfo queryInfo) |
protected List<SaWsPropertyValue[]> |
search(int token,
com.saperion.rmi.SaQueryInfo query)
This method performs the search for the given SaQueryInfo.
|
List<SaWsPropertyValue[]> |
search(int token,
String hql)
Performs a search with the given hql query (hibernate query language).
|
List<SaWsPropertyValue[]> |
searchWithPaging(int token,
String hql,
int offset,
int maxNumber)
Performs a search with the given hql query (hibernate query language) with the support for
paging by the given offset and max number parameters.
|
boolean |
unlock(int token,
String sysRowId,
String definition)
Unlocks a document.
|
SaWsSaveInfo |
update(int token,
String definition,
String xhdoc,
List<SaWsProperty> metadatas,
SaWsContentContainer container,
String versionComment,
String acls)
Updates a document in the backend system with the given metadata and content.
|
addToRequest, getConnection, getSession, isConfigured
public SaWsSaveInfo update(int token, String definition, String xhdoc, List<SaWsProperty> metadatas, SaWsContentContainer container, String versionComment, String acls) throws SaWsException
token
- to identify the session.definition
- The name of the database definitionxhdoc
- The ID of the documentmetadatas
- A properties object containing the metadatacontainer
- Multiple content dataversionComment
- The comment for the versionacls
- Document ACLSaWsRepositoryException
- if a repository error occurs.SaWsDBException
- if a database error occurs.SaWsException
SaClassicConnector.updateDocument(java.lang.String,
java.lang.String, java.util.Properties, java.io.InputStream[], java.lang.String)
@Deprecated public SaWsContent getContent(int token, String xhdoc, int elementNumber) throws SaWsException
token
- to identify the session.xhdoc
- The ID of the documentelementNumber
- Element numberSaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if an repository error occurs.SaWsException
SaClassicConnector.readDocument(java.lang.String, boolean, int)
@Deprecated public String getContentFilename(int token, String xhdoc, int elementNumber) throws SaWsException
token
- to identify the session.xhdoc
- The ID of the documentelementNumber
- Element numberSaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if an repository error occurs.SaWsException
SaClassicConnector.readDocumentFilename(java.lang.String,
boolean, int)
public void delete(int token, String xhdoc, SaWsDeleteType deleteType) throws SaWsException
token
- to identify the session.xhdoc
- The HDoc of the document.deleteType
- Deletion strategySaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.deleteDocument(java.lang.String, int)
public SaWsSaveInfo create(int token, String definition, List<SaWsProperty> metadatas, SaWsContentContainer container, String versionComment, String acls) throws SaWsException
token
- to identify the session.definition
- The name of the database definitionmetadatas
- A properties object containing the metadatacontainer
- Multiple content dataversionComment
- The comment for the version (mandatory)acls
- ACL name string (optional - multiple ACLs with semicolon separated)SaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.createDocument(java.lang.String,
java.util.Properties, java.io.InputStream[], java.lang.String, java.lang.String)
public boolean lock(int token, String sysRowId, String definition) throws SaWsException
token
- to identify the sessionsysRowId
- SysRowIddefinition
- DDC nameSaWsAuthenticationException
- if an authentication error occurs.SaWsLockException
- if a lock error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.lockDocument(java.lang.String,
java.lang.String)
public boolean unlock(int token, String sysRowId, String definition) throws SaWsException
token
- to identify the sessionsysRowId
- SysRowIddefinition
- DDC nameSaWsAuthenticationException
- if an authentication error occurs.SaWsLockException
- if a lock error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.unlockDocument(java.lang.String,
java.lang.String)
public SaWsAccessData getAccessData(int token, String xhdoc) throws SaWsException
token
- to identify the right sessionxhdoc
- The ID of the document (XHDOC)SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.getDocumentAccessData(java.lang.String)
public SaWsLockInfo getLockInfo(int token, String sysRowId) throws SaWsAuthenticationException, SaWsLockException, SaWsRepositoryException, SaWsException
token
- to identify the right sessionsysRowId
- Document SysRowIdSaWsAuthenticationException
- if an authentication error occurs.SaWsLockException
- if a lock error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.getLockInfo(java.lang.String)
public List<SaWsDocumentInfo> query(int token, SaWsQueryInfo queryInfo) throws SaWsException
SaWsException
public List<SaWsPropertyValue[]> search(int token, String hql) throws SaWsException
token
- needed to get the right sessionhql
- the Hibernate query - hql.SaWsPropertyValue
object.SaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.searchHQL(SaQueryInfo)
public List<SaWsPropertyValue[]> searchWithPaging(int token, String hql, int offset, int maxNumber) throws SaWsException
token
- needed to get the right sessionhql
- the Hibernate query - hql.offset
- The index to start the results from.maxNumber
- The maximum number of results to be in the response.SaWsPropertyValue
object.SaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
SaClassicConnector.searchHQL(SaQueryInfo)
protected List<SaWsPropertyValue[]> search(int token, com.saperion.rmi.SaQueryInfo query) throws SaWsException
token
- The authentication token.query
- The SaQueryInfo.SaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
- if an exception occurs.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.