public class UserServiceImpl extends PersistedServiceImpl implements UserService
mongoConnection
Constructor and Description |
---|
UserServiceImpl(MongoConnection mongoConnection,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
User |
create() |
User |
getAdminUser() |
User |
load(String username) |
List<User> |
loadAll() |
<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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, destroyAll, saveWithoutValidation, validate, validate, validate
@Inject public UserServiceImpl(MongoConnection mongoConnection, Configuration configuration)
public User load(String username)
load
in interface UserService
public User create()
create
in interface UserService
public List<User> loadAll()
loadAll
in interface UserService
public User syncFromLdapEntry(LdapEntry userEntry, LdapSettings ldapSettings, String username)
syncFromLdapEntry
in interface UserService
public void updateFromLdap(User user, LdapEntry userEntry, LdapSettings ldapSettings, String username)
updateFromLdap
in interface UserService
public <T extends Persisted> String save(T model) throws ValidationException
save
in interface PersistedService
save
in class PersistedServiceImpl
ValidationException
public User getAdminUser()
getAdminUser
in interface UserService
public long count()
count
in interface UserService
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.