@Transactional @Service(value="userTokenDomainService") public class UserTokenDomainService extends de.alpharogroup.service.domain.AbstractDomainService<Integer,UserToken,de.alpharogroup.user.entities.UserTokens,de.alpharogroup.user.repositories.UserTokensDao,UserTokensMapper> implements UserTokenService
UserTokenDomainService.| Constructor and Description |
|---|
UserTokenDomainService() |
| Modifier and Type | Method and Description |
|---|---|
UserToken |
find(String username)
Find all token from the given user name.
|
List<UserToken> |
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.
|
void |
setUserTokensDao(de.alpharogroup.user.repositories.UserTokensDao usersDao)
Sets the specific
UserTokensDao. |
void |
setUserTokensMapper(UserTokensMapper mapper)
Sets the specific
UserTokensMapper. |
create, delete, exists, findAll, getDao, getDomainObjectClass, getEntityClass, getMapper, persist, read, setDao, setMapper, updatepublic UserToken find(String username)
UserTokenServicefind in interface UserTokenServiceusername - the usernameUserTokens or null if no result.public List<UserToken> findAll(String username)
UserTokenServicefindAll in interface UserTokenServiceusername - the usernamepublic String getAutheticationToken(String username)
UserTokenServicegetAutheticationToken in interface UserTokenServiceusername - the usernamepublic boolean isValid(String token)
UserTokenServiceisValid in interface UserTokenServicetoken - the token to validate@Autowired public void setUserTokensDao(de.alpharogroup.user.repositories.UserTokensDao usersDao)
UserTokensDao.usersDao - the new UserTokensDao.@Autowired public void setUserTokensMapper(UserTokensMapper mapper)
UserTokensMapper.mapper - the new UserTokensMapper.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.