public class DecoratorServiceImpl extends Object implements DecoratorService
| Constructor and Description |
|---|
DecoratorServiceImpl(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mongoJackObjectMapperProvider) |
| Modifier and Type | Method and Description |
|---|---|
Decorator |
create(String type,
Map<String,Object> config,
int order) |
Decorator |
create(String type,
Map<String,Object> config,
String stream,
int order) |
int |
delete(String id) |
List<Decorator> |
findAll() |
Decorator |
findById(String decoratorId) |
List<Decorator> |
findForGlobal() |
List<Decorator> |
findForStream(String streamId) |
Decorator |
save(Decorator decorator) |
@Inject public DecoratorServiceImpl(MongoConnection mongoConnection, MongoJackObjectMapperProvider mongoJackObjectMapperProvider)
public List<Decorator> findForStream(String streamId)
findForStream in interface DecoratorServicepublic List<Decorator> findForGlobal()
findForGlobal in interface DecoratorServicepublic Decorator findById(String decoratorId) throws NotFoundException
findById in interface DecoratorServiceNotFoundExceptionpublic List<Decorator> findAll()
findAll in interface DecoratorServicepublic Decorator create(String type, Map<String,Object> config, String stream, int order)
create in interface DecoratorServicepublic Decorator create(String type, Map<String,Object> config, int order)
create in interface DecoratorServicepublic Decorator save(Decorator decorator)
save in interface DecoratorServicepublic int delete(String id)
delete in interface DecoratorServiceCopyright © 2012–2021 Graylog, Inc.. All rights reserved.