/portlets/calendar-portlet/docroot/WEB-INF/service/com/liferay/calendar/service/CalendarBookingLocalService.java

https://github.com/stevenjiancao/liferay-plugins · Java · 327 lines · 135 code · 34 blank · 158 comment · 0 complexity · 55f8c4ce9748c831a417aa23c5dc5afd 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.calendar.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 calendar booking 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 Eduardo Lundgren
  29. * @see CalendarBookingLocalServiceUtil
  30. * @see com.liferay.calendar.service.base.CalendarBookingLocalServiceBaseImpl
  31. * @see com.liferay.calendar.service.impl.CalendarBookingLocalServiceImpl
  32. * @generated
  33. */
  34. @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
  35. PortalException.class, SystemException.class})
  36. public interface CalendarBookingLocalService extends PersistedModelLocalService {
  37. /*
  38. * NOTE FOR DEVELOPERS:
  39. *
  40. * Never modify or reference this interface directly. Always use {@link CalendarBookingLocalServiceUtil} to access the calendar booking local service. Add custom service methods to {@link com.liferay.calendar.service.impl.CalendarBookingLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
  41. */
  42. /**
  43. * Adds the calendar booking to the database. Also notifies the appropriate model listeners.
  44. *
  45. * @param calendarBooking the calendar booking
  46. * @return the calendar booking that was added
  47. * @throws SystemException if a system exception occurred
  48. */
  49. public com.liferay.calendar.model.CalendarBooking addCalendarBooking(
  50. com.liferay.calendar.model.CalendarBooking calendarBooking)
  51. throws com.liferay.portal.kernel.exception.SystemException;
  52. /**
  53. * Creates a new calendar booking with the primary key. Does not add the calendar booking to the database.
  54. *
  55. * @param calendarBookingId the primary key for the new calendar booking
  56. * @return the new calendar booking
  57. */
  58. public com.liferay.calendar.model.CalendarBooking createCalendarBooking(
  59. long calendarBookingId);
  60. /**
  61. * Deletes the calendar booking with the primary key from the database. Also notifies the appropriate model listeners.
  62. *
  63. * @param calendarBookingId the primary key of the calendar booking
  64. * @throws PortalException if a calendar booking with the primary key could not be found
  65. * @throws SystemException if a system exception occurred
  66. */
  67. public void deleteCalendarBooking(long calendarBookingId)
  68. throws com.liferay.portal.kernel.exception.PortalException,
  69. com.liferay.portal.kernel.exception.SystemException;
  70. /**
  71. * Deletes the calendar booking from the database. Also notifies the appropriate model listeners.
  72. *
  73. * @param calendarBooking the calendar booking
  74. * @throws SystemException if a system exception occurred
  75. */
  76. public void deleteCalendarBooking(
  77. com.liferay.calendar.model.CalendarBooking calendarBooking)
  78. throws com.liferay.portal.kernel.exception.SystemException;
  79. /**
  80. * Performs a dynamic query on the database and returns the matching rows.
  81. *
  82. * @param dynamicQuery the dynamic query
  83. * @return the matching rows
  84. * @throws SystemException if a system exception occurred
  85. */
  86. @SuppressWarnings("rawtypes")
  87. public java.util.List dynamicQuery(
  88. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  89. throws com.liferay.portal.kernel.exception.SystemException;
  90. /**
  91. * Performs a dynamic query on the database and returns a range of the matching rows.
  92. *
  93. * <p>
  94. * 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.
  95. * </p>
  96. *
  97. * @param dynamicQuery the dynamic query
  98. * @param start the lower bound of the range of model instances
  99. * @param end the upper bound of the range of model instances (not inclusive)
  100. * @return the range of matching rows
  101. * @throws SystemException if a system exception occurred
  102. */
  103. @SuppressWarnings("rawtypes")
  104. public java.util.List dynamicQuery(
  105. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  106. int end) throws com.liferay.portal.kernel.exception.SystemException;
  107. /**
  108. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  109. *
  110. * <p>
  111. * 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.
  112. * </p>
  113. *
  114. * @param dynamicQuery the dynamic query
  115. * @param start the lower bound of the range of model instances
  116. * @param end the upper bound of the range of model instances (not inclusive)
  117. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  118. * @return the ordered range of matching rows
  119. * @throws SystemException if a system exception occurred
  120. */
  121. @SuppressWarnings("rawtypes")
  122. public java.util.List dynamicQuery(
  123. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  124. int end,
  125. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  126. throws com.liferay.portal.kernel.exception.SystemException;
  127. /**
  128. * Returns the number of rows that match the dynamic query.
  129. *
  130. * @param dynamicQuery the dynamic query
  131. * @return the number of rows that match the dynamic query
  132. * @throws SystemException if a system exception occurred
  133. */
  134. public long dynamicQueryCount(
  135. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  136. throws com.liferay.portal.kernel.exception.SystemException;
  137. /**
  138. * Returns the calendar booking with the primary key.
  139. *
  140. * @param calendarBookingId the primary key of the calendar booking
  141. * @return the calendar booking
  142. * @throws PortalException if a calendar booking with the primary key could not be found
  143. * @throws SystemException if a system exception occurred
  144. */
  145. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  146. public com.liferay.calendar.model.CalendarBooking getCalendarBooking(
  147. long calendarBookingId)
  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 the calendar booking with the UUID in the group.
  157. *
  158. * @param uuid the UUID of calendar booking
  159. * @param groupId the group id of the calendar booking
  160. * @return the calendar booking
  161. * @throws PortalException if a calendar booking with the UUID in the group could not be found
  162. * @throws SystemException if a system exception occurred
  163. */
  164. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  165. public com.liferay.calendar.model.CalendarBooking getCalendarBookingByUuidAndGroupId(
  166. java.lang.String uuid, long groupId)
  167. throws com.liferay.portal.kernel.exception.PortalException,
  168. com.liferay.portal.kernel.exception.SystemException;
  169. /**
  170. * Returns a range of all the calendar bookings.
  171. *
  172. * <p>
  173. * 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.
  174. * </p>
  175. *
  176. * @param start the lower bound of the range of calendar bookings
  177. * @param end the upper bound of the range of calendar bookings (not inclusive)
  178. * @return the range of calendar bookings
  179. * @throws SystemException if a system exception occurred
  180. */
  181. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  182. public java.util.List<com.liferay.calendar.model.CalendarBooking> getCalendarBookings(
  183. int start, int end)
  184. throws com.liferay.portal.kernel.exception.SystemException;
  185. /**
  186. * Returns the number of calendar bookings.
  187. *
  188. * @return the number of calendar bookings
  189. * @throws SystemException if a system exception occurred
  190. */
  191. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  192. public int getCalendarBookingsCount()
  193. throws com.liferay.portal.kernel.exception.SystemException;
  194. /**
  195. * Updates the calendar booking in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  196. *
  197. * @param calendarBooking the calendar booking
  198. * @return the calendar booking that was updated
  199. * @throws SystemException if a system exception occurred
  200. */
  201. public com.liferay.calendar.model.CalendarBooking updateCalendarBooking(
  202. com.liferay.calendar.model.CalendarBooking calendarBooking)
  203. throws com.liferay.portal.kernel.exception.SystemException;
  204. /**
  205. * Updates the calendar booking in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  206. *
  207. * @param calendarBooking the calendar booking
  208. * @param merge whether to merge the calendar booking 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.
  209. * @return the calendar booking that was updated
  210. * @throws SystemException if a system exception occurred
  211. */
  212. public com.liferay.calendar.model.CalendarBooking updateCalendarBooking(
  213. com.liferay.calendar.model.CalendarBooking calendarBooking,
  214. boolean merge)
  215. throws com.liferay.portal.kernel.exception.SystemException;
  216. /**
  217. * Returns the Spring bean ID for this bean.
  218. *
  219. * @return the Spring bean ID for this bean
  220. */
  221. public java.lang.String getBeanIdentifier();
  222. /**
  223. * Sets the Spring bean ID for this bean.
  224. *
  225. * @param beanIdentifier the Spring bean ID for this bean
  226. */
  227. public void setBeanIdentifier(java.lang.String beanIdentifier);
  228. public com.liferay.calendar.model.CalendarBooking addCalendarBooking(
  229. long userId, long calendarEventId, long calendarResourceId,
  230. boolean required,
  231. com.liferay.portal.service.ServiceContext serviceContext)
  232. throws com.liferay.portal.kernel.exception.PortalException,
  233. com.liferay.portal.kernel.exception.SystemException;
  234. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  235. public java.util.List<com.liferay.calendar.model.CalendarBooking> getCalendarBookings(
  236. java.lang.String className, long classPK, int start, int end,
  237. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  238. throws com.liferay.portal.kernel.exception.SystemException;
  239. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  240. public int getCalendarBookingsCount(java.lang.String className, long classPK)
  241. throws com.liferay.portal.kernel.exception.SystemException;
  242. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  243. public java.util.List<com.liferay.calendar.model.CalendarBooking> getCalendarEventCalendarBookings(
  244. long calendarEventId, int start, int end,
  245. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  246. throws com.liferay.portal.kernel.exception.SystemException;
  247. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  248. public int getCalendarEventCalendarBookingsCount(long calendarEventId)
  249. throws com.liferay.portal.kernel.exception.SystemException;
  250. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  251. public java.util.List<com.liferay.calendar.model.CalendarBooking> getCalendarResourceCalendarBookings(
  252. long calendarResourceId, int start, int end,
  253. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  254. throws com.liferay.portal.kernel.exception.SystemException;
  255. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  256. public int getCalendarResourceCalendarBookingsCount(long calendarResourceId)
  257. throws com.liferay.portal.kernel.exception.SystemException;
  258. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  259. public java.util.List<com.liferay.calendar.model.CalendarBooking> search(
  260. long calendarResourceId, java.lang.String title,
  261. java.lang.String description, java.lang.String type,
  262. boolean andOperator, int start, int end,
  263. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  264. throws com.liferay.portal.kernel.exception.SystemException;
  265. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  266. public int searchCount(long calendarResourceId, java.lang.String title,
  267. java.lang.String description, java.lang.String type, boolean andOperator)
  268. throws com.liferay.portal.kernel.exception.SystemException;
  269. public com.liferay.calendar.model.CalendarBooking updateCalendarBooking(
  270. long calendarBookingId, boolean required,
  271. com.liferay.portal.service.ServiceContext serviceContext)
  272. throws com.liferay.portal.kernel.exception.PortalException,
  273. com.liferay.portal.kernel.exception.SystemException;
  274. public com.liferay.calendar.model.CalendarBooking updateCalendarBooking(
  275. long userId, long calendarBookingId, int status,
  276. com.liferay.portal.service.ServiceContext serviceContext)
  277. throws com.liferay.portal.kernel.exception.PortalException,
  278. com.liferay.portal.kernel.exception.SystemException;
  279. public com.liferay.calendar.model.CalendarBooking updateCalendarBooking(
  280. long calendarBookingId, long calendarEventId,
  281. com.liferay.portal.service.ServiceContext serviceContext)
  282. throws com.liferay.portal.kernel.exception.PortalException,
  283. com.liferay.portal.kernel.exception.SystemException;
  284. public void updateCalendarBookings(long calendarEventId,
  285. com.liferay.portal.service.ServiceContext serviceContext)
  286. throws com.liferay.portal.kernel.exception.PortalException,
  287. com.liferay.portal.kernel.exception.SystemException;
  288. public com.liferay.calendar.model.CalendarBooking updateStatus(
  289. long userId, long calendarBookingId, int status,
  290. com.liferay.portal.service.ServiceContext serviceContext)
  291. throws com.liferay.portal.kernel.exception.PortalException,
  292. com.liferay.portal.kernel.exception.SystemException;
  293. }