public interface UserService extends CRUDWithConfirmationPasswordService<UserDTO,UserData,UserDataParams>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY_PRINCIPAL_TYPE
String that can be used to locate users by any possible principal type, even if there is a default.
|
static java.lang.String |
SELF
Identifier to locate the authenticated user
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addContact(UserLocatorVO owner,
UserLocatorVO contact)
Adds the given contact to the given user (or logged user if null)'s contact list, returning whether the list has
changed
|
SerializableInputStream |
exportToCSV(UserQuery params)
Generates a CSV with the query result
|
ActiveConfigurationData |
getActiveConfiguration(UserLocatorVO locator)
Returns the
ActiveConfigurationData, containing all the actual configuration for the user matching the
given locator |
UserWithRolesVO |
getCurrentUser()
Returns the current user logged in
|
PublicRegistrationData |
getPublicRegistrationData(InitialGroupVO group)
Returns data for registering a user from the public registration
|
java.util.List<InitialGroupVO> |
getPublicRegistrationGroups()
Return the list of groups guests user can register
|
UserSearchData |
getSearchData(UserSearchContext context)
Gets data used on the search page, according to the given search type
|
java.util.List<InitialGroupVO> |
getUserRegistrationGroups(boolean asMember)
Return the list of groups the logged user can register new users.
|
ViewProfileData |
getViewProfileData(UserLocatorVO locator)
Return a
ViewProfileData for the user matching the given locator |
UserDetailedVO |
locate(UserLocatorVO locator)
Locates a user by a customizable key.
|
SerializableInputStream |
printUsers(UserQuery query)
Generates the PDF content for a user listing
|
UserRegistrationResult |
publicRegister(PublicRegistrationDTO user)
Registers a user from a public registration
|
UserRegistrationResult |
register(UserRegistrationDTO user)
Registers a user
|
UserRegistrationResult |
registerByMember(UserRegistrationByMemberDTO user)
Registers a user by a regular member.
|
boolean |
removeContact(UserLocatorVO owner,
UserLocatorVO contact)
Removes the given contact to the given user (or logged user if null)'s contact list, returning whether the list
has changed
|
Page<UserWithFieldsVO> |
search(UserQuery query)
Search users according to the specified query parameters.
|
void |
updateUserActivity(UserActivityType type)
Updates user information status according to the given activity
|
getConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String SELF
static final java.lang.String ANY_PRINCIPAL_TYPE
boolean addContact(UserLocatorVO owner, @NotNull UserLocatorVO contact) throws FrameworkException
FrameworkExceptionSerializableInputStream exportToCSV(@NotNull UserQuery params)
ActiveConfigurationData getActiveConfiguration(@NotNull UserLocatorVO locator) throws FrameworkException
ActiveConfigurationData, containing all the actual configuration for the user matching the
given locatorFrameworkExceptionUserWithRolesVO getCurrentUser() throws FrameworkException
FrameworkExceptionPublicRegistrationData getPublicRegistrationData(@NotNull InitialGroupVO group) throws FrameworkException
FrameworkExceptionjava.util.List<InitialGroupVO> getPublicRegistrationGroups() throws FrameworkException
FrameworkExceptionUserSearchData getSearchData(UserSearchContext context) throws FrameworkException
FrameworkExceptionjava.util.List<InitialGroupVO> getUserRegistrationGroups(boolean asMember) throws FrameworkException
asMember - flag used only in case the logged user is a broker to distinguish between registering as
member/broker.FrameworkExceptionViewProfileData getViewProfileData(@NotNull UserLocatorVO locator) throws FrameworkException
ViewProfileData for the user matching the given locatorFrameworkExceptionUserDetailedVO locate(@NotNull 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(@NotNull UserQuery query) throws FrameworkException, ReportExecutionException, QueryParseException
UserRegistrationResult publicRegister(@NotNull PublicRegistrationDTO user) throws FrameworkException
FrameworkExceptionUserRegistrationResult register(@NotNull UserRegistrationDTO user) throws FrameworkException
FrameworkExceptionUserRegistrationResult registerByMember(@NotNull UserRegistrationByMemberDTO user) throws FrameworkException
FrameworkExceptionboolean removeContact(UserLocatorVO owner, @NotNull UserLocatorVO contact) throws FrameworkException
FrameworkExceptionPage<UserWithFieldsVO> search(@NotNull UserQuery query) throws FrameworkException, QueryParseException
BasicUserVO.DISPLAY and BasicUserVO.SHORT_DISPLAY
properties filled in or specific profile fields, depending on the products (permissions) of the viewing user.
If there are profile fields marked to be returned, display and short display are not returned, as in most cases
it would mean repeated information.void updateUserActivity(@NotNull
UserActivityType type)
throws FrameworkException
FrameworkException