Bez popisu

9a54e474ac3094ab7489981fad4b48402a1e8a2f.svn-base 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.rdlze.radializebase.interfaces;
  2. import java.io.Serializable;
  3. import java.rmi.Remote;
  4. import java.rmi.RemoteException;
  5. import java.util.List;
  6. import com.rdlze.radializeutils.objects.IndexResponse;
  7. import com.rdlze.radializeutils.objects.SearchBean;
  8. public interface InterfaceSearchServer extends Remote, Serializable
  9. {
  10. /***
  11. * This is the user search. You can search song, artist, genre or radio in database.
  12. * @param bean. The bean contains the information about what will search.
  13. * There are two standard parameters, text and type.
  14. * Text is the word will search, type is the kind of search{ 0 - All, 1 - Artist, 2 - Song, 3 - Genre, 4 - Radio}
  15. * @return IndexResponse
  16. * @throws RemoteException
  17. * @see {@link SearchBean, IndexResponse}
  18. */
  19. public IndexResponse search(SearchBean bean)throws RemoteException;
  20. /**
  21. * This method get The auto complete set for user.
  22. * @param text. Partial text to get auto complete, this text has to have the size bigger than 2
  23. * @param quantity. The size of return.
  24. * @return List<IndexResponse>
  25. * @throws RemoteException
  26. * @see {@link IndexResponse}
  27. */
  28. public List<IndexResponse> autocomplete(String text , int quantity)throws RemoteException;
  29. }