Package com.saperion.ws
Class SaWsLookupService
- java.lang.Object
-
- com.saperion.ws.AbstractService
-
- com.saperion.ws.SaWsLookupService
-
public class SaWsLookupService extends AbstractService
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 Constructor Description SaWsLookupService()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
createEntry(java.lang.String token, java.lang.String definition, java.util.List<SaWsProperty> metadatas)
Creates a new lookup entry on the backend system with the given metadata and content.void
deleteEntry(java.lang.String token, java.lang.String definition, java.lang.String sysrowid)
Deletes a lookup entry from the backend system.void
updateEntry(java.lang.String token, java.lang.String definition, java.lang.String sysrowid, java.util.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
-
-
-
-
Method Detail
-
createEntry
public java.lang.String createEntry(java.lang.String token, java.lang.String definition, java.util.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(java.lang.String token, java.lang.String definition, java.lang.String sysrowid, java.util.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(java.lang.String token, java.lang.String definition, java.lang.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)
-
-