@Singleton
public class BundleService
extends java.lang.Object
| Constructor and Description |
|---|
BundleService(org.mongojack.JacksonDBCollection<ConfigurationBundle,org.bson.types.ObjectId> dbCollection,
BundleImporterProvider bundleImporterProvider,
BundleExporterProvider bundleExporterProvider) |
BundleService(MongoJackObjectMapperProvider mapperProvider,
MongoConnection mongoConnection,
BundleImporterProvider bundleImporterProvider,
BundleExporterProvider bundleExporterProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConfigurationBundle(ConfigurationBundle bundle,
User actingUser) |
void |
applyConfigurationBundle(java.lang.String bundleId,
User actingUser) |
int |
delete(java.lang.String bundleId) |
ConfigurationBundle |
exportConfigurationBundle(ExportBundle exportBundle) |
ConfigurationBundle |
insert(ConfigurationBundle bundle) |
ConfigurationBundle |
load(java.lang.String bundleId) |
java.util.Set<ConfigurationBundle> |
loadAll() |
ConfigurationBundle |
update(java.lang.String bundleId,
ConfigurationBundle bundle) |
@Inject public BundleService(MongoJackObjectMapperProvider mapperProvider, MongoConnection mongoConnection, BundleImporterProvider bundleImporterProvider, BundleExporterProvider bundleExporterProvider)
public BundleService(org.mongojack.JacksonDBCollection<ConfigurationBundle,org.bson.types.ObjectId> dbCollection, BundleImporterProvider bundleImporterProvider, BundleExporterProvider bundleExporterProvider)
public ConfigurationBundle load(java.lang.String bundleId) throws NotFoundException
NotFoundExceptionpublic java.util.Set<ConfigurationBundle> loadAll()
public ConfigurationBundle update(java.lang.String bundleId, ConfigurationBundle bundle)
public ConfigurationBundle insert(ConfigurationBundle bundle)
public int delete(java.lang.String bundleId)
public void applyConfigurationBundle(java.lang.String bundleId,
User actingUser)
throws NotFoundException
NotFoundExceptionpublic void applyConfigurationBundle(ConfigurationBundle bundle, User actingUser)
public ConfigurationBundle exportConfigurationBundle(ExportBundle exportBundle)
Copyright © 2012-2014 TORCH GmbH. All Rights Reserved.