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
|
int |
countUsersInGroups(java.util.Collection<? extends Group> groups,
UserStatus... statuses)
Return the count of users in the given groups with the given statuses, if no status is passed, ACTIVE, BLOCKED
and DISABLED are used by default.
|
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. |
User |
importUser(UserRegistrationDTO dto)
Imports a user
|
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
|
<VO extends UserVO> |
toUserVO(java.lang.Class<VO> type,
SessionData sessionData,
java.lang.Long id,
java.lang.String displayForManagers,
java.lang.String displayForOthers,
java.lang.String shortDisplay,
java.lang.String brokerIds,
ImageVO image)
Returns a subclass of
UserVO filled up with the given fields. |
UserVO |
toUserVO(SessionData sessionData,
java.lang.Long id,
java.lang.String displayForManagers,
java.lang.String displayForOthers,
java.lang.String shortDisplay,
java.lang.String brokerIds,
ImageVO userImage)
Returns an
UserVO filled up with the given fields. |
void |
validate(UserDTO dto,
UserRegistration registration)
Validates the user information according to the registration context
|
exportUsers, getActiveConfiguration, getCurrentUser, getPublicRegistrationData, getPublicRegistrationGroups, getSearchData, getUserRegistrationGroups, getViewProfileData, locate, publicRegister, register, registerByMember, search, validateRegistrationFieldgetConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savefind, findAll, getEntityClass, newEntity, remove, removeAll, saveSkippingEntityLog, toDTO, toEntity, validatevoid activateUserIfNeeded(User user)
boolean canViewActiveConfiguration(User user)
boolean canViewProfile(User user)
int countTotalUsers()
int countUsersInGroups(java.util.Collection<? extends Group> groups, UserStatus... statuses)
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.User importUser(UserRegistrationDTO dto)
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)
<VO extends UserVO> VO toUserVO(java.lang.Class<VO> type, SessionData sessionData, java.lang.Long id, java.lang.String displayForManagers, java.lang.String displayForOthers, java.lang.String shortDisplay, java.lang.String brokerIds, ImageVO image)
UserVO filled up with the given fields.
Uses QueryHelper.getUserDisplay(org.cyclos.impl.access.SessionData, Long, String, String, String)UserVO toUserVO(SessionData sessionData, java.lang.Long id, java.lang.String displayForManagers, java.lang.String displayForOthers, java.lang.String shortDisplay, java.lang.String brokerIds, ImageVO userImage)
UserVO filled up with the given fields.
Uses QueryHelper.getUserDisplay(org.cyclos.impl.access.SessionData, Long, String, String, String)void validate(UserDTO dto, UserRegistration registration)