Package org.gbif.api.service.common
Interface UserService
-
@Deprecated public interface UserService
Deprecated.This read only service used to connect to a Drupal DB is deprecated in favour of the IdentityAccessService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Userauthenticate(String username, String password)Deprecated.Authenticates a user.Userget(String username)Deprecated.Retrieves a user by its case insensitive username.UsergetBySession(String session)Deprecated.Retrieves a user by a currently open Drupal (login) session.
-
-
-
Method Detail
-
authenticate
@Nullable User authenticate(String username, String password)
Deprecated.Authenticates a user.- Parameters:
password- clear text password- Returns:
- the authenticated user or null if not found or wrong credentials provided
-
get
@Nullable User get(String username)
Deprecated.Retrieves a user by its case insensitive username.
-
getBySession
@Nullable User getBySession(String session)
Deprecated.Retrieves a user by a currently open Drupal (login) session. The session name is stored by Drupal clientside in a cookie.- Parameters:
session- the drupal session name as found in the drupal cookie- Returns:
- the user of an existing session or NULL if not found
-
-