public class UserServiceImpl extends PersistedServiceImpl implements UserService
mongoConnection| Constructor and Description |
|---|
UserServiceImpl(MongoConnection mongoConnection,
Configuration configuration,
RoleService roleService,
AccessTokenService accessTokenService,
UserImpl.Factory userFactory,
InMemoryRolePermissionResolver inMemoryRolePermissionResolver,
com.google.common.eventbus.EventBus serverEventBus,
GRNRegistry grnRegistry,
PermissionAndRoleResolver permissionAndRoleResolver) |
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, saveWithoutValidation, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroyAll, saveWithoutValidation, validate, validate, validate@Inject public UserServiceImpl(MongoConnection mongoConnection, Configuration configuration, RoleService roleService, AccessTokenService accessTokenService, UserImpl.Factory userFactory, InMemoryRolePermissionResolver inMemoryRolePermissionResolver, com.google.common.eventbus.EventBus serverEventBus, GRNRegistry grnRegistry, PermissionAndRoleResolver permissionAndRoleResolver)
@Nullable public User loadById(String id)
loadById in interface UserServicepublic List<User> loadByIds(Collection<String> ids)
loadByIds in interface UserService@Nullable public User load(String username)
load in interface UserServicepublic Optional<User> loadByAuthServiceUidOrUsername(String authServiceUid, String username)
UserServiceloadByAuthServiceUidOrUsername in interface UserServiceauthServiceUid - the authentication service UID (tried first)username - the username (tried second)public int delete(String username)
delete in interface UserServicepublic int deleteById(String userId)
deleteById in interface UserServicepublic User create()
create in interface UserServicepublic List<User> loadAll()
loadAll in interface UserServicepublic <T extends Persisted> String save(T model) throws ValidationException
save in interface PersistedServicesave in class PersistedServiceImplValidationException@Deprecated public User getAdminUser()
getAdminUser in interface UserServicepublic Optional<User> getRootUser()
UserServicegetRootUser in interface UserServicepublic long count()
count in interface UserServicepublic List<User> loadAllForAuthServiceBackend(String authServiceBackendId)
loadAllForAuthServiceBackend in interface UserServicepublic Collection<User> loadAllForRole(Role role)
loadAllForRole in interface UserServicepublic Set<String> getRoleNames(User user)
getRoleNames in interface UserServicepublic List<org.apache.shiro.authz.Permission> getPermissionsForUser(User user)
getPermissionsForUser in interface UserServicepublic List<org.apache.shiro.authz.permission.WildcardPermission> getWildcardPermissionsForUser(User user)
getWildcardPermissionsForUser in interface UserServicepublic List<GRNPermission> getGRNPermissionsForUser(User user)
getGRNPermissionsForUser in interface UserServicepublic Set<String> getUserPermissionsFromRoles(User user)
getUserPermissionsFromRoles in interface UserServicepublic void dissociateAllUsersFromRole(Role role)
dissociateAllUsersFromRole in interface UserServiceCopyright © 2012–2021 Graylog, Inc.. All rights reserved.