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 |
PIN_PRINCIPAL_TYPE
String that can be used to locate users by PIN.
|
static java.lang.String |
SELF
Identifier to locate the authenticated user
|
| Modifier and Type | Method and Description |
|---|---|
FileInfo |
exportUsers(@NotNull ExportFormatVO format,
@NotNull UserQuery params)
Exports the user search results to a file
|
ActiveConfigurationData |
getActiveConfiguration(@NotNull 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(@NotNull 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,
UserLocatorVO broker)
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(@NotNull UserLocatorVO locator)
Return a
ViewProfileData for the user matching the given locator |
UserVO |
locate(@NotNull UserLocatorVO locator)
Locates a user by a customizable key.
|
UserRegistrationResult |
publicRegister(@NotNull PublicRegistrationDTO user)
Registers a user from a public registration
|
UserRegistrationResult |
register(@NotNull UserRegistrationDTO user)
Registers a user
|
UserRegistrationResult |
registerByMember(@NotNull UserRegistrationByMemberDTO user)
Registers a user by a regular member.
|
Page<UserWithFieldsVO> |
search(@NotNull UserQuery query)
Search users according to the specified query parameters.
|
java.lang.String |
validateRegistrationField(@NotNull ValidateRegistrationFieldParams params)
Validates a field for user registration.
|
getConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String SELF
static final java.lang.String ANY_PRINCIPAL_TYPE
static final java.lang.String PIN_PRINCIPAL_TYPE
FileInfo exportUsers(@NotNull @NotNull ExportFormatVO format, @NotNull @NotNull UserQuery params) throws FrameworkException
FrameworkExceptionActiveConfigurationData getActiveConfiguration(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
ActiveConfigurationData, containing all the actual configuration for the user matching the
given locatorFrameworkExceptionUserWithRolesVO getCurrentUser() throws FrameworkException
FrameworkExceptionPublicRegistrationData getPublicRegistrationData(@NotNull @NotNull InitialGroupVO group) throws FrameworkException
FrameworkExceptionjava.util.List<InitialGroupVO> getPublicRegistrationGroups() throws FrameworkException
FrameworkExceptionUserSearchData getSearchData(UserSearchContext context, UserLocatorVO broker) 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 @NotNull UserLocatorVO locator) throws FrameworkException
ViewProfileData for the user matching the given locatorFrameworkExceptionUserVO locate(@NotNull @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.FrameworkExceptionUserRegistrationResult publicRegister(@NotNull @NotNull PublicRegistrationDTO user) throws FrameworkException
FrameworkExceptionUserRegistrationResult register(@NotNull @NotNull UserRegistrationDTO user) throws FrameworkException
FrameworkExceptionUserRegistrationResult registerByMember(@NotNull @NotNull UserRegistrationByMemberDTO user) throws FrameworkException
FrameworkExceptionPage<UserWithFieldsVO> search(@NotNull @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.java.lang.String validateRegistrationField(@NotNull
@NotNull ValidateRegistrationFieldParams params)
throws FrameworkException
BasicProfileField.getByAlias(String) or the internal name of a
custom field, and must be valid for the given group.
The value should be a valid reference value, just as accepted by
CustomFieldValueDTO.setReferenceValue(String)FrameworkException