@Singleton public class BundleService extends 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(String bundleId,
User actingUser) |
long |
count() |
int |
delete(String bundleId) |
ConfigurationBundle |
exportConfigurationBundle(ExportBundle exportBundle) |
ConfigurationBundle |
findByNameAndCategory(String name,
String category) |
ConfigurationBundle |
insert(ConfigurationBundle bundle) |
ConfigurationBundle |
load(String bundleId) |
Set<ConfigurationBundle> |
loadAll() |
boolean |
update(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(String bundleId) throws NotFoundException
NotFoundException
public ConfigurationBundle findByNameAndCategory(String name, String category)
public Set<ConfigurationBundle> loadAll()
public boolean update(String bundleId, ConfigurationBundle bundle)
public ConfigurationBundle insert(ConfigurationBundle bundle)
public int delete(String bundleId)
public void applyConfigurationBundle(String bundleId, User actingUser) throws NotFoundException
NotFoundException
public void applyConfigurationBundle(ConfigurationBundle bundle, User actingUser)
public ConfigurationBundle exportConfigurationBundle(ExportBundle exportBundle)
public long count()
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.