org.molgenis.data.security.permission.RoleMembershipService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-data-security Show documentation
Show all versions of molgenis-data-security Show documentation
Security data model and data layer security.
package org.molgenis.data.security.permission;
import java.util.Collection;
import org.molgenis.data.security.auth.Role;
import org.molgenis.data.security.auth.RoleMembership;
import org.molgenis.data.security.auth.User;
public interface RoleMembershipService {
void addUserToRole(String username, String roleName);
void addUserToRole(final User user, final Role role);
Collection getMemberships(Collection roles);
void removeMembership(final RoleMembership roleMembership);
void updateMembership(RoleMembership roleMembership, Role newRole);
}