public class PaginatedAuthzRolesService extends PaginatedDbService<AuthzRoleDTO>
db| Constructor and Description |
|---|
PaginatedAuthzRolesService(MongoConnection mongoConnection,
UserService userService,
MongoJackObjectMapperProvider mapper) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
int |
delete(String id)
Deletes the
DTO for the given ID from the database. |
List<AuthzRoleDTO> |
findByIds(Collection<String> ids) |
PaginatedList<AuthzRoleDTO> |
findPaginated(SearchQuery searchQuery,
int page,
int perPage,
String sortField,
String order) |
PaginatedList<AuthzRoleDTO> |
findPaginatedByIds(SearchQuery searchQuery,
int page,
int perPage,
String sortField,
String order,
Set<String> roleIds) |
PaginatedList<AuthzRoleDTO> |
findPaginatedByIdsWithFilter(SearchQuery searchQuery,
Predicate<AuthzRoleDTO> filter,
int page,
int perPage,
String sortField,
String order,
Set<String> roleIds) |
com.google.common.collect.ImmutableSet<String> |
getAllRoleIds() |
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject public PaginatedAuthzRolesService(MongoConnection mongoConnection, UserService userService, MongoJackObjectMapperProvider mapper)
public long count()
public com.google.common.collect.ImmutableSet<String> getAllRoleIds()
public List<AuthzRoleDTO> findByIds(Collection<String> ids)
public PaginatedList<AuthzRoleDTO> findPaginated(SearchQuery searchQuery, int page, int perPage, String sortField, String order)
public PaginatedList<AuthzRoleDTO> findPaginatedByIds(SearchQuery searchQuery, int page, int perPage, String sortField, String order, Set<String> roleIds)
public PaginatedList<AuthzRoleDTO> findPaginatedByIdsWithFilter(SearchQuery searchQuery, Predicate<AuthzRoleDTO> filter, int page, int perPage, String sortField, String order, Set<String> roleIds)
public int delete(String id)
PaginatedDbServiceDTO for the given ID from the database.delete in class PaginatedDbService<AuthzRoleDTO>id - ID of the DTO to deleteCopyright © 2012–2021 Graylog, Inc.. All rights reserved.