public abstract class AbstractAppInstallationService extends java.lang.Object implements AppInstallationService
Modifier and Type | Field and Description |
---|---|
protected javax.inject.Provider<AppInstallationRepository> |
appInstallationRepositoryProvider |
protected javax.inject.Provider<OfficialAppRepository> |
officialAppRepositoryProvider |
Constructor and Description |
---|
AbstractAppInstallationService(javax.inject.Provider<AppInstallationRepository> appInstallationRepositoryProvider,
javax.inject.Provider<OfficialAppRepository> officialAppRepositoryProvider) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
terminateAllInstallationsOf
protected final javax.inject.Provider<AppInstallationRepository> appInstallationRepositoryProvider
protected final javax.inject.Provider<OfficialAppRepository> officialAppRepositoryProvider
@Inject public AbstractAppInstallationService(javax.inject.Provider<AppInstallationRepository> appInstallationRepositoryProvider, javax.inject.Provider<OfficialAppRepository> officialAppRepositoryProvider)
public java.util.List<OfficialApp> getAppsByInstallationState(@NotNull GUID shopGUID, @NotNull AppInstallation.State appInstallationState)
getAppsByInstallationState
in interface AppInstallationService
public AppInstallationActions getAppInstallationActions(@Nonnull GUID shopGUID, @Nonnull java.lang.String businessUnit, @Nonnull java.lang.String shopType, @Nonnull OfficialApp officialApp, @Nonnull java.net.URI actionUrl)
getAppInstallationActions
in interface AppInstallationService
public com.google.common.base.Optional<AppInstallationEntity> getAppInstallation(@NotNull GUID shopGUID, @NotNull OfficialApp officialApp)
getAppInstallation
in interface AppInstallationService
public com.google.common.base.Optional<AppInstallationEntity> getAppInstallation(@NotNull GUID shopGUID, @NotNull java.lang.String officialAppId)
getAppInstallation
in interface AppInstallationService
public AppInstallationEntity save(@NotNull AppInstallationEntity appInstallation)
public AppInstallationEntity uninstall(@NotNull GUID shopGUID, @NotNull OfficialApp officialApp)
uninstall
in interface AppInstallationService
protected AppInstallationEntity doUninstall(AppInstallationEntity appInstallation)
public final com.google.common.base.Optional<AppInstallationEntity> findPreviousAppInstallation(GUID shopGUID, OfficialApp officialApp)
protected final AppInstallationEntity validateAppInstallationState(AppInstallationEntity appInstallation, AppInstallation.State... allowedStates)