Ei kuvausta

bc4aa910d58829c6cad06ea58e7ce258dca2bd71.svn-base 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package com.rdlze.radializebase.interfaces;
  2. import java.rmi.RemoteException;
  3. import java.util.List;
  4. import com.idealizeframework.irf.base.facade.RemoteFacade;
  5. import com.rdlze.radializebase.utils.AIRecommendedItem;
  6. /**
  7. *
  8. * @author Alex Amorim Dutra
  9. *
  10. */
  11. public interface RemoteRadializeBatchFacade extends RemoteFacade {
  12. /**
  13. * Process the recommendations request
  14. *
  15. * @param input
  16. * String with input from client
  17. * @return String with the recommendations
  18. * @throws RemoteException
  19. * thrown when this object cannot be accessed remotely
  20. */
  21. public String getRecommendations(String input) throws RemoteException;
  22. // search by artist
  23. // 1
  24. public List<AIRecommendedItem> searchByArtistReturnArtists(long userId,
  25. List<Integer> artistsIds, int howMany) throws RemoteException;
  26. // 2
  27. public List<AIRecommendedItem> searchByArtistReturnSongs(long userId,
  28. List<Integer> artistsIds, int howMany) throws RemoteException;
  29. // 3
  30. public List<AIRecommendedItem> searchByArtistReturnRadios(long userId,
  31. List<Integer> artistsIds, int howMany) throws RemoteException;
  32. // 4
  33. public List<AIRecommendedItem> searchByArtistReturnTags(long userId,
  34. List<Integer> artistsIds, int howMany) throws RemoteException;
  35. // search by song
  36. // 5
  37. public List<AIRecommendedItem> searchBySongReturnArtists(long userId,
  38. List<Integer> songsIds, int howMany) throws RemoteException;
  39. // 6
  40. public List<AIRecommendedItem> searchBySongReturnSongs(long userId,
  41. List<Integer> songsIds, int howMany) throws RemoteException;
  42. // 7
  43. public List<AIRecommendedItem> searchBySongReturnRadios(long userId,
  44. List<Integer> songsIds, int howMany) throws RemoteException;
  45. // 8
  46. public List<AIRecommendedItem> searchBySongReturnTags(long userId,
  47. List<Integer> songsIds, int howMany) throws RemoteException;
  48. // search by radio
  49. // 9
  50. public List<AIRecommendedItem> searchByRadioReturnArtists(long userId,
  51. List<Integer> radiosIds, int howMany) throws RemoteException;
  52. // 10
  53. public List<AIRecommendedItem> searchByRadioReturnSongs(long userId,
  54. List<Integer> radiosIds, int howMany) throws RemoteException;
  55. // 11
  56. public List<AIRecommendedItem> searchByRadioReturnRadios(long userId,
  57. List<Integer> radiosIds, int howMany) throws RemoteException;
  58. // 12
  59. public List<AIRecommendedItem> searchByRadioReturnTags(long userId,
  60. List<Integer> radiosIds, int howMany) throws RemoteException;
  61. // search by tag
  62. // 13
  63. public List<AIRecommendedItem> searchByTagReturnArtists(long userId,
  64. List<Integer> tagsIds, int howMany) throws RemoteException;
  65. // 14
  66. public List<AIRecommendedItem> searchByTagReturnSongs(long userId,
  67. List<Integer> tagsIds, int howMany) throws RemoteException;
  68. // 15
  69. public List<AIRecommendedItem> searchByTagReturnRadios(long userId,
  70. List<Integer> tagsIds, int howMany) throws RemoteException;
  71. // 16
  72. public List<AIRecommendedItem> searchByTagReturnTags(long userId,
  73. List<Integer> tagsIds, int howMany) throws RemoteException;
  74. // get recommendations
  75. // 17
  76. public List<AIRecommendedItem> getRecommendationsArtists(long userId,
  77. int howMany, List<Integer> momentsIds) throws RemoteException;
  78. // 18
  79. public List<AIRecommendedItem> getRecommendationsSongs(long userId,
  80. int howMany, List<Integer> momentsIds) throws RemoteException;
  81. // 19
  82. public List<AIRecommendedItem> getRecommendationsRadios(long userId,
  83. int howMany, List<Integer> momentsIds) throws RemoteException;
  84. // 20
  85. public List<AIRecommendedItem> getRecommendationsTags(long userId,
  86. int howMany, List<Integer> momentsIds) throws RemoteException;
  87. // 21
  88. public List<AIRecommendedItem> getRecommendationsFriends(long userId,
  89. int howMany, List<Integer> momentsIds) throws RemoteException;
  90. }