@Path(value="appstore/{shopGUID}/installations")
public class AppInstallationResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private OAuth2AppInstallationService |
oauth2AppInstallationService |
private SoapAppInstallationService |
soapAppInstallationService |
private javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
AppInstallationResource(OAuth2AppInstallationService oauth2AppInstallationService,
SoapAppInstallationService soapAppInstallationService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createInstallation(GUID shopGUID,
OfficialApp officialApp,
java.lang.String scope,
java.lang.String businessUnit,
java.lang.String shopType) |
AppInstallationActions |
getAppInstallationActions(GUID shopGUID,
OfficialApp officialApp,
java.util.Locale locale,
java.lang.String businessUnit,
java.lang.String shopType) |
javax.ws.rs.core.Response |
getInstalledAppsByShopGUIDAndState(GUID shopGUID,
AppInstallation.State state,
java.util.Locale locale) |
javax.ws.rs.core.Response |
uninstallApp(GUID shopGUID,
OfficialApp officialApp) |
private final OAuth2AppInstallationService oauth2AppInstallationService
private final SoapAppInstallationService soapAppInstallationService
@Context private javax.ws.rs.core.UriInfo uriInfo
@Inject public AppInstallationResource(OAuth2AppInstallationService oauth2AppInstallationService, SoapAppInstallationService soapAppInstallationService)
@GET @Produces(value="application/json") public javax.ws.rs.core.Response getInstalledAppsByShopGUIDAndState(@PathParam(value="shopGUID") GUID shopGUID, @NotNull @QueryParam(value="state") @DefaultValue(value="INSTALLED") AppInstallation.State state, @NotNull @QueryParam(value="locale") java.util.Locale locale)
@GET @Path(value="{appId}/actions") @Produces(value="application/json") public AppInstallationActions getAppInstallationActions(@PathParam(value="shopGUID") GUID shopGUID, @PathParam(value="appId") OfficialApp officialApp, @QueryParam(value="locale") java.util.Locale locale, @NotNull @QueryParam(value="businessUnit") java.lang.String businessUnit, @NotNull @QueryParam(value="shopType") java.lang.String shopType)
@POST @Path(value="{appId}") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createInstallation(@PathParam(value="shopGUID") GUID shopGUID, @PathParam(value="appId") OfficialApp officialApp, @QueryParam(value="scope") java.lang.String scope, @NotNull @QueryParam(value="businessUnit") java.lang.String businessUnit, @NotNull @QueryParam(value="shopType") java.lang.String shopType)
@DELETE @Path(value="{appId}") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response uninstallApp(@PathParam(value="shopGUID") GUID shopGUID, @PathParam(value="appId") OfficialApp officialApp)