public interface UserServiceLocal extends UserService, CRUDServiceLocal<User,UserDTO,UserData,UserDataParams>
UserServiceSELF| 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.Object[] |
getExcludedPropertiesToEntity()
Same as the
getExcludedPropertiesToEntity() method from the CRUDServiceImpl but for all
dto's instances. |
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
|
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)
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, savefind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validatevoid activateUserIfNeeded(User user)
boolean canAddToContacts(User user)
int countTotalUsers()
boolean existsUserWithEmail(java.lang.String email)
boolean existsUserWithMobilePhone(java.lang.String normalizedMobilePhone)
void fill(AbstractUserSearchData data, boolean searchOverBrokeredUsers)
AbstractUserSearchDatajava.lang.Object[] getExcludedPropertiesToEntity()
getExcludedPropertiesToEntity() method from the CRUDServiceImpl but for all
dto's instances.GroupVisibility getGroupVisibility(boolean brokered)
GroupVisibility for the current user, optionally over brokered usersjava.util.Date getLastLogin()
UserRegistrationResult importUser(UserRegistrationDTO dto)
boolean isContact(User user)
com.mysema.commons.lang.CloseableIterator<User> iterateByGroups(java.util.Collection<? extends Group> groups)
com.mysema.commons.lang.CloseableIterator<java.lang.Long> iterateIds(UserQuery query)
void onRegistrationValidation(User user)
User registerByPopulator(UserRegistrationDTO params)
org.cyclos.impl.users.RegisterUserBySmsResult registerBySms(org.cyclos.impl.users.RegisterUserBySmsParams params)
void validate(UserDTO dto, UserRegistration registration)