diff --git a/src/main/java/org/ntlab/citrusserver/repositories/PublicBookManager.java b/src/main/java/org/ntlab/citrusserver/repositories/PublicBookManager.java index 7918841..e9dc852 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/PublicBookManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/PublicBookManager.java @@ -3,12 +3,42 @@ import org.ntlab.citrusserver.entities.Account; import org.ntlab.citrusserver.entities.Book; +import java.util.ArrayList; + public class PublicBookManager implements IBookListener{ + private final BookManager bookManager; + + public PublicBookManager(BookManager bookManager) { + this.bookManager = bookManager; + } + + public ArrayList getAllPublicBooks(){ + return null; + } + + public ArrayList searchBooksByTitle(String title){ + return null; + } + + public ArrayList searchBooksByTitle(String title, int sortBy){ + return null; + } + + public ArrayList searchBooksByAccount(String accountId){ + return null; + } + + public ArrayList searchBooksByAccount(String accountId, int sortBy){ + return null; + } + + public ArrayList searchBooksByTitleAndAccount(String title, String accountId){ + return null; + } @Override public void bookChanged(Account account, Book book) { - }