public class UserDAOImpl extends AbstractDAOImpl implements org.exoplatform.services.organization.UserHandler
| Modifier and Type | Field and Description |
|---|---|
static DateFormat |
dateFormat |
static String |
USER_CREATED_DATE |
static String |
USER_DISPLAY_NAME |
static String |
USER_EMAIL |
static String |
USER_ENABLED |
static String |
USER_FIRST_NAME |
static String |
USER_LAST_LOGIN_TIME |
static String |
USER_LAST_NAME |
static Set<String> |
USER_NON_PROFILE_KEYS |
static String |
USER_ORGANIZATION_ID |
static String |
USER_PASSWORD |
static String |
USER_PASSWORD_SALT |
log, orgService, service_| Constructor and Description |
|---|
UserDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService,
PicketLinkIDMService idmService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserEventListener(org.exoplatform.services.organization.UserEventListener listener) |
boolean |
authenticate(String username,
String password) |
void |
createUser(org.exoplatform.services.organization.User user,
boolean broadcast) |
org.exoplatform.services.organization.User |
createUserInstance() |
org.exoplatform.services.organization.User |
createUserInstance(String username) |
ListAccess<org.exoplatform.services.organization.User> |
findAllUsers() |
ListAccess<org.exoplatform.services.organization.User> |
findAllUsers(org.exoplatform.services.organization.UserStatus userStatus) |
org.exoplatform.services.organization.User |
findUserByEmail(String email) |
org.exoplatform.services.organization.User |
findUserByName(String userName) |
org.exoplatform.services.organization.User |
findUserByName(String userName,
org.exoplatform.services.organization.UserStatus userStatus) |
org.exoplatform.services.organization.User |
findUserByUniqueAttribute(String attributeName,
String attributeValue,
org.exoplatform.services.organization.UserStatus userStatus) |
LazyPageList |
findUsers(org.exoplatform.services.organization.Query q) |
LazyPageList |
findUsersByGroup(String groupId) |
ListAccess<org.exoplatform.services.organization.User> |
findUsersByGroupId(String groupId) |
ListAccess<org.exoplatform.services.organization.User> |
findUsersByGroupId(String groupId,
org.exoplatform.services.organization.UserStatus userStatus) |
ListAccess<org.exoplatform.services.organization.User> |
findUsersByQuery(org.exoplatform.services.organization.Query q) |
ListAccess<org.exoplatform.services.organization.User> |
findUsersByQuery(org.exoplatform.services.organization.Query q,
org.exoplatform.services.organization.UserStatus userStatus) |
PicketLinkIDMOrganizationServiceImpl |
getOrgService() |
org.exoplatform.services.organization.User |
getPopulatedUser(String userName,
org.picketlink.idm.api.IdentitySession session,
org.exoplatform.services.organization.UserStatus userStatus) |
List<org.exoplatform.services.organization.UserEventListener> |
getUserEventListeners() |
LazyPageList<org.exoplatform.services.organization.User> |
getUserPageList(int pageSize) |
boolean |
isUpdateLastLoginTime() |
void |
persistUserInfo(org.exoplatform.services.organization.User user,
org.picketlink.idm.api.IdentitySession session,
boolean isNew) |
void |
populateUser(org.exoplatform.services.organization.User user,
org.picketlink.idm.api.IdentitySession session) |
org.exoplatform.services.organization.User |
removeUser(String userName,
boolean broadcast) |
void |
removeUserEventListener(org.exoplatform.services.organization.UserEventListener listener) |
void |
saveUser(org.exoplatform.services.organization.User user,
boolean broadcast) |
org.exoplatform.services.organization.User |
setEnabled(String userName,
boolean enabled,
boolean broadcast) |
getIdentitySession, handleExceptionpublic static final String USER_PASSWORD
public static final String USER_PASSWORD_SALT
public static final String USER_FIRST_NAME
public static final String USER_LAST_NAME
public static final String USER_DISPLAY_NAME
public static final String USER_EMAIL
public static final String USER_CREATED_DATE
public static final String USER_LAST_LOGIN_TIME
public static final String USER_ORGANIZATION_ID
public static final String USER_ENABLED
public static final DateFormat dateFormat
public UserDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService idmService)
public final List<org.exoplatform.services.organization.UserEventListener> getUserEventListeners()
public void addUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
addUserEventListener in interface org.exoplatform.services.organization.UserHandlerpublic void removeUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
removeUserEventListener in interface org.exoplatform.services.organization.UserHandlerpublic org.exoplatform.services.organization.User createUserInstance()
createUserInstance in interface org.exoplatform.services.organization.UserHandlerpublic org.exoplatform.services.organization.User createUserInstance(String username)
createUserInstance in interface org.exoplatform.services.organization.UserHandlerpublic void createUser(org.exoplatform.services.organization.User user,
boolean broadcast)
throws Exception
createUser in interface org.exoplatform.services.organization.UserHandlerExceptionpublic void saveUser(org.exoplatform.services.organization.User user,
boolean broadcast)
throws Exception
saveUser in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User setEnabled(String userName, boolean enabled, boolean broadcast) throws Exception
setEnabled in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User removeUser(String userName, boolean broadcast) throws Exception
removeUser in interface org.exoplatform.services.organization.UserHandlerExceptionpublic boolean isUpdateLastLoginTime()
isUpdateLastLoginTime in interface org.exoplatform.services.organization.UserHandlerpublic org.exoplatform.services.organization.User findUserByName(String userName) throws Exception
findUserByName in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User findUserByName(String userName, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
findUserByName in interface org.exoplatform.services.organization.UserHandlerExceptionpublic LazyPageList<org.exoplatform.services.organization.User> getUserPageList(int pageSize) throws Exception
getUserPageList in interface org.exoplatform.services.organization.UserHandlerExceptionpublic ListAccess<org.exoplatform.services.organization.User> findAllUsers() throws Exception
findAllUsers in interface org.exoplatform.services.organization.UserHandlerExceptionpublic ListAccess<org.exoplatform.services.organization.User> findAllUsers(org.exoplatform.services.organization.UserStatus userStatus) throws Exception
findAllUsers in interface org.exoplatform.services.organization.UserHandlerExceptionpublic boolean authenticate(String username, String password) throws Exception
authenticate in interface org.exoplatform.services.organization.UserHandlerExceptionpublic LazyPageList findUsers(org.exoplatform.services.organization.Query q) throws Exception
findUsers in interface org.exoplatform.services.organization.UserHandlerExceptionpublic ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q) throws Exception
findUsersByQuery in interface org.exoplatform.services.organization.UserHandlerExceptionpublic ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
findUsersByQuery in interface org.exoplatform.services.organization.UserHandlerExceptionpublic LazyPageList findUsersByGroup(String groupId) throws Exception
findUsersByGroup in interface org.exoplatform.services.organization.UserHandlerExceptionpublic org.exoplatform.services.organization.User findUserByEmail(String email) throws Exception
Exceptionpublic org.exoplatform.services.organization.User findUserByUniqueAttribute(String attributeName, String attributeValue, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
Exceptionpublic ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId) throws Exception
findUsersByGroupId in interface org.exoplatform.services.organization.UserHandlerExceptionpublic ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
findUsersByGroupId in interface org.exoplatform.services.organization.UserHandlerExceptionpublic void persistUserInfo(org.exoplatform.services.organization.User user,
org.picketlink.idm.api.IdentitySession session,
boolean isNew)
throws Exception
Exceptionpublic org.exoplatform.services.organization.User getPopulatedUser(String userName, org.picketlink.idm.api.IdentitySession session, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
Exceptionpublic void populateUser(org.exoplatform.services.organization.User user,
org.picketlink.idm.api.IdentitySession session)
public PicketLinkIDMOrganizationServiceImpl getOrgService()
Copyright © 2018 JBoss by Red Hat. All Rights Reserved.