Package com.saperion.ws
Class SaWsLookupService
java.lang.Object
com.saperion.ws.AbstractService
com.saperion.ws.SaWsLookupService
This class wraps all methods of the SaClassicConnector. It parses the
information, which is fetched from the server to classes useable for web
services. 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.
- Author:
- Daniel Manzke(dam)
-
Field Summary
Fields inherited from class com.saperion.ws.AbstractService
configured
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEntry
(String token, String definition, List<SaWsProperty> metadatas) Creates a new lookup entry on the backend system with the given metadata and content.void
deleteEntry
(String token, String definition, String sysrowid) Deletes a lookup entry from the backend system.void
updateEntry
(String token, String definition, String sysrowid, List<SaWsProperty> metadatas) Updates a lookup entry in the backend system with the given metadata.Methods inherited from class com.saperion.ws.AbstractService
addToRequest, getConnection, getSession, isConfigured
-
Constructor Details
-
SaWsLookupService
public SaWsLookupService()Constructor.
-
-
Method Details
-
createEntry
public String createEntry(String token, String definition, List<SaWsProperty> metadatas) throws SaWsRepositoryException, SaWsAuthenticationException, SaWsDBException, SaWsException Creates a new lookup entry on the backend system with the given metadata and content.- Parameters:
token
- to identify the session.definition
- The name of the database definitionmetadatas
- A properties object containing the metadata- Returns:
- String The SYSROWID of the newly created Lookup Entry
- Throws:
SaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
- if a repository error occurs.- See Also:
-
LookupService.createLookupEntry(String, Properties)
-
updateEntry
public void updateEntry(String token, String definition, String sysrowid, List<SaWsProperty> metadatas) throws SaWsRepositoryException, SaWsAuthenticationException, SaWsDBException, SaWsException Updates a lookup entry in the backend system with the given metadata.- Parameters:
token
- to identify the session.definition
- The name of the database definitionsysrowid
- The ID of the lookup entry which should be udpatedmetadatas
- A properties object containing the metadata- Throws:
SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsDBException
- if a database error occurs.SaWsException
- See Also:
-
LookupService.updateLookupEntry(String, String, Properties)
-
deleteEntry
public void deleteEntry(String token, String definition, String sysrowid) throws SaWsRepositoryException, SaWsAuthenticationException, SaWsDBException, SaWsException Deletes a lookup entry from the backend system.- Parameters:
token
- to identify the session.sysrowid
- sysrowid of the lookup entry in the database- Throws:
SaWsAuthenticationException
- if an authentication error occurs.SaWsDBException
- if a database error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
- See Also:
-
LookupService.deleteLookupEntry(String, String)
-