public class UserServiceInternalImpl extends Object implements UserServiceInternal
| Constructor and Description |
|---|
UserServiceInternalImpl() |
public User getUserByIdOrUsername(long userId, String username) throws ServiceLayerException, UserNotFoundException
getUserByIdOrUsername in interface UserServiceInternalServiceLayerExceptionUserNotFoundExceptionpublic List<User> getUsersByIdOrUsername(List<Long> userIds, List<String> usernames) throws ServiceLayerException, UserNotFoundException
getUsersByIdOrUsername in interface UserServiceInternalServiceLayerExceptionUserNotFoundExceptionpublic List<User> getAllUsersForSite(long orgId, List<String> groupNames, int offset, int limit, String sort) throws ServiceLayerException
getAllUsersForSite in interface UserServiceInternalServiceLayerExceptionpublic List<User> getAllUsers(int offset, int limit, String sort) throws ServiceLayerException
getAllUsers in interface UserServiceInternalServiceLayerExceptionpublic int getAllUsersForSiteTotal(long orgId,
String siteId)
throws ServiceLayerException
getAllUsersForSiteTotal in interface UserServiceInternalServiceLayerExceptionpublic int getAllUsersTotal()
throws ServiceLayerException
getAllUsersTotal in interface UserServiceInternalServiceLayerExceptionpublic User createUser(User user) throws UserAlreadyExistsException, ServiceLayerException
createUser in interface UserServiceInternalUserAlreadyExistsExceptionServiceLayerExceptionpublic boolean userExists(long userId,
String username)
throws ServiceLayerException
userExists in interface UserServiceInternalServiceLayerExceptionpublic void updateUser(User user) throws UserNotFoundException, ServiceLayerException
updateUser in interface UserServiceInternalUserNotFoundExceptionServiceLayerExceptionpublic void deleteUsers(List<Long> userIds, List<String> usernames) throws UserNotFoundException, ServiceLayerException
deleteUsers in interface UserServiceInternalUserNotFoundExceptionServiceLayerExceptionpublic List<User> enableUsers(List<Long> userIds, List<String> usernames, boolean enabled) throws ServiceLayerException, UserNotFoundException
enableUsers in interface UserServiceInternalServiceLayerExceptionUserNotFoundExceptionpublic List<Group> getUserGroups(long userId, String username) throws UserNotFoundException, ServiceLayerException
getUserGroups in interface UserServiceInternalUserNotFoundExceptionServiceLayerExceptionpublic boolean isUserMemberOfGroup(String username, String groupName) throws UserNotFoundException, ServiceLayerException
isUserMemberOfGroup in interface UserServiceInternalUserNotFoundExceptionServiceLayerExceptionpublic boolean changePassword(String username, String current, String newPassword) throws PasswordDoesNotMatchException, UserExternallyManagedException, ServiceLayerException
changePassword in interface UserServiceInternalPasswordDoesNotMatchExceptionUserExternallyManagedExceptionServiceLayerExceptionpublic boolean setUserPassword(String username, String newPassword) throws UserNotFoundException, UserExternallyManagedException, ServiceLayerException
setUserPassword in interface UserServiceInternalUserNotFoundExceptionUserExternallyManagedExceptionServiceLayerExceptionpublic User getUserByGitName(String gitName)
UserServiceInternalgetUserByGitName in interface UserServiceInternalgitName - first and last name separated with ' 'public UserDAO getUserDao()
public void setUserDao(UserDAO userDao)
public GroupServiceInternal getGroupServiceInternal()
public void setGroupServiceInternal(GroupServiceInternal groupServiceInternal)
public StudioConfiguration getStudioConfiguration()
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
Copyright © 2023 CrafterCMS. All rights reserved.