public interface UserServiceLocal extends UserService, org.cyclos.impl.CRUDServiceLocal<User,UserDTO,UserData,UserDataParams>
UserService| Modifier and Type | Method and Description |
|---|---|
void |
activateUserIfNeeded(User user)
It activates the user's accounts, create a password (if needed) and send the activation email only if the user's group is an active one.
|
boolean |
canAddToContacts(User user)
Returns true if the logged user can add the given user to his contacts list
|
int |
countTotalUsers()
Returns the total number of users (not admins) which are not removed
|
boolean |
existsUserWithEmail(java.lang.String email)
Returns true if there exists a user with the given email.
|
boolean |
existsUserWithMobilePhone(java.lang.String normalizedMobilePhone)
Returns true if there exists a user with the given normalized mobile phone.
|
void |
fill(AbstractUserSearchData data,
boolean searchOverBrokeredUsers)
Fills-in the common fields of an
AbstractUserSearchData |
java.lang.String |
generateNewUsername(ConfigurationAccessor configurationAccessor)
Generates an username for the given configuration.
|
GroupVisibility |
getGroupVisibility(boolean brokered)
Returns the
GroupVisibility for the current user, optionally over brokered users |
java.util.Date |
getLastLogin()
Returns the last login date of the logged user, or null if never logged in before, or not logged-in
|
org.cyclos.impl.utils.validation.Validator |
getValidator(Group group,
UserDTO userDTO,
UserRegistration registration)
Returns a user validator
|
UserRegistrationResult |
importUser(UserRegistrationDTO dto)
Imports an user
|
boolean |
isContact(User user)
Returns whether the given user is a contact of the logged user
|
com.mysema.commons.lang.CloseableIterator<User> |
iterateByGroups(java.util.Collection<? extends Group> groups)
Iterates all users on the given groups
|
com.mysema.commons.lang.CloseableIterator<java.lang.Long> |
iterateIds(UserQuery query)
Iterates users according to the specified query parameters
|
void |
onRegistrationValidation(User user,
boolean generatePasswordEvenIfManual,
boolean sendActivationEmail)
Performs additional actions when an user registration is validated
|
User |
registerByPopulator(UserRegistrationDTO params)
Registers an user via a populator, like setup or network with data
|
org.cyclos.impl.users.RegisterUserBySmsResult |
registerBySms(org.cyclos.impl.users.RegisterUserBySmsParams params)
Registers an user via SMS
|
void |
validate(UserDTO dto,
UserRegistration registration)
Validates the user information according to the registration context
|
addContact, exportToCSV, getActiveConfiguration, getCurrentUser, getPublicRegistrationData, getPublicRegistrationGroups, getSearchData, getUserRegistrationGroups, getViewProfileData, locate, printUsers, publicRegister, register, removeContact, search, updateUserActivitygetConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savevoid activateUserIfNeeded(User user) throws FrameworkException
FrameworkExceptionboolean canAddToContacts(User user) throws FrameworkException
FrameworkExceptionint countTotalUsers()
boolean existsUserWithEmail(java.lang.String email)
boolean existsUserWithMobilePhone(java.lang.String normalizedMobilePhone)
void fill(AbstractUserSearchData data, boolean searchOverBrokeredUsers) throws FrameworkException
AbstractUserSearchDataFrameworkExceptionjava.lang.String generateNewUsername(ConfigurationAccessor configurationAccessor) throws FrameworkException
FrameworkExceptionGroupVisibility getGroupVisibility(boolean brokered) throws FrameworkException
GroupVisibility for the current user, optionally over brokered usersFrameworkExceptionjava.util.Date getLastLogin()
throws FrameworkException
FrameworkExceptionorg.cyclos.impl.utils.validation.Validator getValidator(Group group, UserDTO userDTO, UserRegistration registration) throws FrameworkException
FrameworkExceptionUserRegistrationResult importUser(UserRegistrationDTO dto)
boolean isContact(User user) throws FrameworkException
FrameworkExceptioncom.mysema.commons.lang.CloseableIterator<User> iterateByGroups(java.util.Collection<? extends Group> groups) throws FrameworkException
FrameworkExceptioncom.mysema.commons.lang.CloseableIterator<java.lang.Long> iterateIds(UserQuery query) throws FrameworkException, QueryParseException
void onRegistrationValidation(User user, boolean generatePasswordEvenIfManual, boolean sendActivationEmail) throws FrameworkException
FrameworkExceptionUser registerByPopulator(UserRegistrationDTO params) throws FrameworkException
FrameworkExceptionorg.cyclos.impl.users.RegisterUserBySmsResult registerBySms(org.cyclos.impl.users.RegisterUserBySmsParams params)
throws FrameworkException
FrameworkExceptionvoid validate(UserDTO dto, UserRegistration registration)