Package io.meeds.web.security.service
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe letter every generated login starts with, so that it never starts with a digit whatever the username policystatic final intstatic final intstatic final StringThe 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 seestatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.exoplatform.portal.rest.UserAccountService
CREATION_SOURCE_UI, DISABLE_SUPER_USER, EMAIL_ALREADY_EXISTS, LANGUAGE_INVALID, OTP_METHOD, PART_ENABLED, PART_LANGUAGE, PART_MEMBERSHIPS, ROLE_INVALID, SELF_DISABLE, USER_CREATED_INCOMPLETE, USER_CREATED_INCOMPLETE_ENABLED, USER_CREATION_FAILED, USER_PASSWORD_NOT_STORED, USER_PASSWORD_NOT_VERIFIABLE, USER_UPDATE_INCOMPLETE, USER_USERNAME_GENERATION_EXHAUSTED, USERNAME_ALREADY_EXISTS, USERNAME_ALREADY_EXISTS_AS_DELETED, USERNAME_GENERATION_NOT_ALLOWED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfirmSession(String username, String otpCode) createUser(org.exoplatform.portal.rest.UserAccount account, Locale locale) getLanguage(String username) protected voidEnds 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 containervoidupdateUser(org.exoplatform.portal.rest.UserAccount account, Locale locale, String modifier)
-
Field Details
-
PLATFORM_USERS_GROUP
- See Also:
-
PLATFORM_EXTERNALS_GROUP
- See Also:
-
PLATFORM_ADMINISTRATORS_GROUP
- See Also:
-
MEMBER_MEMBERSHIP_TYPE
- See Also:
-
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
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
- Specified by:
confirmSessionin interfaceorg.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:
createUserin interfaceorg.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:
updateUserin interfaceorg.exoplatform.portal.rest.UserAccountService- Throws:
org.exoplatform.portal.rest.UserAccountUpdateException
-
getLanguage
- Specified by:
getLanguagein interfaceorg.exoplatform.portal.rest.UserAccountService
-
generateUsername
- Specified by:
generateUsernamein interfaceorg.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
-