Package org.openmetadata.service.jdbi3
Class TokenRepository
- java.lang.Object
-
- org.openmetadata.service.jdbi3.TokenRepository
-
public class TokenRepository extends Object
-
-
Constructor Summary
Constructors Constructor Description TokenRepository(CollectionDAO dao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAllToken(List<String> tokens)voiddeleteToken(String token)voiddeleteTokenByUserAndType(String userId, String type)TokenInterfacefindByToken(String token)List<TokenInterface>findByUserIdAndType(String userId, String type)voidinsertToken(TokenInterface tokenInterface)
-
-
-
Constructor Detail
-
TokenRepository
public TokenRepository(CollectionDAO dao)
-
-
Method Detail
-
findByToken
public TokenInterface findByToken(String token)
-
findByUserIdAndType
public List<TokenInterface> findByUserIdAndType(String userId, String type)
-
insertToken
public void insertToken(TokenInterface tokenInterface)
-
deleteToken
public void deleteToken(String token)
-
-