org.molgenis.data.security.user.UserService 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.user;
import java.util.List;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.molgenis.data.security.auth.User;
public interface UserService {
List getUsers();
/** Returns e-mail addresses of super users */
List getSuEmailAddresses();
/** Returns the given user */
@Nullable
@CheckForNull
User getUser(String username);
/**
* Find a user by it's email.
*
* @return the user or null if not found
*/
User getUserByEmail(String email);
/** Update user */
void update(User user);
}