/portlets/twitter-portlet/docroot/WEB-INF/service/com/liferay/twitter/service/FeedLocalService.java

https://github.com/l15k4/liferay-plugins · Java · 244 lines · 72 code · 23 blank · 149 comment · 0 complexity · 16127b64249b3d02ba9bdc15e166ac91 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.twitter.service;
  15. import com.liferay.portal.kernel.exception.PortalException;
  16. import com.liferay.portal.kernel.exception.SystemException;
  17. import com.liferay.portal.kernel.transaction.Isolation;
  18. import com.liferay.portal.kernel.transaction.Propagation;
  19. import com.liferay.portal.kernel.transaction.Transactional;
  20. import com.liferay.portal.service.PersistedModelLocalService;
  21. /**
  22. * The interface for the feed local service.
  23. *
  24. * <p>
  25. * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
  26. * </p>
  27. *
  28. * @author Brian Wing Shun Chan
  29. * @see FeedLocalServiceUtil
  30. * @see com.liferay.twitter.service.base.FeedLocalServiceBaseImpl
  31. * @see com.liferay.twitter.service.impl.FeedLocalServiceImpl
  32. * @generated
  33. */
  34. @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
  35. PortalException.class, SystemException.class})
  36. public interface FeedLocalService extends PersistedModelLocalService {
  37. /*
  38. * NOTE FOR DEVELOPERS:
  39. *
  40. * Never modify or reference this interface directly. Always use {@link FeedLocalServiceUtil} to access the feed local service. Add custom service methods to {@link com.liferay.twitter.service.impl.FeedLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
  41. */
  42. /**
  43. * Adds the feed to the database. Also notifies the appropriate model listeners.
  44. *
  45. * @param feed the feed
  46. * @return the feed that was added
  47. * @throws SystemException if a system exception occurred
  48. */
  49. public com.liferay.twitter.model.Feed addFeed(
  50. com.liferay.twitter.model.Feed feed)
  51. throws com.liferay.portal.kernel.exception.SystemException;
  52. /**
  53. * Creates a new feed with the primary key. Does not add the feed to the database.
  54. *
  55. * @param feedId the primary key for the new feed
  56. * @return the new feed
  57. */
  58. public com.liferay.twitter.model.Feed createFeed(long feedId);
  59. /**
  60. * Deletes the feed with the primary key from the database. Also notifies the appropriate model listeners.
  61. *
  62. * @param feedId the primary key of the feed
  63. * @throws PortalException if a feed with the primary key could not be found
  64. * @throws SystemException if a system exception occurred
  65. */
  66. public void deleteFeed(long feedId)
  67. throws com.liferay.portal.kernel.exception.PortalException,
  68. com.liferay.portal.kernel.exception.SystemException;
  69. /**
  70. * Deletes the feed from the database. Also notifies the appropriate model listeners.
  71. *
  72. * @param feed the feed
  73. * @throws SystemException if a system exception occurred
  74. */
  75. public void deleteFeed(com.liferay.twitter.model.Feed feed)
  76. throws com.liferay.portal.kernel.exception.SystemException;
  77. /**
  78. * Performs a dynamic query on the database and returns the matching rows.
  79. *
  80. * @param dynamicQuery the dynamic query
  81. * @return the matching rows
  82. * @throws SystemException if a system exception occurred
  83. */
  84. @SuppressWarnings("rawtypes")
  85. public java.util.List dynamicQuery(
  86. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  87. throws com.liferay.portal.kernel.exception.SystemException;
  88. /**
  89. * Performs a dynamic query on the database and returns a range of the matching rows.
  90. *
  91. * <p>
  92. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  93. * </p>
  94. *
  95. * @param dynamicQuery the dynamic query
  96. * @param start the lower bound of the range of model instances
  97. * @param end the upper bound of the range of model instances (not inclusive)
  98. * @return the range of matching rows
  99. * @throws SystemException if a system exception occurred
  100. */
  101. @SuppressWarnings("rawtypes")
  102. public java.util.List dynamicQuery(
  103. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  104. int end) throws com.liferay.portal.kernel.exception.SystemException;
  105. /**
  106. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  107. *
  108. * <p>
  109. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  110. * </p>
  111. *
  112. * @param dynamicQuery the dynamic query
  113. * @param start the lower bound of the range of model instances
  114. * @param end the upper bound of the range of model instances (not inclusive)
  115. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  116. * @return the ordered range of matching rows
  117. * @throws SystemException if a system exception occurred
  118. */
  119. @SuppressWarnings("rawtypes")
  120. public java.util.List dynamicQuery(
  121. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  122. int end,
  123. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  124. throws com.liferay.portal.kernel.exception.SystemException;
  125. /**
  126. * Returns the number of rows that match the dynamic query.
  127. *
  128. * @param dynamicQuery the dynamic query
  129. * @return the number of rows that match the dynamic query
  130. * @throws SystemException if a system exception occurred
  131. */
  132. public long dynamicQueryCount(
  133. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  134. throws com.liferay.portal.kernel.exception.SystemException;
  135. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  136. public com.liferay.twitter.model.Feed fetchFeed(long feedId)
  137. throws com.liferay.portal.kernel.exception.SystemException;
  138. /**
  139. * Returns the feed with the primary key.
  140. *
  141. * @param feedId the primary key of the feed
  142. * @return the feed
  143. * @throws PortalException if a feed with the primary key could not be found
  144. * @throws SystemException if a system exception occurred
  145. */
  146. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  147. public com.liferay.twitter.model.Feed getFeed(long feedId)
  148. throws com.liferay.portal.kernel.exception.PortalException,
  149. com.liferay.portal.kernel.exception.SystemException;
  150. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  151. public com.liferay.portal.model.PersistedModel getPersistedModel(
  152. java.io.Serializable primaryKeyObj)
  153. throws com.liferay.portal.kernel.exception.PortalException,
  154. com.liferay.portal.kernel.exception.SystemException;
  155. /**
  156. * Returns a range of all the feeds.
  157. *
  158. * <p>
  159. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  160. * </p>
  161. *
  162. * @param start the lower bound of the range of feeds
  163. * @param end the upper bound of the range of feeds (not inclusive)
  164. * @return the range of feeds
  165. * @throws SystemException if a system exception occurred
  166. */
  167. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  168. public java.util.List<com.liferay.twitter.model.Feed> getFeeds(int start,
  169. int end) throws com.liferay.portal.kernel.exception.SystemException;
  170. /**
  171. * Returns the number of feeds.
  172. *
  173. * @return the number of feeds
  174. * @throws SystemException if a system exception occurred
  175. */
  176. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  177. public int getFeedsCount()
  178. throws com.liferay.portal.kernel.exception.SystemException;
  179. /**
  180. * Updates the feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  181. *
  182. * @param feed the feed
  183. * @return the feed that was updated
  184. * @throws SystemException if a system exception occurred
  185. */
  186. public com.liferay.twitter.model.Feed updateFeed(
  187. com.liferay.twitter.model.Feed feed)
  188. throws com.liferay.portal.kernel.exception.SystemException;
  189. /**
  190. * Updates the feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  191. *
  192. * @param feed the feed
  193. * @param merge whether to merge the feed with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
  194. * @return the feed that was updated
  195. * @throws SystemException if a system exception occurred
  196. */
  197. public com.liferay.twitter.model.Feed updateFeed(
  198. com.liferay.twitter.model.Feed feed, boolean merge)
  199. throws com.liferay.portal.kernel.exception.SystemException;
  200. /**
  201. * Returns the Spring bean ID for this bean.
  202. *
  203. * @return the Spring bean ID for this bean
  204. */
  205. public java.lang.String getBeanIdentifier();
  206. /**
  207. * Sets the Spring bean ID for this bean.
  208. *
  209. * @param beanIdentifier the Spring bean ID for this bean
  210. */
  211. public void setBeanIdentifier(java.lang.String beanIdentifier);
  212. public void updateFeed(long userId)
  213. throws com.liferay.portal.kernel.exception.PortalException,
  214. com.liferay.portal.kernel.exception.SystemException;
  215. public void updateFeeds()
  216. throws com.liferay.portal.kernel.exception.PortalException,
  217. com.liferay.portal.kernel.exception.SystemException;
  218. public void updateFeeds(long companyId)
  219. throws com.liferay.portal.kernel.exception.PortalException,
  220. com.liferay.portal.kernel.exception.SystemException;
  221. }