public interface UserService extends CRUDService<UserDTO,UserData,java.lang.Long>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addContact(UserLocatorVO locator)
Adds the located user to the logged user's contact list, returning whether the list has changed
|
ActiveConfigurationData |
getActiveConfiguration(UserLocatorVO locator)
Returns the
ActiveConfigurationData, containing all the actual configuration for the user matching the given locator |
UserDetailedVO |
getCurrentUser()
Returns the current user logged in
|
java.util.List<AgreementVO> |
getPendingAgreements()
Return pending agreements of the user with the given id
|
UserSearchData |
getSearchData(boolean brokeredUsers,
boolean pendingUsers)
Gets data used on the search page, either for brokered users, pending users or general users search
|
java.util.List<GroupVO> |
getUserRegistrationGroups()
Return the list of groups the logged user can register new users for
|
ViewProfileData |
getViewProfileData(UserLocatorVO locator)
Return a
ViewProfileData for the user matching the given locator |
UserDetailedVO |
locate(UserLocatorVO locator)
Locates an user by a customizable key.
|
SerializableInputStream |
printUsers(UserQuery query) |
UserRegistrationResult |
publicRegister(PublicRegistrationDTO user)
Registers an user from a public registration
|
UserRegistrationResult |
register(UserRegistrationDTO user)
Registers an user
|
boolean |
removeContact(UserLocatorVO locator)
Removes the given user to the logged user's contact list, returning whether the list has changed
|
void |
resendValidationMail(UserLocatorVO locator)
Re-sends the validation mail to a pending user
|
Page<UserDetailedVO> |
search(UserQuery query)
Search users according to the specified query parameters
|
Page<UserWithBrokerVO> |
searchBrokered(UserQuery query)
Search brokered users according to the specified query parameters
The query must have set the broker.
|
void |
updateUserActivity(UserActivityType type)
Updates user information status according to the given activity
|
UserValidationData |
validateKey(java.lang.String validationKey)
Validate used when the user validate his registration using the provided key
|
getData, getDataForNew, load, remove, removeAll, saveboolean addContact(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionActiveConfigurationData getActiveConfiguration(UserLocatorVO locator) throws FrameworkException
ActiveConfigurationData, containing all the actual configuration for the user matching the given locatorFrameworkExceptionUserDetailedVO getCurrentUser() throws FrameworkException
FrameworkExceptionjava.util.List<AgreementVO> getPendingAgreements() throws FrameworkException
FrameworkExceptionUserSearchData getSearchData(boolean brokeredUsers, boolean pendingUsers) throws FrameworkException
FrameworkExceptionjava.util.List<GroupVO> getUserRegistrationGroups() throws FrameworkException
FrameworkExceptionViewProfileData getViewProfileData(UserLocatorVO locator) throws FrameworkException
ViewProfileData for the user matching the given locatorFrameworkExceptionUserDetailedVO locate(UserLocatorVO locator) throws FrameworkException
ValidationException: - if the locator is invalid (there is no fields non null).EntityNotFoundException: - if the user was not found or more than one user was found with the specified locator.FrameworkExceptionSerializableInputStream printUsers(UserQuery query) throws FrameworkException, ReportExecutionException
UserRegistrationResult publicRegister(PublicRegistrationDTO user) throws FrameworkException
FrameworkExceptionUserRegistrationResult register(UserRegistrationDTO user) throws FrameworkException
FrameworkExceptionboolean removeContact(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionvoid resendValidationMail(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionPage<UserDetailedVO> search(UserQuery query) throws FrameworkException
FrameworkExceptionPage<UserWithBrokerVO> searchBrokered(UserQuery query) throws FrameworkException
FrameworkExceptionvoid updateUserActivity(UserActivityType type) throws FrameworkException
FrameworkExceptionUserValidationData validateKey(java.lang.String validationKey) throws FrameworkException
FrameworkException