Package com.saperion.ngc.model.users
Interface UserManagementService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
UserManagementClassicConnectorService
public interface UserManagementService extends Service
Service that provides methods that provide access to the user-management API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.saperion.jcs.modules.users.api.User
findUserById(int id)
Finds a user by ID.com.saperion.jcs.modules.users.api.User
findUserByName(java.lang.String name)
Finds a user by name.
-
-
-
Method Detail
-
findUserByName
com.saperion.jcs.modules.users.api.User findUserByName(java.lang.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
-
-