001
014
015 package com.liferay.portlet.shopping.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ShoppingCategoryLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
058 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
068 long categoryId);
069
070
078 public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
079 long categoryId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
091 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
173 long categoryId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
186 long categoryId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190 @Override
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portal.model.PersistedModel getPersistedModel(
193 java.io.Serializable primaryKeyObj)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
211 int start, int end)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int getShoppingCategoriesCount()
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224
231 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
232 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
240 public java.lang.String getBeanIdentifier();
241
242
247 public void setBeanIdentifier(java.lang.String beanIdentifier);
248
249 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
250 long userId, long parentCategoryId, java.lang.String name,
251 java.lang.String description,
252 com.liferay.portal.service.ServiceContext serviceContext)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void addCategoryResources(long categoryId,
257 boolean addGroupPermissions, boolean addGuestPermissions)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void addCategoryResources(long categoryId,
262 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void addCategoryResources(
267 com.liferay.portlet.shopping.model.ShoppingCategory category,
268 boolean addGroupPermissions, boolean addGuestPermissions)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void addCategoryResources(
273 com.liferay.portlet.shopping.model.ShoppingCategory category,
274 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 public void deleteCategories(long groupId)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void deleteCategory(long categoryId)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 public void deleteCategory(
287 com.liferay.portlet.shopping.model.ShoppingCategory category)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
293 long groupId)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
298 long groupId, long parentCategoryId, int start, int end)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int getCategoriesCount(long groupId, long parentCategoryId)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
307 long categoryId)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
313 long categoryId)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
319 com.liferay.portlet.shopping.model.ShoppingCategory category)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
325 com.liferay.portlet.shopping.model.ShoppingCategory category)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
331 long groupId, long categoryId)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
335 long categoryId, long parentCategoryId, java.lang.String name,
336 java.lang.String description, boolean mergeWithParentCategory,
337 com.liferay.portal.service.ServiceContext serviceContext)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340 }