public class UserServiceImpl extends PersistedServiceImpl implements UserService
mongoConnection| Constructor and Description |
|---|
UserServiceImpl(MongoConnection mongoConnection,
Configuration configuration,
RoleService roleService,
UserImpl.Factory userFactory,
Permissions permissions,
InMemoryRolePermissionResolver inMemoryRolePermissionResolver) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
User |
create() |
int |
delete(String username) |
void |
dissociateAllUsersFromRole(Role role) |
User |
getAdminUser() |
List<String> |
getPermissionsForUser(User user) |
Set<String> |
getRoleNames(User user) |
Set<String> |
getUserPermissionsFromRoles(User user) |
User |
load(String username) |
List<User> |
loadAll() |
Collection<User> |
loadAllForRole(Role role) |
<T extends Persisted> |
save(T model) |
User |
syncFromLdapEntry(LdapEntry userEntry,
LdapSettings ldapSettings,
String username) |
void |
updateFromLdap(User user,
LdapEntry userEntry,
LdapSettings ldapSettings,
String username) |
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, UserImpl.Factory userFactory, Permissions permissions, InMemoryRolePermissionResolver inMemoryRolePermissionResolver)
@Nullable public User load(String username)
load in interface UserServicepublic int delete(String username)
delete in interface UserServicepublic User create()
create in interface UserServicepublic List<User> loadAll()
loadAll in interface UserService@Nullable public User syncFromLdapEntry(LdapEntry userEntry, LdapSettings ldapSettings, String username)
syncFromLdapEntry in interface UserServicepublic void updateFromLdap(User user, LdapEntry userEntry, LdapSettings ldapSettings, String username)
updateFromLdap in interface UserServicepublic <T extends Persisted> String save(T model) throws ValidationException
save in interface PersistedServicesave in class PersistedServiceImplValidationExceptionpublic User getAdminUser()
getAdminUser in interface UserServicepublic long count()
count in interface UserServicepublic Collection<User> loadAllForRole(Role role)
loadAllForRole in interface UserServicepublic Set<String> getRoleNames(User user)
getRoleNames in interface UserServicepublic List<String> getPermissionsForUser(User user)
getPermissionsForUser in interface UserServicepublic Set<String> getUserPermissionsFromRoles(User user)
getUserPermissionsFromRoles in interface UserServicepublic void dissociateAllUsersFromRole(Role role)
dissociateAllUsersFromRole in interface UserServiceCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.