2021-07-08 13:02:27 +02:00
|
|
|
package eu.dnetlib.uoaorcidservice.dao;
|
2021-01-14 12:31:25 +01:00
|
|
|
|
2021-07-08 13:02:27 +02:00
|
|
|
import eu.dnetlib.uoaorcidservice.dao.customDAOs.MongoDBUserTokensDAOCustom;
|
2021-01-14 12:31:25 +01:00
|
|
|
import eu.dnetlib.uoaorcidservice.entities.UserTokens;
|
|
|
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
2021-07-08 13:02:27 +02:00
|
|
|
import org.springframework.stereotype.Repository;
|
2021-01-14 12:31:25 +01:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2021-07-08 13:02:27 +02:00
|
|
|
@Repository
|
|
|
|
public interface MongoDBUserTokensDAO extends MongoDBUserTokensDAOCustom, UserTokensDAO, MongoRepository<UserTokens, String> {
|
2021-01-14 12:31:25 +01:00
|
|
|
|
|
|
|
List<UserTokens> findAll();
|
|
|
|
|
|
|
|
UserTokens findByAaiId(String AaiId);
|
|
|
|
|
|
|
|
UserTokens findByOrcid(String Orcid);
|
|
|
|
|
|
|
|
UserTokens save(UserTokens userTokens);
|
|
|
|
|
|
|
|
void deleteAll();
|
|
|
|
|
|
|
|
void deleteByAaiId(String AaiId);
|
|
|
|
|
|
|
|
void deleteByOrcid(String Orcid);
|
|
|
|
}
|