public interface UserServiceLocal extends UserService, org.cyclos.impl.CRUDServiceLocal<User,UserDTO,UserData,java.lang.Long>
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 |
canEditUserCustomFields(User user)
Returns true if the logged user can edit at least one user profile custom fields
|
boolean |
canEditUserEmail(User user)
Returns true if the logged user can edit the user email
|
boolean |
canEditUserFullName(User user)
Returns true if the logged user can edit the user profile full name
|
boolean |
canEditUserLoginName(User user)
Returns true if the logged user can modify the user's login name
|
boolean |
canViewAddresses(User user)
Returns if the given user can view addresses
|
boolean |
canViewPhones(User user)
Returns if the given user can view phones
|
void |
clearValidationKey(User user)
Removes all user data related to a validation key
|
int |
countTotalUsers()
Returns the total number of users (not admins) which are not removed
|
void |
fill(AbstractUserSearchData data,
boolean searchOverBrokeredUsers)
Fills-in the common fields of an
AbstractUserSearchData |
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
|
User |
getUserForValidationKey(ValidationKeyType type,
java.lang.String validationKey)
Returns the user in the current network with the given validation key
|
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
|
org.cyclos.impl.users.LocateUserResult |
locate(Network network,
UserLocatorVO locator,
java.util.Set<org.cyclos.impl.users.LocateUserOption> options)
Locates an user on the given network, using a
RawEntityManagerHandler, using custom options. |
org.cyclos.impl.users.LocateUserResult |
locate(Network network,
UserLocatorVO locator,
java.util.Set<org.cyclos.impl.users.LocateUserOption> options,
java.util.Collection<PrincipalType> principalTypes)
Locates an user on the given network, using a
RawEntityManagerHandler, using custom options. |
org.cyclos.impl.users.LocateUserResult |
locateRelated(UserLocatorVO locator)
Locates an user on the current network, using a
RawEntityManagerHandler, enforcing the active user to be related to the located user. |
User |
locateUser(Network network,
UserLocatorVO locator)
Locates an user on the given network, using a
RawEntityManagerHandler. |
User |
locateUser(Network network,
UserLocatorVO locator,
java.util.Set<org.cyclos.impl.users.LocateUserOption> options)
Locates an user on the given network, using a
RawEntityManagerHandler, using custom options. |
User |
locateUser(Network network,
UserLocatorVO locator,
java.util.Set<org.cyclos.impl.users.LocateUserOption> options,
java.util.Collection<PrincipalType> possiblePrincipalTypes)
Locates an user on the given network, using a
RawEntityManagerHandler, using custom options. |
User |
locateUser(UserLocatorVO locator)
Locates an user in the current network enforcing the active user to be related to the located user.
|
User |
locateUser(UserLocatorVO locator,
java.util.Set<org.cyclos.impl.users.LocateUserOption> options)
Locates an user using the
EntityManagerHandler, that means - the user must be in the same network as the current user, and needs to be
accessible by him. |
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
|
boolean |
requiresEmailValidation(UserRegistration registration,
ConfigurationAccessor configuration)
Returns true if the configuration requires email validation for the given user registration.
|
void |
setValidationKey(User user,
ValidationKeyType type)
Generates a new validation key for an user operation which needs an e-mail confirmation (like pending user registration, pending e-mail change
or forgot password)
|
addContact, exportToCSV, getActiveConfiguration, getCurrentUser, getSearchData, getUserRegistrationGroups, getViewProfileData, locate, markEmailAsValidated, printUsers, publicRegister, register, removeContact, resendEmailChangeMail, resendValidationMail, search, updateUserActivity, validateEmailChange, validateRegistrationfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, savevoid activateUserIfNeeded(User user) throws FrameworkException
FrameworkExceptionboolean canEditUserCustomFields(User user) throws FrameworkException
FrameworkExceptionboolean canEditUserEmail(User user) throws FrameworkException
FrameworkExceptionboolean canEditUserFullName(User user) throws FrameworkException
FrameworkExceptionboolean canEditUserLoginName(User user) throws FrameworkException
FrameworkExceptionboolean canViewAddresses(User user) throws FrameworkException
FrameworkExceptionboolean canViewPhones(User user) throws FrameworkException
FrameworkExceptionvoid clearValidationKey(User user) throws FrameworkException
FrameworkExceptionint countTotalUsers()
void fill(AbstractUserSearchData data, boolean searchOverBrokeredUsers) throws FrameworkException
AbstractUserSearchDataFrameworkExceptionGroupVisibility getGroupVisibility(boolean brokered) throws FrameworkException
GroupVisibility for the current user, optionally over brokered usersFrameworkExceptionjava.util.Date getLastLogin()
throws FrameworkException
FrameworkExceptionUser getUserForValidationKey(ValidationKeyType type, java.lang.String validationKey) 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
org.cyclos.impl.users.LocateUserResult locate(Network network, UserLocatorVO locator, java.util.Set<org.cyclos.impl.users.LocateUserOption> options) throws FrameworkException
RawEntityManagerHandler, using custom options. Doesn't enforces the active user to be
related to the located user.FrameworkExceptionUserService.locate(UserLocatorVO)org.cyclos.impl.users.LocateUserResult locate(Network network, UserLocatorVO locator, java.util.Set<org.cyclos.impl.users.LocateUserOption> options, java.util.Collection<PrincipalType> principalTypes) throws FrameworkException
RawEntityManagerHandler, using custom options. Doesn't enforces the active user to be
related to the located user.FrameworkExceptionUserService.locate(UserLocatorVO)org.cyclos.impl.users.LocateUserResult locateRelated(UserLocatorVO locator) throws FrameworkException
RawEntityManagerHandler, enforcing the active user to be related to the located user.FrameworkExceptionUser locateUser(Network network, UserLocatorVO locator) throws FrameworkException
RawEntityManagerHandler. Doesn't enforces the active user to be related to the located
user.FrameworkExceptionUserService.locate(UserLocatorVO)User locateUser(Network network, UserLocatorVO locator, java.util.Set<org.cyclos.impl.users.LocateUserOption> options) throws FrameworkException
RawEntityManagerHandler, using custom options. Doesn't enforces the active user to be
related to the located user.FrameworkExceptionUserService.locate(UserLocatorVO)User locateUser(Network network, UserLocatorVO locator, java.util.Set<org.cyclos.impl.users.LocateUserOption> options, java.util.Collection<PrincipalType> possiblePrincipalTypes) throws FrameworkException
RawEntityManagerHandler, using custom options. Doesn't enforces the active user to be
related to the located user.FrameworkExceptionUserService.locate(UserLocatorVO)User locateUser(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionUserService.locate(UserLocatorVO)User locateUser(UserLocatorVO locator, java.util.Set<org.cyclos.impl.users.LocateUserOption> options) throws FrameworkException
EntityManagerHandler, that means - the user must be in the same network as the current user, and needs to be
accessible by him.FrameworkExceptionUserService.locate(UserLocatorVO)User registerByPopulator(UserRegistrationDTO params) throws FrameworkException
FrameworkExceptionorg.cyclos.impl.users.RegisterUserBySmsResult registerBySms(org.cyclos.impl.users.RegisterUserBySmsParams params)
throws FrameworkException
FrameworkExceptionboolean requiresEmailValidation(UserRegistration registration, ConfigurationAccessor configuration) throws FrameworkException
FrameworkExceptionvoid setValidationKey(User user, ValidationKeyType type) throws FrameworkException
FrameworkException