Class SuperUserApplicationConfigurationService
java.lang.Object
dev.getelements.elements.service.application.SuperUserApplicationConfigurationService
- All Implemented Interfaces:
ApplicationConfigurationService
public class SuperUserApplicationConfigurationService
extends Object
implements ApplicationConfigurationService
Created by patricktwohig on 7/13/15.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApplicationProfiles(String applicationNameOrId, int offset, int count) Gets the applications registered in the databse given the offset and count.getApplicationProfiles(String applicationNameOrId, int offset, int count, String search) Gets the applications registered in the database given the offset and count.jakarta.inject.Provider<Transaction> voidsetTransactionProvider(jakarta.inject.Provider<Transaction> transactionProvider) <T extends ApplicationConfiguration>
TupdateProductBundles(String applicationNameOrId, String applicationConfigurationNameOrId, Class<T> configurationClass, List<ProductBundle> productBundles) Updates the product bundles for the givenApplicationConfigurationinstance.
-
Constructor Details
-
SuperUserApplicationConfigurationService
public SuperUserApplicationConfigurationService()
-
-
Method Details
-
getApplicationProfiles
public Pagination<ApplicationConfiguration> getApplicationProfiles(String applicationNameOrId, int offset, int count) Description copied from interface:ApplicationConfigurationServiceGets the applications registered in the databse given the offset and count.- Specified by:
getApplicationProfilesin interfaceApplicationConfigurationService- Parameters:
applicationNameOrId- theApplicationname or idoffset- the offsetcount- the count- Returns:
- a
PaginationofApplicationinstances
-
getApplicationProfiles
public Pagination<ApplicationConfiguration> getApplicationProfiles(String applicationNameOrId, int offset, int count, String search) Description copied from interface:ApplicationConfigurationServiceGets the applications registered in the database given the offset and count.- Specified by:
getApplicationProfilesin interfaceApplicationConfigurationService- Parameters:
applicationNameOrId- theApplicationname or idoffset- the offsetcount- the countsearch- a query to filter the results- Returns:
- a
PaginationofApplicationinstances
-
updateProductBundles
public <T extends ApplicationConfiguration> T updateProductBundles(String applicationNameOrId, String applicationConfigurationNameOrId, Class<T> configurationClass, List<ProductBundle> productBundles) Description copied from interface:ApplicationConfigurationServiceUpdates the product bundles for the givenApplicationConfigurationinstance.This method writes both to the embedded list on the
ApplicationConfigurationdocument (for backward compatibility) and to the standaloneproduct_bundlecollection viaProductBundleDao.- Specified by:
updateProductBundlesin interfaceApplicationConfigurationService- Parameters:
applicationNameOrId- theApplicationname or idapplicationConfigurationNameOrId- theApplicationConfigurationname or idconfigurationClass- theClassto updateproductBundles- the product bundles to update- Returns:
- the updated
ApplicationConfigurationinstance
-
getTransactionProvider
-
setTransactionProvider
@Inject public void setTransactionProvider(jakarta.inject.Provider<Transaction> transactionProvider)
-