Package org.gbif.api.service.common
Interface UserService
Deprecated.
This read only service used to connect to a Drupal DB is deprecated in favour of the IdentityAccessService.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String username, String password) Deprecated.Authenticates a user.Deprecated.Retrieves a user by its case insensitive username.getBySession
(String session) Deprecated.Retrieves a user by a currently open Drupal (login) session.
-
Method Details
-
authenticate
Deprecated.Authenticates a user.- Parameters:
password
- clear text password- Returns:
- the authenticated user or null if not found or wrong credentials provided
-
get
Deprecated.Retrieves a user by its case insensitive username. -
getBySession
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
-