services.NewsArticleServiceInterface Maven / Gradle / Ivy
/*
* NewsArticleo change this license header, choose License Headers in Project Properties.
* NewsArticleo change this template file, choose NewsArticleools | NewsArticleemplates
* and open the template in the editor.
*/
package services;
import db.NewsArticle;
import io.reactivex.Observable;
import javax.ejb.Remote;
/**
*
* @author zua
*/
@Remote
public interface NewsArticleServiceInterface extends DBService {
public NewsArticle findArticleWithTitle(String title);
public Observable findAllArticles();
public Observable findArticlesWithText(String search);
public Observable findArticlesWithText(String username, String search);
public Observable findArticlesWithCategory(String category);
public Observable findArticlesWithCategory(String username, String category);
public Observable findArticlesWithSource(String sourceId);
public Observable findArticlesWithSource(String username, String sourceId);
public Observable findArticlesWithLanguage(String language);
public Observable findArticlesWithLanguage(String username, String language);
public Observable findArticlesWithCountry(String value);
public Observable findArticlesWithCountry(String username, String value);
public Observable findArticlesWithoutShortUrl();
public Observable findAllRead(String username);
public Observable findAllFavorite(String username);
public Observable findAllFake(String username);
public Observable findLatest();
public Observable findLatest(String username);
public Observable findOldest();
public Observable findOldest(String username);
public boolean isRead(String username, NewsArticle entity);
public boolean isFavorite(String username, NewsArticle entity);
public boolean isFake(String username, NewsArticle entity);
public void markAsRead(String username, NewsArticle entity);
public void markAsFavorite(String username, NewsArticle entity);
public void markAsFake(String username, NewsArticle entity);
public void removeMarkAsRead(String username, NewsArticle entity);
public void removeMarkAsFavorite(String username, NewsArticle entity);
public void removeMarkAsFake(String username, NewsArticle entity);
public Observable findAll(int page, int pageSize);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy