/portal-service/src/com/liferay/portlet/asset/service/AssetCategoryPropertyLocalService.java

https://github.com/viktorkovacs/liferay-portal-trunk · Java · 274 lines · 97 code · 28 blank · 149 comment · 0 complexity · 7c50742e0f96f16e649f097f44afda26 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.portlet.asset.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. /**
  21. * The interface for the asset category property local service.
  22. *
  23. * <p>
  24. * 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.
  25. * </p>
  26. *
  27. * @author Brian Wing Shun Chan
  28. * @see AssetCategoryPropertyLocalServiceUtil
  29. * @see com.liferay.portlet.asset.service.base.AssetCategoryPropertyLocalServiceBaseImpl
  30. * @see com.liferay.portlet.asset.service.impl.AssetCategoryPropertyLocalServiceImpl
  31. * @generated
  32. */
  33. @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
  34. PortalException.class, SystemException.class})
  35. public interface AssetCategoryPropertyLocalService {
  36. /*
  37. * NOTE FOR DEVELOPERS:
  38. *
  39. * Never modify or reference this interface directly. Always use {@link AssetCategoryPropertyLocalServiceUtil} to access the asset category property local service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetCategoryPropertyLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
  40. */
  41. /**
  42. * Adds the asset category property to the database. Also notifies the appropriate model listeners.
  43. *
  44. * @param assetCategoryProperty the asset category property to add
  45. * @return the asset category property that was added
  46. * @throws SystemException if a system exception occurred
  47. */
  48. public com.liferay.portlet.asset.model.AssetCategoryProperty addAssetCategoryProperty(
  49. com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
  50. throws com.liferay.portal.kernel.exception.SystemException;
  51. /**
  52. * Creates a new asset category property with the primary key. Does not add the asset category property to the database.
  53. *
  54. * @param categoryPropertyId the primary key for the new asset category property
  55. * @return the new asset category property
  56. */
  57. public com.liferay.portlet.asset.model.AssetCategoryProperty createAssetCategoryProperty(
  58. long categoryPropertyId);
  59. /**
  60. * Deletes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.
  61. *
  62. * @param categoryPropertyId the primary key of the asset category property to delete
  63. * @throws PortalException if a asset category property with the primary key could not be found
  64. * @throws SystemException if a system exception occurred
  65. */
  66. public void deleteAssetCategoryProperty(long categoryPropertyId)
  67. throws com.liferay.portal.kernel.exception.PortalException,
  68. com.liferay.portal.kernel.exception.SystemException;
  69. /**
  70. * Deletes the asset category property from the database. Also notifies the appropriate model listeners.
  71. *
  72. * @param assetCategoryProperty the asset category property to delete
  73. * @throws SystemException if a system exception occurred
  74. */
  75. public void deleteAssetCategoryProperty(
  76. com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
  77. throws com.liferay.portal.kernel.exception.SystemException;
  78. /**
  79. * Performs a dynamic query on the database and returns the matching rows.
  80. *
  81. * @param dynamicQuery the dynamic query to search with
  82. * @return the matching rows
  83. * @throws SystemException if a system exception occurred
  84. */
  85. @SuppressWarnings("rawtypes")
  86. public java.util.List dynamicQuery(
  87. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  88. throws com.liferay.portal.kernel.exception.SystemException;
  89. /**
  90. * Performs a dynamic query on the database and returns a range of the matching rows.
  91. *
  92. * <p>
  93. * 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.
  94. * </p>
  95. *
  96. * @param dynamicQuery the dynamic query to search with
  97. * @param start the lower bound of the range of model instances to return
  98. * @param end the upper bound of the range of model instances to return (not inclusive)
  99. * @return the range of matching rows
  100. * @throws SystemException if a system exception occurred
  101. */
  102. @SuppressWarnings("rawtypes")
  103. public java.util.List dynamicQuery(
  104. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  105. int end) throws com.liferay.portal.kernel.exception.SystemException;
  106. /**
  107. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  108. *
  109. * <p>
  110. * 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.
  111. * </p>
  112. *
  113. * @param dynamicQuery the dynamic query to search with
  114. * @param start the lower bound of the range of model instances to return
  115. * @param end the upper bound of the range of model instances to return (not inclusive)
  116. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  117. * @return the ordered range of matching rows
  118. * @throws SystemException if a system exception occurred
  119. */
  120. @SuppressWarnings("rawtypes")
  121. public java.util.List dynamicQuery(
  122. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  123. int end,
  124. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  125. throws com.liferay.portal.kernel.exception.SystemException;
  126. /**
  127. * Counts the number of rows that match the dynamic query.
  128. *
  129. * @param dynamicQuery the dynamic query to search with
  130. * @return the number of rows that match the dynamic query
  131. * @throws SystemException if a system exception occurred
  132. */
  133. public long dynamicQueryCount(
  134. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  135. throws com.liferay.portal.kernel.exception.SystemException;
  136. /**
  137. * Gets the asset category property with the primary key.
  138. *
  139. * @param categoryPropertyId the primary key of the asset category property to get
  140. * @return the asset category property
  141. * @throws PortalException if a asset category property with the primary key could not be found
  142. * @throws SystemException if a system exception occurred
  143. */
  144. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  145. public com.liferay.portlet.asset.model.AssetCategoryProperty getAssetCategoryProperty(
  146. long categoryPropertyId)
  147. throws com.liferay.portal.kernel.exception.PortalException,
  148. com.liferay.portal.kernel.exception.SystemException;
  149. /**
  150. * Gets a range of all the asset category properties.
  151. *
  152. * <p>
  153. * 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.
  154. * </p>
  155. *
  156. * @param start the lower bound of the range of asset category properties to return
  157. * @param end the upper bound of the range of asset category properties to return (not inclusive)
  158. * @return the range of asset category properties
  159. * @throws SystemException if a system exception occurred
  160. */
  161. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  162. public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getAssetCategoryProperties(
  163. int start, int end)
  164. throws com.liferay.portal.kernel.exception.SystemException;
  165. /**
  166. * Gets the number of asset category properties.
  167. *
  168. * @return the number of asset category properties
  169. * @throws SystemException if a system exception occurred
  170. */
  171. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  172. public int getAssetCategoryPropertiesCount()
  173. throws com.liferay.portal.kernel.exception.SystemException;
  174. /**
  175. * Updates the asset category property in the database. Also notifies the appropriate model listeners.
  176. *
  177. * @param assetCategoryProperty the asset category property to update
  178. * @return the asset category property that was updated
  179. * @throws SystemException if a system exception occurred
  180. */
  181. public com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
  182. com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
  183. throws com.liferay.portal.kernel.exception.SystemException;
  184. /**
  185. * Updates the asset category property in the database. Also notifies the appropriate model listeners.
  186. *
  187. * @param assetCategoryProperty the asset category property to update
  188. * @param merge whether to merge the asset category property 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.
  189. * @return the asset category property that was updated
  190. * @throws SystemException if a system exception occurred
  191. */
  192. public com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
  193. com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
  194. boolean merge)
  195. throws com.liferay.portal.kernel.exception.SystemException;
  196. /**
  197. * Gets the Spring bean ID for this bean.
  198. *
  199. * @return the Spring bean ID for this bean
  200. */
  201. public java.lang.String getBeanIdentifier();
  202. /**
  203. * Sets the Spring bean ID for this bean.
  204. *
  205. * @param beanIdentifier the Spring bean ID for this bean
  206. */
  207. public void setBeanIdentifier(java.lang.String beanIdentifier);
  208. public com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
  209. long userId, long categoryId, java.lang.String key,
  210. java.lang.String value)
  211. throws com.liferay.portal.kernel.exception.PortalException,
  212. com.liferay.portal.kernel.exception.SystemException;
  213. public void deleteCategoryProperties(long entryId)
  214. throws com.liferay.portal.kernel.exception.SystemException;
  215. public void deleteCategoryProperty(
  216. com.liferay.portlet.asset.model.AssetCategoryProperty categoryProperty)
  217. throws com.liferay.portal.kernel.exception.SystemException;
  218. public void deleteCategoryProperty(long categoryPropertyId)
  219. throws com.liferay.portal.kernel.exception.PortalException,
  220. com.liferay.portal.kernel.exception.SystemException;
  221. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  222. public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties()
  223. throws com.liferay.portal.kernel.exception.SystemException;
  224. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  225. public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
  226. long entryId)
  227. throws com.liferay.portal.kernel.exception.SystemException;
  228. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  229. public com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
  230. long categoryPropertyId)
  231. throws com.liferay.portal.kernel.exception.PortalException,
  232. com.liferay.portal.kernel.exception.SystemException;
  233. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  234. public com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
  235. long categoryId, java.lang.String key)
  236. throws com.liferay.portal.kernel.exception.PortalException,
  237. com.liferay.portal.kernel.exception.SystemException;
  238. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  239. public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
  240. long groupId, java.lang.String key)
  241. throws com.liferay.portal.kernel.exception.SystemException;
  242. public com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
  243. long categoryPropertyId, java.lang.String key, java.lang.String value)
  244. throws com.liferay.portal.kernel.exception.PortalException,
  245. com.liferay.portal.kernel.exception.SystemException;
  246. }