PageRenderTime 28ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/portlets/marketplace-portlet/docroot/WEB-INF/service/com/liferay/marketplace/service/AppLocalService.java

https://github.com/l15k4/liferay-plugins
Java | 256 lines | 82 code | 25 blank | 149 comment | 0 complexity | 5b892c9aa290136a3a1d509642e51734 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.marketplace.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 app 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 Ryan Park
  29. * @see AppLocalServiceUtil
  30. * @see com.liferay.marketplace.service.base.AppLocalServiceBaseImpl
  31. * @see com.liferay.marketplace.service.impl.AppLocalServiceImpl
  32. * @generated
  33. */
  34. @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
  35. PortalException.class, SystemException.class})
  36. public interface AppLocalService extends PersistedModelLocalService {
  37. /*
  38. * NOTE FOR DEVELOPERS:
  39. *
  40. * Never modify or reference this interface directly. Always use {@link AppLocalServiceUtil} to access the app local service. Add custom service methods to {@link com.liferay.marketplace.service.impl.AppLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
  41. */
  42. /**
  43. * Adds the app to the database. Also notifies the appropriate model listeners.
  44. *
  45. * @param app the app
  46. * @return the app that was added
  47. * @throws SystemException if a system exception occurred
  48. */
  49. public com.liferay.marketplace.model.App addApp(
  50. com.liferay.marketplace.model.App app)
  51. throws com.liferay.portal.kernel.exception.SystemException;
  52. /**
  53. * Creates a new app with the primary key. Does not add the app to the database.
  54. *
  55. * @param appId the primary key for the new app
  56. * @return the new app
  57. */
  58. public com.liferay.marketplace.model.App createApp(long appId);
  59. /**
  60. * Deletes the app with the primary key from the database. Also notifies the appropriate model listeners.
  61. *
  62. * @param appId the primary key of the app
  63. * @throws PortalException if a app with the primary key could not be found
  64. * @throws SystemException if a system exception occurred
  65. */
  66. public void deleteApp(long appId)
  67. throws com.liferay.portal.kernel.exception.PortalException,
  68. com.liferay.portal.kernel.exception.SystemException;
  69. /**
  70. * Deletes the app from the database. Also notifies the appropriate model listeners.
  71. *
  72. * @param app the app
  73. * @throws SystemException if a system exception occurred
  74. */
  75. public void deleteApp(com.liferay.marketplace.model.App app)
  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.marketplace.model.App fetchApp(long appId)
  137. throws com.liferay.portal.kernel.exception.SystemException;
  138. /**
  139. * Returns the app with the primary key.
  140. *
  141. * @param appId the primary key of the app
  142. * @return the app
  143. * @throws PortalException if a app 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.marketplace.model.App getApp(long appId)
  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 apps.
  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 apps
  163. * @param end the upper bound of the range of apps (not inclusive)
  164. * @return the range of apps
  165. * @throws SystemException if a system exception occurred
  166. */
  167. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  168. public java.util.List<com.liferay.marketplace.model.App> getApps(
  169. int start, int end)
  170. throws com.liferay.portal.kernel.exception.SystemException;
  171. /**
  172. * Returns the number of apps.
  173. *
  174. * @return the number of apps
  175. * @throws SystemException if a system exception occurred
  176. */
  177. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  178. public int getAppsCount()
  179. throws com.liferay.portal.kernel.exception.SystemException;
  180. /**
  181. * Updates the app in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  182. *
  183. * @param app the app
  184. * @return the app that was updated
  185. * @throws SystemException if a system exception occurred
  186. */
  187. public com.liferay.marketplace.model.App updateApp(
  188. com.liferay.marketplace.model.App app)
  189. throws com.liferay.portal.kernel.exception.SystemException;
  190. /**
  191. * Updates the app in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  192. *
  193. * @param app the app
  194. * @param merge whether to merge the app 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.
  195. * @return the app that was updated
  196. * @throws SystemException if a system exception occurred
  197. */
  198. public com.liferay.marketplace.model.App updateApp(
  199. com.liferay.marketplace.model.App app, boolean merge)
  200. throws com.liferay.portal.kernel.exception.SystemException;
  201. /**
  202. * Returns the Spring bean ID for this bean.
  203. *
  204. * @return the Spring bean ID for this bean
  205. */
  206. public java.lang.String getBeanIdentifier();
  207. /**
  208. * Sets the Spring bean ID for this bean.
  209. *
  210. * @param beanIdentifier the Spring bean ID for this bean
  211. */
  212. public void setBeanIdentifier(java.lang.String beanIdentifier);
  213. public com.liferay.marketplace.model.App addApp(long userId,
  214. long remoteAppId, java.lang.String version,
  215. java.io.InputStream inputStream)
  216. throws com.liferay.portal.kernel.exception.PortalException,
  217. com.liferay.portal.kernel.exception.SystemException;
  218. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  219. public com.liferay.marketplace.model.App fetchRemoteApp(long remoteAppId)
  220. throws com.liferay.portal.kernel.exception.SystemException;
  221. public void installApp(long remoteAppId)
  222. throws com.liferay.portal.kernel.exception.PortalException,
  223. com.liferay.portal.kernel.exception.SystemException;
  224. public void uninstallApp(long remoteAppId)
  225. throws com.liferay.portal.kernel.exception.PortalException,
  226. com.liferay.portal.kernel.exception.SystemException;
  227. public com.liferay.marketplace.model.App updateApp(long appId,
  228. java.lang.String version, java.io.InputStream inputStream)
  229. throws com.liferay.portal.kernel.exception.PortalException,
  230. com.liferay.portal.kernel.exception.SystemException;
  231. }