Package com.saperion.ngc.model.users
Interface UserManagementService
- All Superinterfaces:
Service
- All Known Implementing Classes:
UserManagementClassicConnectorService
Service that provides methods that provide access to the user-management API.
-
Method Summary
Modifier and TypeMethodDescriptioncom.saperion.jcs.modules.users.api.User
findUserById
(int id) Finds a user by ID.com.saperion.jcs.modules.users.api.User
findUserByName
(String name) Finds a user by name.
-
Method Details
-
findUserByName
com.saperion.jcs.modules.users.api.User findUserByName(String name) throws AuthenticationException, UserSearchFailedException Finds a user by name.- Parameters:
name
- name to search for- Returns:
- found user or null if not found
- Throws:
AuthenticationException
- not logged in or insufficient rightsUserSearchFailedException
- error when searching for user
-
findUserById
com.saperion.jcs.modules.users.api.User findUserById(int id) throws AuthenticationException, UserSearchFailedException Finds a user by ID.- Parameters:
id
- ID to search for- Returns:
- found user or null if not found
- Throws:
AuthenticationException
- not logged in or insufficient rightsUserSearchFailedException
- error when searching for user
-