public class AccessTokenServiceImpl extends PersistedServiceImpl implements AccessTokenService
mongoConnection
Constructor and Description |
---|
AccessTokenServiceImpl(MongoConnection mongoConnection) |
Modifier and Type | Method and Description |
---|---|
AccessToken |
create(String username,
String name) |
AccessToken |
load(String token) |
List<AccessToken> |
loadAll(String username) |
String |
save(AccessToken accessToken) |
void |
touch(AccessToken accessToken) |
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, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
@Inject public AccessTokenServiceImpl(MongoConnection mongoConnection)
public AccessToken load(String token)
load
in interface AccessTokenService
public List<AccessToken> loadAll(String username)
loadAll
in interface AccessTokenService
public AccessToken create(String username, String name)
create
in interface AccessTokenService
public void touch(AccessToken accessToken) throws ValidationException
touch
in interface AccessTokenService
ValidationException
public String save(AccessToken accessToken) throws ValidationException
save
in interface AccessTokenService
ValidationException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.