public class ConfigurationMigrationApi extends Object
ConfigurationApi and shall be used by all iPros.
Internally, the deprecated ConfigurationAPI is mapped to the VariantAPI and data is stored in the new format.| Constructor and Description |
|---|
ConfigurationMigrationApi()
Creates a new instance of
ConfigurationApi. |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createConfiguration(String payload,
String configId)
Creates the configuration for a given configurationId.
|
javax.ws.rs.core.Response |
createConfigurations(String payload)
Creates all the configurations.
|
javax.ws.rs.core.Response |
deleteAllConfigurations()
Deletes all the configurations.
|
javax.ws.rs.core.Response |
deleteConfigurationForID(String configId)
Deletes the configuration for a given configurationId.
|
javax.ws.rs.core.Response |
deleteFrontendConfigForId(String configId)
Deletes the common configuration for a given configurationId.
|
javax.ws.rs.core.Response |
deleteTextInterpretationsForConfigId(String configId)
Deletes the text-interpretations for all languages for a given configurationId.
|
javax.ws.rs.core.Response |
deleteTextInterpretationsForConfigIdandLangId(String configId,
String langId)
Deletes all the text interpretations for a given configurationId and language.
|
javax.ws.rs.core.Response |
deleteTextInterpretationsForConfigIdandLangIDandKey(String configId,
String langId,
String key)
Deletes the text value for a given configurationId,language and key.
|
javax.ws.rs.core.Response |
fetchConfigurations()
Fetches all the configurations.
|
javax.ws.rs.core.Response |
fetchConfigurationWithId(String configId,
String acceptLanguage,
String sapRequestLanguage,
String locale)
Fetches the configuration for a given configurationId.
|
javax.ws.rs.core.Response |
getFrontendConfigForId(String configId)
Fetches the common configuration for a given configurationId.
|
javax.ws.rs.core.Response |
getTextInterpretationsForConfigId(String configId,
String acceptLanguage,
String sapRequestLanguage,
String locale)
Fetches text-interpretations for a given configurationId.
|
javax.ws.rs.core.Response |
getTextInterpretationsForConfigIdandLangId(String configId,
String langId)
Fetches all the text-interpretations for a given configurationId and language.
|
javax.ws.rs.core.Response |
getTextInterpretationsForConfigIdandLangIDandKey(String configId,
String langId,
String key)
Fetch text value for a given configurationId,language and key.
|
javax.ws.rs.core.Response |
updateConfiguration(String payload)
Updates all the configurations.
|
javax.ws.rs.core.Response |
updateKeysForConfigIdandLangId(String configId,
String langId,
String payload)
Updates the key-text interpretations for a given configurationId and language.
|
javax.ws.rs.core.Response |
updateTextInterpretationsForConfigIdandLangIDandKey(String configId,
String langId,
String key,
String payload)
Updates the text value for a given configurationId,language and key.
|
public ConfigurationMigrationApi()
ConfigurationApi.public javax.ws.rs.core.Response fetchConfigurations()
throws PdmsBackendException
PdmsBackendException - if there is an error while fetching the configurationspublic javax.ws.rs.core.Response updateConfiguration(String payload) throws PdmsBackendException
payload - the jsonArray which holds configuration(s) in string format.PdmsBackendException - if there is an error while updating the configurationspublic javax.ws.rs.core.Response createConfigurations(String payload) throws PdmsBackendException
payload - the jsonArray which holds configuration(s) in string format.PdmsBackendException - if there is an error while creating the configurationspublic javax.ws.rs.core.Response deleteAllConfigurations()
throws PdmsBackendException
PdmsBackendException - if there is an error while deleting the configurationspublic javax.ws.rs.core.Response fetchConfigurationWithId(String configId, @HeaderParam(value="accept-language") String acceptLanguage, String sapRequestLanguage, String locale) throws PdmsBackendException
configId - the unique configurationId per application.acceptLanguage - the accept-language header of the HTTP requestsapRequestLanguage - the x-sap-request-language query parameterlocale - the locale query parameterPdmsBackendException - if there is an error while fetching the configurationspublic javax.ws.rs.core.Response createConfiguration(String payload, String configId) throws PdmsBackendException
payload - the configurationObject that is to be created.configId - the unique configurationId per application.PdmsBackendException - if there is an error while creating the configurationpublic javax.ws.rs.core.Response deleteConfigurationForID(String configId) throws PdmsBackendException
configId - the unique configurationId per application.PdmsBackendException - if there is an error while deleting the configurationpublic javax.ws.rs.core.Response getTextInterpretationsForConfigId(String configId, @HeaderParam(value="accept-language") String acceptLanguage, String sapRequestLanguage, String locale) throws PdmsBackendException
configId - the unique configurationId per application.acceptLanguage - the accept-language header value of the HTTP requestsapRequestLanguage - the x-sap-request-language query parameterlocale - the locale query parameterPdmsBackendException - if there is an error while fetching the configurationpublic javax.ws.rs.core.Response deleteTextInterpretationsForConfigId(String configId) throws PdmsBackendException
configId - the unique configurationId per application.PdmsBackendException - if there is an error while deleting the configurationpublic javax.ws.rs.core.Response getTextInterpretationsForConfigIdandLangId(String configId, String langId) throws PdmsBackendException
configId - the unique configurationId per application.langId - the language identifier.PdmsBackendException - if there is an error while fetching the configurationpublic javax.ws.rs.core.Response updateKeysForConfigIdandLangId(String configId, String langId, String payload) throws PdmsBackendException
configId - the unique configurationId per application.langId - the language identifier.payload - the string which contains all the key-text values to be updated.PdmsBackendException - if there is an error while creating the configurationpublic javax.ws.rs.core.Response deleteTextInterpretationsForConfigIdandLangId(String configId, String langId) throws PdmsBackendException
configId - the unique configurationId per application.langId - the language identifier.PdmsBackendException - if there is an error while deleting the configurationpublic javax.ws.rs.core.Response getTextInterpretationsForConfigIdandLangIDandKey(String configId, String langId, String key) throws PdmsBackendException
configId - the unique configurationId per application.langId - the language identifier.key - the label identifier for the text in text-interpretations.PdmsBackendException - if there is an error while fetching the configurationpublic javax.ws.rs.core.Response updateTextInterpretationsForConfigIdandLangIDandKey(String configId, String langId, String key, String payload) throws PdmsBackendException
configId - the unique configurationId per application.langId - the language identifier.key - the label identifier for the text in text-interpretations.payload - the string which holds the key-text value to be updated.PdmsBackendException - if there is an error while creating the configurationpublic javax.ws.rs.core.Response deleteTextInterpretationsForConfigIdandLangIDandKey(String configId, String langId, String key) throws PdmsBackendException
configId - the unique configurationId per application.langId - the language identifier.key - the label identifier for the text in text-interpretations.PdmsBackendException - if there is an error while deleting the configurationpublic javax.ws.rs.core.Response getFrontendConfigForId(String configId) throws PdmsBackendException
configId - the unique configurationId per application.PdmsBackendException - if there is an error while fetching the configurationpublic javax.ws.rs.core.Response deleteFrontendConfigForId(String configId) throws PdmsBackendException
configId - the unique configurationId per application.PdmsBackendException - if there is an error while deleting the configurationCopyright © 2016 SAP. All Rights Reserved.