public class UserServiceInternalImpl extends Object implements UserServiceInternal
Constructor and Description |
---|
UserServiceInternalImpl() |
public User getUserByIdOrUsername(long userId, String username) throws ServiceLayerException, UserNotFoundException
getUserByIdOrUsername
in interface UserServiceInternal
ServiceLayerException
UserNotFoundException
public List<User> getUsersByIdOrUsername(List<Long> userIds, List<String> usernames) throws ServiceLayerException, UserNotFoundException
getUsersByIdOrUsername
in interface UserServiceInternal
ServiceLayerException
UserNotFoundException
public List<User> getAllUsersForSite(long orgId, List<String> groupNames, int offset, int limit, String sort) throws ServiceLayerException
getAllUsersForSite
in interface UserServiceInternal
ServiceLayerException
public List<User> getAllUsers(int offset, int limit, String sort) throws ServiceLayerException
getAllUsers
in interface UserServiceInternal
ServiceLayerException
public int getAllUsersForSiteTotal(long orgId, String siteId) throws ServiceLayerException
getAllUsersForSiteTotal
in interface UserServiceInternal
ServiceLayerException
public int getAllUsersTotal() throws ServiceLayerException
getAllUsersTotal
in interface UserServiceInternal
ServiceLayerException
public User createUser(User user) throws UserAlreadyExistsException, ServiceLayerException
createUser
in interface UserServiceInternal
UserAlreadyExistsException
ServiceLayerException
public boolean userExists(long userId, String username) throws ServiceLayerException
userExists
in interface UserServiceInternal
ServiceLayerException
public void updateUser(User user) throws UserNotFoundException, ServiceLayerException
updateUser
in interface UserServiceInternal
UserNotFoundException
ServiceLayerException
public void deleteUsers(List<Long> userIds, List<String> usernames) throws UserNotFoundException, ServiceLayerException
deleteUsers
in interface UserServiceInternal
UserNotFoundException
ServiceLayerException
public List<User> enableUsers(List<Long> userIds, List<String> usernames, boolean enabled) throws ServiceLayerException, UserNotFoundException
enableUsers
in interface UserServiceInternal
ServiceLayerException
UserNotFoundException
public List<Group> getUserGroups(long userId, String username) throws UserNotFoundException, ServiceLayerException
getUserGroups
in interface UserServiceInternal
UserNotFoundException
ServiceLayerException
public boolean isUserMemberOfGroup(String username, String groupName) throws UserNotFoundException, ServiceLayerException
isUserMemberOfGroup
in interface UserServiceInternal
UserNotFoundException
ServiceLayerException
public boolean changePassword(String username, String current, String newPassword) throws PasswordDoesNotMatchException, UserExternallyManagedException, ServiceLayerException
changePassword
in interface UserServiceInternal
PasswordDoesNotMatchException
UserExternallyManagedException
ServiceLayerException
public boolean setUserPassword(String username, String newPassword) throws UserNotFoundException, UserExternallyManagedException, ServiceLayerException
setUserPassword
in interface UserServiceInternal
UserNotFoundException
UserExternallyManagedException
ServiceLayerException
public User getUserByGitName(String gitName)
UserServiceInternal
getUserByGitName
in interface UserServiceInternal
gitName
- 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.