public interface UserServiceLocal extends UserService, CRUDServiceLocal<User,UserDTO,UserData,UserDataParams>
UserServiceANY_PRINCIPAL_TYPE, PIN_PRINCIPAL_TYPE, SELF| 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 |
canViewActiveConfiguration(User user)
Returns true if the logged user can view the active configuration of the given user.
|
boolean |
canViewProfile(User user)
Returns true if the logged user can view the profile of the given user
|
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(org.cyclos.impl.users.ProductsAccessor accessor,
boolean brokered)
Returns the
GroupVisibility in the given accessor or the one for the current user when null. |
User |
importUser(UserRegistrationDTO dto)
Imports a 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 a user registration is validated
|
User |
registerByPopulator(UserRegistrationDTO params)
Registers a user via a populator, like setup or network with data
|
org.cyclos.impl.users.RegisterUserBySmsResult |
registerBySms(org.cyclos.impl.users.RegisterUserBySmsParams params)
Registers a user via SMS
|
UserVO |
toUserVO(java.lang.Long id,
java.lang.String display,
java.lang.String shortDisplay,
ImageVO userImage)
Returns an
UserVO for the given id and display, assuming the User translation if either display /
short display are null |
void |
validate(UserDTO dto,
UserRegistration registration)
Validates the user information according to the registration context
|
exportToCSV, getActiveConfiguration, getCurrentUser, getPublicRegistrationData, getPublicRegistrationGroups, getSearchData, getUserRegistrationGroups, getViewProfileData, locate, printUsers, publicRegister, register, registerByMember, search, validateRegistrationFieldgetConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savefind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validatevoid activateUserIfNeeded(User user)
boolean canViewActiveConfiguration(User user)
boolean canViewProfile(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(org.cyclos.impl.users.ProductsAccessor accessor, boolean brokered)
GroupVisibility in the given accessor or the one for the current user when null.
As broker we must have the same or bigger visibility than as member, so when brokering, it is used as
base-line the visibility set in member products.User importUser(UserRegistrationDTO dto)
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)
UserVO toUserVO(java.lang.Long id, java.lang.String display, java.lang.String shortDisplay, ImageVO userImage)
UserVO for the given id and display, assuming the User translation if either display /
short display are nullvoid validate(UserDTO dto, UserRegistration registration)