Açıklama Yok

8f222af039b4d1b8ebe79ad502ce1b5dcb58df26.svn-base 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.rdlze.radializebase.interfaces;
  2. import java.io.IOException;
  3. import javax.xml.parsers.ParserConfigurationException;
  4. import org.apache.lucene.queryparser.classic.ParseException;
  5. import org.xml.sax.SAXException;
  6. import com.rdlze.radializeutils.objects.BigTitleResp;
  7. import com.rdlze.radializeutils.objects.MBResp;
  8. public interface InterfaceMusicBrainzController {
  9. /**
  10. * This method searches in music brainz server RMI using the bigTitle
  11. * @param bigTitle
  12. * @param nGramSize
  13. * @param mbssi . The Music Brainz Interface RMI
  14. * @param numResults
  15. * @return
  16. * @throws IOException
  17. * @throws ParseException
  18. * @see BigTitleResp
  19. *
  20. */
  21. public BigTitleResp searchBigTitle(String bigTitle, int nGramSize, int numResults, boolean shallContainResp) throws IOException, ParseException;
  22. /**
  23. *
  24. * @param bigTitle
  25. * @param nGramSize
  26. * @return
  27. * @throws IOException
  28. * @throws ParserConfigurationException
  29. * @throws SAXException
  30. * @throws InterruptedException
  31. */
  32. public MBResp searchBigTitle(String bigTitle, int nGramSize) throws IOException, ParserConfigurationException, SAXException, InterruptedException;
  33. /**This Function searches in music brainz http server the artist and song
  34. * @param artist The artist name to be search
  35. * @param song The song name to be search
  36. * @param proximitySearch Defines the algorithm to be used, if this value is true, It's acceptable not exactly words
  37. * .if this value is false, searches by exactly word
  38. * @param limit The limit of results in music brainz query
  39. * @param offset
  40. * @param hostMB The music brainz host. Default www.radialize.com.br:5000
  41. * @return
  42. * @throws ParserConfigurationException
  43. * @throws SAXException
  44. * @throws IOException
  45. * @throws InterruptedException
  46. * @see MBResp
  47. */
  48. public MBResp searchArtSong(String artist, String song, boolean proximitySearch, int limit, int offset, String hostMB) throws ParserConfigurationException, SAXException, IOException, InterruptedException;
  49. /***
  50. *
  51. * @param artist
  52. * @param song
  53. * @param proximitySearch
  54. * @param limit
  55. * @param mbssi
  56. * @return
  57. * @throws ParseException
  58. * @throws IOException
  59. */
  60. public MBResp searchArtSong(String artist, String song, boolean proximitySearch, int limit) throws ParseException, IOException;
  61. }