org.graylog2.decorators.DecoratorService Maven / Gradle / Ivy
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* .
*/
package org.graylog2.decorators;
import com.google.inject.ImplementedBy;
import org.graylog2.database.NotFoundException;
import java.util.List;
import java.util.Map;
@ImplementedBy(DecoratorServiceImpl.class)
public interface DecoratorService {
List findForStream(String streamId);
List findForGlobal();
List findAll();
Decorator findById(String decoratorId) throws NotFoundException;
Decorator create(String type, Map config, String stream, int order);
Decorator create(String type, Map config, int order);
Decorator save(Decorator decorator);
int delete(String decoratorId);
}