@Repository @Transactional(value="defaultTransactionManager") public class JpaAuthorizationCodeRepository extends Object implements AuthorizationCodeRepository
Constructor and Description |
---|
JpaAuthorizationCodeRepository() |
Modifier and Type | Method and Description |
---|---|
AuthorizationCodeEntity |
getByCode(String code)
Get an authorization code from the repository by value.
|
Collection<AuthorizationCodeEntity> |
getExpiredCodes() |
Collection<AuthorizationCodeEntity> |
getExpiredCodes(PageCriteria pageCriteria) |
void |
remove(AuthorizationCodeEntity authorizationCodeEntity)
Remove an authorization code from the repository
|
AuthorizationCodeEntity |
save(AuthorizationCodeEntity authorizationCode)
Save an AuthorizationCodeEntity to the repository
|
public JpaAuthorizationCodeRepository()
@Transactional(value="defaultTransactionManager") public AuthorizationCodeEntity save(AuthorizationCodeEntity authorizationCode)
AuthorizationCodeRepository
save
in interface AuthorizationCodeRepository
authorizationCode
- the AuthorizationCodeEntity to save@Transactional(value="defaultTransactionManager") public AuthorizationCodeEntity getByCode(String code)
AuthorizationCodeRepository
getByCode
in interface AuthorizationCodeRepository
code
- the authorization code valuepublic void remove(AuthorizationCodeEntity authorizationCodeEntity)
AuthorizationCodeRepository
remove
in interface AuthorizationCodeRepository
public Collection<AuthorizationCodeEntity> getExpiredCodes()
getExpiredCodes
in interface AuthorizationCodeRepository
public Collection<AuthorizationCodeEntity> getExpiredCodes(PageCriteria pageCriteria)
getExpiredCodes
in interface AuthorizationCodeRepository
Copyright © 2018. All rights reserved.