@Transactional @Service(value="userTokensService") public class UserTokensBusinessService extends de.alpharogroup.db.service.jpa.AbstractBusinessService<de.alpharogroup.user.entities.UserTokens,Integer,de.alpharogroup.user.repositories.UserTokensDao> implements UserTokensService
| Constructor and Description |
|---|
UserTokensBusinessService() |
| Modifier and Type | Method and Description |
|---|---|
de.alpharogroup.user.entities.UserTokens |
find(String username)
Find all token from the given user name.
|
List<de.alpharogroup.user.entities.UserTokens> |
findAll(String username)
Find all token from the given user name.
|
String |
getAutheticationToken(String username)
Gets the authetication token from the given user name.
|
boolean |
isValid(String token)
Checks if the given token is valid.
|
String |
newAuthenticationToken(String username)
Factory method that creates a new authentication token from the given user name.
|
void |
setUserTokensDao(de.alpharogroup.user.repositories.UserTokensDao userTokensDao) |
delete, delete, delete, evict, exists, findAll, get, getDao, getQuery, load, merge, merge, refresh, save, save, saveOrUpdate, saveOrUpdate, setDaopublic de.alpharogroup.user.entities.UserTokens find(String username)
UserTokensServicefind in interface UserTokensServiceusername - the usernameUserTokens or null if no result.public List<de.alpharogroup.user.entities.UserTokens> findAll(String username)
UserTokensServicefindAll in interface UserTokensServiceusername - the usernamepublic String getAutheticationToken(String username)
UserTokensServicegetAutheticationToken in interface UserTokensServiceusername - the usernamepublic boolean isValid(String token)
UserTokensServiceisValid in interface UserTokensServicetoken - the token to validatepublic String newAuthenticationToken(String username)
newAuthenticationToken in interface UserTokensServiceusername - the username@Autowired public void setUserTokensDao(de.alpharogroup.user.repositories.UserTokensDao userTokensDao)
Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.