@Component public class AccessTokenLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AccessTokenLogic() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String key) |
Pair<Integer,List<AccessTokenTO>> |
list(int page,
int size,
List<OrderByClause> orderByClauses) |
Pair<String,Date> |
login() |
void |
logout() |
Pair<String,Date> |
refresh() |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected AccessTokenTO |
resolveReference(Method method,
Object... args) |
@PreAuthorize(value="isAuthenticated()") public Pair<String,Date> login()
@PreAuthorize(value="isAuthenticated()") public Pair<String,Date> refresh()
@PreAuthorize(value="isAuthenticated()") public void logout()
@PreAuthorize(value="hasRole(\'ACCESS_TOKEN_LIST\')") public Pair<Integer,List<AccessTokenTO>> list(int page, int size, List<OrderByClause> orderByClauses)
@PreAuthorize(value="hasRole(\'ACCESS_TOKEN_DELETE\')") public void delete(String key)
protected AccessTokenTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.