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) |
Modifier and Type | Method and Description |
---|---|
protected AppInstallationEntity |
doUninstall(AppInstallationEntity appInstallation) |
com.google.common.base.Optional<AppInstallationEntity> |
findPreviousAppInstallation(GUID shopGUID,
OfficialApp officialApp) |
com.google.common.base.Optional<AppInstallationEntity> |
getAppInstallation(GUID shopGUID,
OfficialApp officialApp) |
AppInstallationActions |
getAppInstallationActions(GUID shopGUID,
java.lang.String businessUnit,
java.lang.String shopType,
OfficialApp officialApp,
java.net.URI actionUrl) |
java.util.List<OfficialApp> |
getAppsByInstallationState(GUID shopGUID,
AppInstallation.State appInstallationState) |
void |
save(AppInstallationEntity appInstallation) |
void |
uninstall(GUID shopGUID,
OfficialApp officialApp) |
protected AppInstallationEntity |
validateAppInstallationState(AppInstallationEntity appInstallation,
AppInstallation.State... allowedStates) |
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 void save(@NotNull AppInstallationEntity appInstallation)
public void 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)