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 ofUserManagementService
forSaClassicConnector
.
-
-
Field Summary
-
Fields inherited from class com.saperion.ngc.model.ClassicConnectorService
ddcCache
-
-
Constructor Summary
Constructors Constructor Description UserManagementClassicConnectorService()
Default constructor to be called from within ZK-context.UserManagementClassicConnectorService(javax.servlet.http.HttpSession session)
Constructor to be called from without ZK-context.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class com.saperion.ngc.model.ClassicConnectorService
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
-
-
-
-
Constructor Detail
-
UserManagementClassicConnectorService
public UserManagementClassicConnectorService() throws SystemException
Default constructor to be called from within ZK-context.- Throws:
SystemException
- exception when instantiationUserManagement
instance
-
UserManagementClassicConnectorService
public UserManagementClassicConnectorService(javax.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 Detail
-
findUserByName
public com.saperion.jcs.modules.users.api.User findUserByName(java.lang.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
-
-