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

https://github.com/stevenjiancao/liferay-plugins · Java · 400 lines · 214 code · 36 blank · 150 comment · 0 complexity · 7e1354635da8e03ca12bf9848a4c3ec2 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. /**
  16. * <p>
  17. * This class is a wrapper for {@link CalendarResourceLocalService}.
  18. * </p>
  19. *
  20. * @author Eduardo Lundgren
  21. * @see CalendarResourceLocalService
  22. * @generated
  23. */
  24. public class CalendarResourceLocalServiceWrapper
  25. implements CalendarResourceLocalService {
  26. public CalendarResourceLocalServiceWrapper(
  27. CalendarResourceLocalService calendarResourceLocalService) {
  28. _calendarResourceLocalService = calendarResourceLocalService;
  29. }
  30. /**
  31. * Adds the calendar resource to the database. Also notifies the appropriate model listeners.
  32. *
  33. * @param calendarResource the calendar resource
  34. * @return the calendar resource that was added
  35. * @throws SystemException if a system exception occurred
  36. */
  37. public com.liferay.calendar.model.CalendarResource addCalendarResource(
  38. com.liferay.calendar.model.CalendarResource calendarResource)
  39. throws com.liferay.portal.kernel.exception.SystemException {
  40. return _calendarResourceLocalService.addCalendarResource(calendarResource);
  41. }
  42. /**
  43. * Creates a new calendar resource with the primary key. Does not add the calendar resource to the database.
  44. *
  45. * @param calendarResourceId the primary key for the new calendar resource
  46. * @return the new calendar resource
  47. */
  48. public com.liferay.calendar.model.CalendarResource createCalendarResource(
  49. long calendarResourceId) {
  50. return _calendarResourceLocalService.createCalendarResource(calendarResourceId);
  51. }
  52. /**
  53. * Deletes the calendar resource with the primary key from the database. Also notifies the appropriate model listeners.
  54. *
  55. * @param calendarResourceId the primary key of the calendar resource
  56. * @throws PortalException if a calendar resource with the primary key could not be found
  57. * @throws SystemException if a system exception occurred
  58. */
  59. public void deleteCalendarResource(long calendarResourceId)
  60. throws com.liferay.portal.kernel.exception.PortalException,
  61. com.liferay.portal.kernel.exception.SystemException {
  62. _calendarResourceLocalService.deleteCalendarResource(calendarResourceId);
  63. }
  64. /**
  65. * Deletes the calendar resource from the database. Also notifies the appropriate model listeners.
  66. *
  67. * @param calendarResource the calendar resource
  68. * @throws PortalException
  69. * @throws SystemException if a system exception occurred
  70. */
  71. public void deleteCalendarResource(
  72. com.liferay.calendar.model.CalendarResource calendarResource)
  73. throws com.liferay.portal.kernel.exception.PortalException,
  74. com.liferay.portal.kernel.exception.SystemException {
  75. _calendarResourceLocalService.deleteCalendarResource(calendarResource);
  76. }
  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. return _calendarResourceLocalService.dynamicQuery(dynamicQuery);
  89. }
  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. return _calendarResourceLocalService.dynamicQuery(dynamicQuery, start,
  108. end);
  109. }
  110. /**
  111. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  112. *
  113. * <p>
  114. * 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.
  115. * </p>
  116. *
  117. * @param dynamicQuery the dynamic query
  118. * @param start the lower bound of the range of model instances
  119. * @param end the upper bound of the range of model instances (not inclusive)
  120. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  121. * @return the ordered range of matching rows
  122. * @throws SystemException if a system exception occurred
  123. */
  124. @SuppressWarnings("rawtypes")
  125. public java.util.List dynamicQuery(
  126. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  127. int end,
  128. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  129. throws com.liferay.portal.kernel.exception.SystemException {
  130. return _calendarResourceLocalService.dynamicQuery(dynamicQuery, start,
  131. end, orderByComparator);
  132. }
  133. /**
  134. * Returns the number of rows that match the dynamic query.
  135. *
  136. * @param dynamicQuery the dynamic query
  137. * @return the number of rows that match the dynamic query
  138. * @throws SystemException if a system exception occurred
  139. */
  140. public long dynamicQueryCount(
  141. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  142. throws com.liferay.portal.kernel.exception.SystemException {
  143. return _calendarResourceLocalService.dynamicQueryCount(dynamicQuery);
  144. }
  145. /**
  146. * Returns the calendar resource with the primary key.
  147. *
  148. * @param calendarResourceId the primary key of the calendar resource
  149. * @return the calendar resource
  150. * @throws PortalException if a calendar resource with the primary key could not be found
  151. * @throws SystemException if a system exception occurred
  152. */
  153. public com.liferay.calendar.model.CalendarResource getCalendarResource(
  154. long calendarResourceId)
  155. throws com.liferay.portal.kernel.exception.PortalException,
  156. com.liferay.portal.kernel.exception.SystemException {
  157. return _calendarResourceLocalService.getCalendarResource(calendarResourceId);
  158. }
  159. public com.liferay.portal.model.PersistedModel getPersistedModel(
  160. java.io.Serializable primaryKeyObj)
  161. throws com.liferay.portal.kernel.exception.PortalException,
  162. com.liferay.portal.kernel.exception.SystemException {
  163. return _calendarResourceLocalService.getPersistedModel(primaryKeyObj);
  164. }
  165. /**
  166. * Returns the calendar resource with the UUID in the group.
  167. *
  168. * @param uuid the UUID of calendar resource
  169. * @param groupId the group id of the calendar resource
  170. * @return the calendar resource
  171. * @throws PortalException if a calendar resource with the UUID in the group could not be found
  172. * @throws SystemException if a system exception occurred
  173. */
  174. public com.liferay.calendar.model.CalendarResource getCalendarResourceByUuidAndGroupId(
  175. java.lang.String uuid, long groupId)
  176. throws com.liferay.portal.kernel.exception.PortalException,
  177. com.liferay.portal.kernel.exception.SystemException {
  178. return _calendarResourceLocalService.getCalendarResourceByUuidAndGroupId(uuid,
  179. groupId);
  180. }
  181. /**
  182. * Returns a range of all the calendar resources.
  183. *
  184. * <p>
  185. * 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.
  186. * </p>
  187. *
  188. * @param start the lower bound of the range of calendar resources
  189. * @param end the upper bound of the range of calendar resources (not inclusive)
  190. * @return the range of calendar resources
  191. * @throws SystemException if a system exception occurred
  192. */
  193. public java.util.List<com.liferay.calendar.model.CalendarResource> getCalendarResources(
  194. int start, int end)
  195. throws com.liferay.portal.kernel.exception.SystemException {
  196. return _calendarResourceLocalService.getCalendarResources(start, end);
  197. }
  198. /**
  199. * Returns the number of calendar resources.
  200. *
  201. * @return the number of calendar resources
  202. * @throws SystemException if a system exception occurred
  203. */
  204. public int getCalendarResourcesCount()
  205. throws com.liferay.portal.kernel.exception.SystemException {
  206. return _calendarResourceLocalService.getCalendarResourcesCount();
  207. }
  208. /**
  209. * Updates the calendar resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  210. *
  211. * @param calendarResource the calendar resource
  212. * @return the calendar resource that was updated
  213. * @throws SystemException if a system exception occurred
  214. */
  215. public com.liferay.calendar.model.CalendarResource updateCalendarResource(
  216. com.liferay.calendar.model.CalendarResource calendarResource)
  217. throws com.liferay.portal.kernel.exception.SystemException {
  218. return _calendarResourceLocalService.updateCalendarResource(calendarResource);
  219. }
  220. /**
  221. * Updates the calendar resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  222. *
  223. * @param calendarResource the calendar resource
  224. * @param merge whether to merge the calendar resource 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.
  225. * @return the calendar resource that was updated
  226. * @throws SystemException if a system exception occurred
  227. */
  228. public com.liferay.calendar.model.CalendarResource updateCalendarResource(
  229. com.liferay.calendar.model.CalendarResource calendarResource,
  230. boolean merge)
  231. throws com.liferay.portal.kernel.exception.SystemException {
  232. return _calendarResourceLocalService.updateCalendarResource(calendarResource,
  233. merge);
  234. }
  235. /**
  236. * Returns the Spring bean ID for this bean.
  237. *
  238. * @return the Spring bean ID for this bean
  239. */
  240. public java.lang.String getBeanIdentifier() {
  241. return _calendarResourceLocalService.getBeanIdentifier();
  242. }
  243. /**
  244. * Sets the Spring bean ID for this bean.
  245. *
  246. * @param beanIdentifier the Spring bean ID for this bean
  247. */
  248. public void setBeanIdentifier(java.lang.String beanIdentifier) {
  249. _calendarResourceLocalService.setBeanIdentifier(beanIdentifier);
  250. }
  251. public com.liferay.calendar.model.CalendarResource addCalendarResource(
  252. long userId, java.lang.String className, long classPK,
  253. java.util.Map<java.util.Locale, java.lang.String> nameMap,
  254. java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
  255. boolean active, com.liferay.portal.service.ServiceContext serviceContext)
  256. throws com.liferay.portal.kernel.exception.PortalException,
  257. com.liferay.portal.kernel.exception.SystemException {
  258. return _calendarResourceLocalService.addCalendarResource(userId,
  259. className, classPK, nameMap, descriptionMap, active, serviceContext);
  260. }
  261. public com.liferay.calendar.model.CalendarResource getCalendarResource(
  262. java.lang.String className, long classPK)
  263. throws com.liferay.portal.kernel.exception.PortalException,
  264. com.liferay.portal.kernel.exception.SystemException {
  265. return _calendarResourceLocalService.getCalendarResource(className,
  266. classPK);
  267. }
  268. public java.util.List<com.liferay.calendar.model.CalendarResource> getCalendarResources(
  269. boolean active, int start, int end,
  270. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  271. throws com.liferay.portal.kernel.exception.SystemException {
  272. return _calendarResourceLocalService.getCalendarResources(active,
  273. start, end, orderByComparator);
  274. }
  275. public int getCalendarResourcesCount(boolean active)
  276. throws com.liferay.portal.kernel.exception.SystemException {
  277. return _calendarResourceLocalService.getCalendarResourcesCount(active);
  278. }
  279. public java.util.List<com.liferay.calendar.model.CalendarResource> getCompanyCalendarResources(
  280. long companyId, java.lang.String name, boolean active, int start,
  281. int end,
  282. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  283. throws com.liferay.portal.kernel.exception.SystemException {
  284. return _calendarResourceLocalService.getCompanyCalendarResources(companyId,
  285. name, active, start, end, orderByComparator);
  286. }
  287. public int getCompanyCalendarResourcesCount(long companyId,
  288. java.lang.String name, boolean active, int start, int end,
  289. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  290. throws com.liferay.portal.kernel.exception.SystemException {
  291. return _calendarResourceLocalService.getCompanyCalendarResourcesCount(companyId,
  292. name, active, start, end, orderByComparator);
  293. }
  294. public java.util.List<com.liferay.calendar.model.CalendarResource> getGroupCalendarResources(
  295. long groupId, boolean active, int start, int end,
  296. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  297. throws com.liferay.portal.kernel.exception.SystemException {
  298. return _calendarResourceLocalService.getGroupCalendarResources(groupId,
  299. active, start, end, orderByComparator);
  300. }
  301. public java.util.List<com.liferay.calendar.model.CalendarResource> getGroupCalendarResources(
  302. long groupId, java.lang.String name, boolean active, int start,
  303. int end,
  304. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  305. throws com.liferay.portal.kernel.exception.SystemException {
  306. return _calendarResourceLocalService.getGroupCalendarResources(groupId,
  307. name, active, start, end, orderByComparator);
  308. }
  309. public int getGroupCalendarResourcesCount(long groupId, boolean active)
  310. throws com.liferay.portal.kernel.exception.SystemException {
  311. return _calendarResourceLocalService.getGroupCalendarResourcesCount(groupId,
  312. active);
  313. }
  314. public int getGroupCalendarResourcesCount(long groupId,
  315. java.lang.String name, boolean active, int start, int end,
  316. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  317. throws com.liferay.portal.kernel.exception.SystemException {
  318. return _calendarResourceLocalService.getGroupCalendarResourcesCount(groupId,
  319. name, active, start, end, orderByComparator);
  320. }
  321. public java.util.List<com.liferay.calendar.model.CalendarResource> search(
  322. long companyId, long[] groupIds, java.lang.String name,
  323. java.lang.String description, java.lang.Boolean active,
  324. boolean andOperator, int start, int end,
  325. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  326. throws com.liferay.portal.kernel.exception.SystemException {
  327. return _calendarResourceLocalService.search(companyId, groupIds, name,
  328. description, active, andOperator, start, end, orderByComparator);
  329. }
  330. public int searchCount(long companyId, long[] groupIds,
  331. java.lang.String name, java.lang.String description,
  332. java.lang.Boolean active, boolean andOperator)
  333. throws com.liferay.portal.kernel.exception.SystemException {
  334. return _calendarResourceLocalService.searchCount(companyId, groupIds,
  335. name, description, active, andOperator);
  336. }
  337. public com.liferay.calendar.model.CalendarResource updateCalendarResource(
  338. long calendarResourceId,
  339. java.util.Map<java.util.Locale, java.lang.String> nameMap,
  340. java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
  341. boolean active, com.liferay.portal.service.ServiceContext serviceContext)
  342. throws com.liferay.portal.kernel.exception.PortalException,
  343. com.liferay.portal.kernel.exception.SystemException {
  344. return _calendarResourceLocalService.updateCalendarResource(calendarResourceId,
  345. nameMap, descriptionMap, active, serviceContext);
  346. }
  347. public void updateCalendarResourceResources(
  348. com.liferay.calendar.model.CalendarResource calendarResource,
  349. java.lang.String[] communityPermissions,
  350. java.lang.String[] guestPermissions)
  351. throws com.liferay.portal.kernel.exception.PortalException,
  352. com.liferay.portal.kernel.exception.SystemException {
  353. _calendarResourceLocalService.updateCalendarResourceResources(calendarResource,
  354. communityPermissions, guestPermissions);
  355. }
  356. public CalendarResourceLocalService getWrappedCalendarResourceLocalService() {
  357. return _calendarResourceLocalService;
  358. }
  359. public void setWrappedCalendarResourceLocalService(
  360. CalendarResourceLocalService calendarResourceLocalService) {
  361. _calendarResourceLocalService = calendarResourceLocalService;
  362. }
  363. private CalendarResourceLocalService _calendarResourceLocalService;
  364. }