001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface ShoppingCategoryLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
054 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
064 long categoryId);
065
066
073 public void deleteShoppingCategory(long categoryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteShoppingCategory(
084 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
151 long categoryId)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
164 long categoryId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portal.model.PersistedModel getPersistedModel(
170 java.io.Serializable primaryKeyObj)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getShoppingCategoriesCount()
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
208 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
209 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
220 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
221 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
222 boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225
230 public java.lang.String getBeanIdentifier();
231
232
237 public void setBeanIdentifier(java.lang.String beanIdentifier);
238
239 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
240 long userId, long parentCategoryId, java.lang.String name,
241 java.lang.String description,
242 com.liferay.portal.service.ServiceContext serviceContext)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void addCategoryResources(long categoryId,
247 boolean addGroupPermissions, boolean addGuestPermissions)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public void addCategoryResources(long categoryId,
252 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void addCategoryResources(
257 com.liferay.portlet.shopping.model.ShoppingCategory category,
258 boolean addGroupPermissions, boolean addGuestPermissions)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException;
261
262 public void addCategoryResources(
263 com.liferay.portlet.shopping.model.ShoppingCategory category,
264 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 public void deleteCategories(long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void deleteCategory(long categoryId)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 public void deleteCategory(
277 com.liferay.portlet.shopping.model.ShoppingCategory category)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
283 long groupId)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
288 long groupId, long parentCategoryId, int start, int end)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getCategoriesCount(long groupId, long parentCategoryId)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
297 long categoryId)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
303 long categoryId)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
309 com.liferay.portlet.shopping.model.ShoppingCategory category)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
315 com.liferay.portlet.shopping.model.ShoppingCategory category)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
321 long groupId, long categoryId)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
325 long categoryId, long parentCategoryId, java.lang.String name,
326 java.lang.String description, boolean mergeWithParentCategory,
327 com.liferay.portal.service.ServiceContext serviceContext)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330 }