blob: 368c4f84ded5d32389b450aef58c047ee867a1c0 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ranger.usergroupsync;
import org.apache.ranger.unixusersync.model.UgsyncAuditInfo;
import java.util.List;
import java.util.Map;
public interface UserGroupSink {
void init() throws Throwable;
void addOrUpdateUser(String user, List<String> groups) throws Throwable;
void addOrUpdateUser(String user) throws Throwable;
void addOrUpdateGroup(String group, Map<String, String> groupAttrs) throws Throwable;
void addOrUpdateGroup(String group, List<String> users) throws Throwable;
void postUserGroupAuditInfo(UgsyncAuditInfo ugsyncAuditInfo) throws Throwable;
void addOrUpdateUser(String user, Map<String, String> userAttrs, List<String> groups) throws Throwable;
void addOrUpdateGroup(String group, Map<String, String> groupAttrs, List<String> users) throws Throwable;
}