Package com.saperion.ws
Class SaWsConfigurationService
java.lang.Object
com.saperion.ws.AbstractService
com.saperion.ws.SaWsConfigurationService
This class wraps all methods of the SaClassicConnector. It parses the information, which is
fetched from the server to classes usable 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 TypeMethodDescriptiongetConfiguration
(String token, String section) Reads the configuration properties from the backend system.getDefinition
(String token, String definition) Reads the DDC definition of one database with the given name.String[]
getDefinitions
(String token) Reads the registered DDC names from the repository.Methods inherited from class com.saperion.ws.AbstractService
addToRequest, getConnection, getSession, isConfigured
-
Constructor Details
-
SaWsConfigurationService
public SaWsConfigurationService()Constructor.
-
-
Method Details
-
getDefinitions
public String[] getDefinitions(String token) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException Reads the registered DDC names from the repository.- Parameters:
token
- to identify the session- Returns:
- Array of DDC names
- Throws:
SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
- See Also:
-
SaClassicConnector.getDefinitions()
-
getDefinition
public List<SaWsFieldDescription> getDefinition(String token, String definition) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException Reads the DDC definition of one database with the given name.- Parameters:
token
- to identify the sessiondefinition
- Database name- Returns:
- Array of field definitions
- Throws:
SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
- See Also:
-
SaClassicConnector.getDBDefinition(java.lang.String)
-
getConfiguration
public List<SaWsProperty> getConfiguration(String token, String section) throws SaWsRepositoryException, SaWsAuthenticationException, SaWsException Reads the configuration properties from the backend system.- Parameters:
token
- to identify the sessionsection
- Section in program.ini- Returns:
- Configuration properties
- Throws:
SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
- See Also:
-
SaClassicConnector.getConfiguration(java.lang.String)
-