Interface CollectionDAO.TokenDAO

  • Enclosing interface:
    CollectionDAO

    public static interface CollectionDAO.TokenDAO
    • Method Detail

      • findByToken

        TokenInterface findByToken​(String token)
                            throws org.jdbi.v3.core.statement.StatementException
        Throws:
        org.jdbi.v3.core.statement.StatementException
      • getAllUserTokenWithType

        List<TokenInterface> getAllUserTokenWithType​(String userId,
                                                     String tokenType)
                                              throws org.jdbi.v3.core.statement.StatementException
        Throws:
        org.jdbi.v3.core.statement.StatementException
      • insert

        void insert​(String json)
      • delete

        void delete​(String token)
      • deleteAll

        void deleteAll​(List<String> tokens)
      • deleteTokenByUserAndType

        void deleteTokenByUserAndType​(String userid,
                                      String tokenType)