Class UserDAOImpl

java.lang.Object
org.exoplatform.services.organization.idm.AbstractDAOImpl
org.exoplatform.services.organization.idm.UserDAOImpl
All Implemented Interfaces:
org.exoplatform.services.organization.UserHandler
Direct Known Subclasses:
CacheableUserHandlerImpl

public class UserDAOImpl extends AbstractDAOImpl implements org.exoplatform.services.organization.UserHandler
Author:
Boleslaw Dawidowicz
  • Field Details

  • Constructor Details

  • Method Details

    • getUserEventListeners

      public final List<org.exoplatform.services.organization.UserEventListener> getUserEventListeners()
    • addUserEventListener

      public void addUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
      Specified by:
      addUserEventListener in interface org.exoplatform.services.organization.UserHandler
    • removeUserEventListener

      public void removeUserEventListener(org.exoplatform.services.organization.UserEventListener listener)
      Specified by:
      removeUserEventListener in interface org.exoplatform.services.organization.UserHandler
    • createUserInstance

      public org.exoplatform.services.organization.User createUserInstance()
      Specified by:
      createUserInstance in interface org.exoplatform.services.organization.UserHandler
    • createUserInstance

      public org.exoplatform.services.organization.User createUserInstance(String username)
      Specified by:
      createUserInstance in interface org.exoplatform.services.organization.UserHandler
    • createUser

      public void createUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception
      Specified by:
      createUser in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • saveUser

      public void saveUser(org.exoplatform.services.organization.User user, boolean broadcast) throws Exception
      Specified by:
      saveUser in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • setEnabled

      public org.exoplatform.services.organization.User setEnabled(String userName, boolean enabled, boolean broadcast) throws Exception
      Specified by:
      setEnabled in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • removeUser

      public org.exoplatform.services.organization.User removeUser(String userName, boolean broadcast) throws Exception
      Specified by:
      removeUser in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUserByName

      public org.exoplatform.services.organization.User findUserByName(String userName) throws Exception
      Specified by:
      findUserByName in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUserByName

      public org.exoplatform.services.organization.User findUserByName(String userName, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Specified by:
      findUserByName in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • getUserPageList

      public org.exoplatform.commons.utils.LazyPageList<org.exoplatform.services.organization.User> getUserPageList(int pageSize) throws Exception
      Specified by:
      getUserPageList in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findAllUsers

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers() throws Exception
      Specified by:
      findAllUsers in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findAllUsers

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findAllUsers(org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Specified by:
      findAllUsers in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • authenticate

      public boolean authenticate(String username, String password) throws Exception
      Specified by:
      authenticate in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • authenticateExternal

      public boolean authenticateExternal(String username, String password) throws Exception
      Throws:
      Exception
    • authenticateDB

      public boolean authenticateDB(org.exoplatform.services.organization.User user, String password) throws Exception
      Throws:
      Exception
    • findUsers

      public org.exoplatform.commons.utils.LazyPageList findUsers(org.exoplatform.services.organization.Query q) throws Exception
      Specified by:
      findUsers in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUsersByQuery

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q) throws Exception
      Specified by:
      findUsersByQuery in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUsersByQuery

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query q, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Specified by:
      findUsersByQuery in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUsersByGroup

      public org.exoplatform.commons.utils.LazyPageList findUsersByGroup(String groupId) throws Exception
      Specified by:
      findUsersByGroup in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUserByEmail

      public org.exoplatform.services.organization.User findUserByEmail(String email) throws Exception
      Throws:
      Exception
    • findUserByUniqueAttribute

      public org.exoplatform.services.organization.User findUserByUniqueAttribute(String attributeName, String attributeValue, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Throws:
      Exception
    • findUsersByGroupId

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId) throws Exception
      Specified by:
      findUsersByGroupId in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUsersByQuery

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByQuery(org.exoplatform.services.organization.Query query, List<String> groupIds, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Specified by:
      findUsersByQuery in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • findUsersByGroupId

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User> findUsersByGroupId(String groupId, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Specified by:
      findUsersByGroupId in interface org.exoplatform.services.organization.UserHandler
      Throws:
      Exception
    • persistUserInfo

      public void persistUserInfo(org.exoplatform.services.organization.User user, org.picketlink.idm.api.IdentitySession session, boolean isNew) throws Exception
      Throws:
      Exception
    • persistUserInfo

      public void persistUserInfo(org.exoplatform.services.organization.User user, org.picketlink.idm.api.User plIDMUser, org.picketlink.idm.api.IdentitySession session, boolean isNew) throws Exception
      Throws:
      Exception
    • getPopulatedUser

      public org.exoplatform.services.organization.User getPopulatedUser(String userName, org.picketlink.idm.api.IdentitySession session, org.exoplatform.services.organization.UserStatus userStatus) throws Exception
      Throws:
      Exception
    • populateUser

      public void populateUser(org.exoplatform.services.organization.User user, org.picketlink.idm.api.IdentitySession session) throws Exception
      Throws:
      Exception
    • getOrgService

      public PicketLinkIDMOrganizationServiceImpl getOrgService()
    • executeWithTransaction

      public void executeWithTransaction(Runnable runnable)
    • restartTransaction

      protected int restartTransaction()