All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.radio.users.NullUserServiceImpl Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
/**
 * This file is part of Graylog.
 *
 * Graylog is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Graylog 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
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Graylog.  If not, see .
 */
package org.graylog2.radio.users;

import org.graylog2.plugin.database.Persisted;
import org.graylog2.plugin.database.ValidationException;
import org.graylog2.plugin.database.users.User;
import org.graylog2.plugin.database.validators.ValidationResult;
import org.graylog2.plugin.database.validators.Validator;
import org.graylog2.shared.security.ldap.LdapEntry;
import org.graylog2.shared.security.ldap.LdapSettings;
import org.graylog2.shared.users.Role;
import org.graylog2.shared.users.UserService;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class NullUserServiceImpl implements UserService {
    @Override
    public User load(String username) {
        return null;
    }

    @Override
    public User create() {
        return null;
    }

    @Override
    public List loadAll() {
        return null;
    }

    @Override
    public User syncFromLdapEntry(LdapEntry userEntry, LdapSettings ldapSettings, String username) {
        return null;
    }

    @Override
    public void updateFromLdap(User user, LdapEntry userEntry, LdapSettings ldapSettings, String username) {

    }

    @Override
    public User getAdminUser() {
        return null;
    }

    @Override
    public  int destroy(T model) {
        return 0;
    }

    @Override
    public  int destroyAll(Class modelClass) {
        return 0;
    }

    @Override
    public  String save(T model) throws ValidationException {
        return null;
    }

    @Override
    public  String saveWithoutValidation(T model) {
        return null;
    }

    @Override
    public  Map> validate(T model, Map fields) {
        return null;
    }

    @Override
    public  Map> validate(T model) {
        return null;
    }

    @Override
    public Map> validate(Map validators, Map fields) {
        return null;
    }

    @Override
    public long count() {
        return 0;
    }

    @Override
    public int delete(String username) {
        return 0;
    }

    @Override
    public Collection loadAllForRole(Role role) {
        return Collections.emptySet();
    }

    @Override
    public List getPermissionsForUser(User user) {
        return Collections.emptyList();
    }

    @Override
    public Set getRoleNames(User user) {
        return Collections.emptySet();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy