Class UserAccountServiceImpl

java.lang.Object
io.meeds.web.security.service.UserAccountServiceImpl
All Implemented Interfaces:
org.exoplatform.portal.rest.UserAccountService

@Service public class UserAccountServiceImpl extends Object implements org.exoplatform.portal.rest.UserAccountService
  • Field Details

    • PLATFORM_USERS_GROUP

      public static final String PLATFORM_USERS_GROUP
      See Also:
    • PLATFORM_EXTERNALS_GROUP

      public static final String PLATFORM_EXTERNALS_GROUP
      See Also:
    • PLATFORM_ADMINISTRATORS_GROUP

      public static final String PLATFORM_ADMINISTRATORS_GROUP
      See Also:
    • MEMBER_MEMBERSHIP_TYPE

      public static final String MEMBER_MEMBERSHIP_TYPE
      See Also:
    • GENERATED_USERNAME_PREFIX

      public static final String GENERATED_USERNAME_PREFIX
      The letter every generated login starts with, so that it never starts with a digit whatever the username policy
      See Also:
    • GENERATED_USERNAME_RANDOM_LENGTH

      public static final int GENERATED_USERNAME_RANDOM_LENGTH
      See Also:
    • GENERATION_ATTEMPTS

      public static final int GENERATION_ATTEMPTS
      See Also:
    • IDENTITY_ALREADY_PRESENT_MESSAGE

      public static final String IDENTITY_ALREADY_PRESENT_MESSAGE
      The message of the store's refusal of a login it already holds, raised from the insert of a concurrent creation that the pre-check did not see
      See Also:
  • Constructor Details

    • UserAccountServiceImpl

      public UserAccountServiceImpl()
  • Method Details

    • confirmSession

      public void confirmSession(String username, String otpCode) throws IllegalAccessException
      Specified by:
      confirmSession in interface org.exoplatform.portal.rest.UserAccountService
      Throws:
      IllegalAccessException
    • createUser

      public String createUser(org.exoplatform.portal.rest.UserAccount account, Locale locale) throws org.exoplatform.portal.rest.UserAccountCreationException
      Specified by:
      createUser in interface org.exoplatform.portal.rest.UserAccountService
      Throws:
      org.exoplatform.portal.rest.UserAccountCreationException
    • updateUser

      public void updateUser(org.exoplatform.portal.rest.UserAccount account, Locale locale, String modifier) throws org.exoplatform.portal.rest.UserAccountUpdateException
      Specified by:
      updateUser in interface org.exoplatform.portal.rest.UserAccountService
      Throws:
      org.exoplatform.portal.rest.UserAccountUpdateException
    • getLanguage

      public String getLanguage(String username)
      Specified by:
      getLanguage in interface org.exoplatform.portal.rest.UserAccountService
    • generateUsername

      public String generateUsername()
      Specified by:
      generateUsername in interface org.exoplatform.portal.rest.UserAccountService
    • restartTransaction

      protected void restartTransaction()
      Ends the current transactions and opens new ones, so that the next read sees what the store committed; the seam a unit test replaces, since the real one needs a container