public class ShopwarePluginApiClient
extends java.lang.Object
| Constructor and Description |
|---|
ShopwarePluginApiClient(ShopwareCredentials credentials)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PluginInformation |
fetchPluginDetails(long pluginId)
Retrieve details for the specified plugin.
|
PluginVersion |
fetchPluginVersionStatus(long pluginId,
long versionId)
Retrieve plugin version information.
|
java.util.List<PluginInformation> |
listPlugins(boolean includeInactive,
int limit,
int offset)
List all the uploaded plugins.
|
java.util.List<ReviewResponse> |
requestReview(long pluginId)
Request plugin version review.
|
PluginVersion |
updatePluginVersion(long pluginId,
PluginVersion version)
Update plugin version informaiton.
|
PluginVersion |
uploadPluginVersion(long pluginId,
byte[] fileContent)
Upload a ZIP file containing the code for a new plugin version.
|
public ShopwarePluginApiClient(ShopwareCredentials credentials)
username - Shopware usernamepassword - Shopware passwordproducerId - Shopware producer idpublic java.util.List<PluginInformation> listPlugins(boolean includeInactive, int limit, int offset)
includeInactive - true, if inactive plugins should be includedlimit - how many results to returnoffset - which result to start onpublic PluginInformation fetchPluginDetails(long pluginId)
pluginId - plugin idpublic PluginVersion uploadPluginVersion(long pluginId, byte[] fileContent)
pluginId - plugin idfileContent - the ZIP file contentspublic PluginVersion updatePluginVersion(long pluginId, PluginVersion version)
pluginId - plugin idversion - plugin version informationpublic PluginVersion fetchPluginVersionStatus(long pluginId, long versionId)
pluginId - plugin idversionId - plugin version idpublic java.util.List<ReviewResponse> requestReview(long pluginId)
pluginId - plugin id