@Path(value="appstore/{shopGuid}/installations")
public class AppInstallationResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.google.common.eventbus.EventBus |
eventBus |
private OAuth2AppInstallationService |
oauth2AppInstallationService |
private OfficialAppService |
officialAppService |
private ShopRequestContextServiceForPrivateApiOnly |
shopService |
private SoapAppInstallationService |
soapAppInstallationService |
private javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
AppInstallationResource(OAuth2AppInstallationService oauth2AppInstallationService,
SoapAppInstallationService soapAppInstallationService,
OfficialAppService officialAppService,
ShopRequestContextServiceForPrivateApiOnly shopService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createInstallation(GUID shopGuid,
App app,
java.lang.String scope,
java.lang.String businessUnit,
java.lang.String shopType) |
java.lang.String |
getAccessTokenUrl(ShopRequestContext shopRequestContext) |
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) |
void |
setEventBus(com.google.common.eventbus.EventBus eventBus) |
javax.ws.rs.core.Response |
uninstallApp(GUID shopGuid,
OfficialApp officialApp) |
private final OAuth2AppInstallationService oauth2AppInstallationService
private final SoapAppInstallationService soapAppInstallationService
private final OfficialAppService officialAppService
private final ShopRequestContextServiceForPrivateApiOnly shopService
@Context private javax.ws.rs.core.UriInfo uriInfo
private com.google.common.eventbus.EventBus eventBus
@Inject public AppInstallationResource(OAuth2AppInstallationService oauth2AppInstallationService, SoapAppInstallationService soapAppInstallationService, OfficialAppService officialAppService, ShopRequestContextServiceForPrivateApiOnly shopService)
@Inject public void setEventBus(com.google.common.eventbus.EventBus eventBus)
@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") App app, @QueryParam(value="scope") java.lang.String scope, @NotNull @QueryParam(value="businessUnit") java.lang.String businessUnit, @NotNull @QueryParam(value="shopType") java.lang.String shopType)
public java.lang.String getAccessTokenUrl(ShopRequestContext shopRequestContext)
@DELETE @Path(value="{appId}") @Produces(value="application/json") public javax.ws.rs.core.Response uninstallApp(@PathParam(value="shopGuid") GUID shopGuid, @PathParam(value="appId") OfficialApp officialApp)