Package com.saperion.ngc.model.users
Class UserManagementClassicConnectorService
java.lang.Object
com.saperion.ngc.model.ClassicConnectorService
com.saperion.ngc.model.users.UserManagementClassicConnectorService
- All Implemented Interfaces:
Service
,UserManagementService
public class UserManagementClassicConnectorService
extends ClassicConnectorService
implements UserManagementService
Implementation of
UserManagementService
for SaClassicConnector
.-
Field Summary
Fields inherited from class com.saperion.ngc.model.ClassicConnectorService
ddcCache
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to be called from within ZK-context.UserManagementClassicConnectorService
(jakarta.servlet.http.HttpSession session) Constructor to be called from without ZK-context. -
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.Methods inherited from class com.saperion.ngc.model.ClassicConnectorService
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
-
Constructor Details
-
UserManagementClassicConnectorService
Default constructor to be called from within ZK-context.- Throws:
SystemException
- exception when instantiationUserManagement
instance
-
UserManagementClassicConnectorService
public UserManagementClassicConnectorService(jakarta.servlet.http.HttpSession session) throws SystemException Constructor to be called from without ZK-context.- Parameters:
session
- current session- Throws:
SystemException
- exception when instantiationUserManagement
instance
-
-
Method Details
-
findUserByName
public com.saperion.jcs.modules.users.api.User findUserByName(String name) throws AuthenticationException, UserSearchFailedException Description copied from interface:UserManagementService
Finds a user by name.- Specified by:
findUserByName
in interfaceUserManagementService
- 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
public com.saperion.jcs.modules.users.api.User findUserById(int id) throws AuthenticationException, UserSearchFailedException Description copied from interface:UserManagementService
Finds a user by ID.- Specified by:
findUserById
in interfaceUserManagementService
- 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
-