Class UserServiceImpl
- java.lang.Object
-
- org.exoplatform.task.service.impl.UserServiceImpl
-
- All Implemented Interfaces:
UserService
@Singleton public class UserServiceImpl extends Object implements UserService
- Author:
- Tuyen Nguyen The.
-
-
Constructor Summary
Constructors Constructor Description UserServiceImpl(org.exoplatform.services.organization.OrganizationService orgService, org.exoplatform.social.core.manager.IdentityManager idMgr, DAOHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.commons.utils.ListAccess<User>findUserByName(String keyword)For now, this method is used only for search user in assignee, permission or mention.UserSettinggetUserSetting(String username)TimeZonegetUserTimezone(String username)voidhideProject(org.exoplatform.services.security.Identity identity, Long projectId, boolean hide)UserloadUser(String username)voidshowHiddenLabel(String username, boolean show)voidshowHiddenProject(String username, boolean show)
-
-
-
Constructor Detail
-
UserServiceImpl
public UserServiceImpl(org.exoplatform.services.organization.OrganizationService orgService, org.exoplatform.social.core.manager.IdentityManager idMgr, DAOHandler handler)
-
-
Method Detail
-
loadUser
public User loadUser(String username)
- Specified by:
loadUserin interfaceUserService
-
findUserByName
public org.exoplatform.commons.utils.ListAccess<User> findUserByName(String keyword)
Description copied from interface:UserServiceFor now, this method is used only for search user in assignee, permission or mention. These function use username, fullName and avatar, so some other infos will be null to avoid recall organizationService- Specified by:
findUserByNamein interfaceUserService- Parameters:
keyword- name of the user- Returns:
- List of users
-
getUserSetting
public UserSetting getUserSetting(String username)
- Specified by:
getUserSettingin interfaceUserService
-
hideProject
public void hideProject(org.exoplatform.services.security.Identity identity, Long projectId, boolean hide) throws EntityNotFoundException, NotAllowedOperationOnEntityException- Specified by:
hideProjectin interfaceUserService- Throws:
EntityNotFoundExceptionNotAllowedOperationOnEntityException
-
showHiddenProject
public void showHiddenProject(String username, boolean show)
- Specified by:
showHiddenProjectin interfaceUserService
-
showHiddenLabel
public void showHiddenLabel(String username, boolean show)
- Specified by:
showHiddenLabelin interfaceUserService
-
getUserTimezone
public TimeZone getUserTimezone(String username)
- Specified by:
getUserTimezonein interfaceUserService
-
-