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

io.corbel.iam.service.GroupService Maven / Gradle / Ivy

There is a newer version: 1.44.0
Show newest version
package io.corbel.iam.service;

import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.Set;

import io.corbel.iam.exception.GroupAlreadyExistsException;
import io.corbel.iam.exception.NotExistentScopeException;
import io.corbel.iam.model.Group;
import io.corbel.lib.queries.request.Pagination;
import io.corbel.lib.queries.request.ResourceQuery;
import io.corbel.lib.queries.request.Sort;

public interface GroupService {

    Optional getById(String id);

    Optional getById(String id, String domain);

    List getAll(String domain, List resourceQueries, Pagination pagination, Sort sort);

    Set getGroupScopes(String domain, Collection groups);

    Group create(Group group) throws GroupAlreadyExistsException, NotExistentScopeException;

    void addScopes(String id, String... scopes) throws NotExistentScopeException;

    void removeScopes(String id, String... scopes);

    void delete(String id, String domain);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy