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, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroyAll, save, saveWithoutValidation, validate, validate, validate@Inject public AccessTokenServiceImpl(MongoConnection mongoConnection)
public AccessToken load(String token)
load in interface AccessTokenServicepublic List<AccessToken> loadAll(String username)
loadAll in interface AccessTokenServicepublic AccessToken create(String username, String name)
create in interface AccessTokenServicepublic void touch(AccessToken accessToken) throws ValidationException
touch in interface AccessTokenServiceValidationExceptionpublic String save(AccessToken accessToken) throws ValidationException
save in interface AccessTokenServiceValidationExceptionCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.