Class UserService
java.lang.Object
com.persequor.saga.modules.authmanager.service.UserService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserService
(UserRepository userRepository, AuthManagerConfig authConfig, SessionRepository sessionRepository) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String username, Class<? extends com.persequor.extension.ioc.registry.SpaceExtensionContext> space, Predicate<UserModel> authenticate) void
create
(UserModel user, Class<? extends com.persequor.extension.ioc.registry.SpaceExtensionContext> space) void
getPaginated
(Class<? extends com.persequor.extension.ioc.registry.SpaceExtensionContext> space, FilterCollector filterCollector, int page, int perPage) Get a paginated list of users with the given filters.void
void
toggleActive
(UserModel user) void
-
Field Details
-
MAX_MEMORY_USERS
public static final int MAX_MEMORY_USERS- See Also:
-
-
Constructor Details
-
UserService
@Inject public UserService(UserRepository userRepository, AuthManagerConfig authConfig, SessionRepository sessionRepository)
-
-
Method Details
-
get
-
create
-
getPaginated
public UsersPage getPaginated(Class<? extends com.persequor.extension.ioc.registry.SpaceExtensionContext> space, FilterCollector filterCollector, int page, int perPage) Get a paginated list of users with the given filters. If the filter collector has memory filters, the query will be executed without pagination and the results will be filtered in memory (up to 1_000 users). If the amount of users is greater than 1_000, the total will be set to -1.- Parameters:
space
- The space to get the users from.filterCollector
- The filter collector to apply to the query.page
- The page number to get, starting from 1.perPage
- The number of users per page.
-
update
-
delete
-
toggleActive
-
resetFailedLoginAttempts
-
authenticate
-