@Repository(value="blCrossAppAuthDao") public class CrossAppAuthDaoImpl extends Object implements CrossAppAuthDao
CrossAppAuthDao
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration |
Constructor and Description |
---|
CrossAppAuthDaoImpl() |
Modifier and Type | Method and Description |
---|---|
CrossAppAuthDetail |
readByUserAndToken(Long userId,
String token)
Returns a
CrossAppAuthDetail for the given userId and token. |
CrossAppAuthDetail |
readByUserId(Long userId)
Returns a
CrossAppAuthDetail for the given userId |
CrossAppAuthDetail |
saveDetail(CrossAppAuthDetail detail)
Persists the given
CrossAppAuthDetail |
protected javax.persistence.EntityManager em
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
public CrossAppAuthDetail saveDetail(CrossAppAuthDetail detail)
CrossAppAuthDao
CrossAppAuthDetail
saveDetail
in interface CrossAppAuthDao
public CrossAppAuthDetail readByUserId(Long userId)
CrossAppAuthDao
CrossAppAuthDetail
for the given userIdreadByUserId
in interface CrossAppAuthDao
public CrossAppAuthDetail readByUserAndToken(Long userId, String token)
CrossAppAuthDao
CrossAppAuthDetail
for the given userId and token. This method will only return
CrossAppAuthDetails that have not been marked as used.readByUserAndToken
in interface CrossAppAuthDao
Copyright © 2021. All rights reserved.