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 ofUserManagementServiceforSaClassicConnector.
-
-
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.UserfindUserById(int id)Finds a user by ID.com.saperion.jcs.modules.users.api.UserfindUserByName(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 SystemExceptionDefault constructor to be called from within ZK-context.- Throws:
SystemException- exception when instantiationUserManagementinstance
-
UserManagementClassicConnectorService
public UserManagementClassicConnectorService(javax.servlet.http.HttpSession session) throws SystemExceptionConstructor to be called from without ZK-context.- Parameters:
session- current session- Throws:
SystemException- exception when instantiationUserManagementinstance
-
-
Method Detail
-
findUserByName
public com.saperion.jcs.modules.users.api.User findUserByName(java.lang.String name) throws AuthenticationException, UserSearchFailedExceptionDescription copied from interface:UserManagementServiceFinds a user by name.- Specified by:
findUserByNamein 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, UserSearchFailedExceptionDescription copied from interface:UserManagementServiceFinds a user by ID.- Specified by:
findUserByIdin 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
-
-