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
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
159 long categoryId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getShoppingCategoriesCount()
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
203 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
204 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
216 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
217 boolean merge)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220
225 public java.lang.String getBeanIdentifier();
226
227
232 public void setBeanIdentifier(java.lang.String beanIdentifier);
233
234 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
235 long userId, long parentCategoryId, java.lang.String name,
236 java.lang.String description,
237 com.liferay.portal.service.ServiceContext serviceContext)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public void addCategoryResources(long categoryId,
242 boolean addCommunityPermissions, boolean addGuestPermissions)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void addCategoryResources(long categoryId,
247 java.lang.String[] communityPermissions,
248 java.lang.String[] guestPermissions)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void addCategoryResources(
253 com.liferay.portlet.shopping.model.ShoppingCategory category,
254 boolean addCommunityPermissions, boolean addGuestPermissions)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 public void addCategoryResources(
259 com.liferay.portlet.shopping.model.ShoppingCategory category,
260 java.lang.String[] communityPermissions,
261 java.lang.String[] guestPermissions)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void deleteCategories(long groupId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 public void deleteCategory(long categoryId)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException;
272
273 public void deleteCategory(
274 com.liferay.portlet.shopping.model.ShoppingCategory category)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
280 long groupId)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
285 long groupId, long parentCategoryId, int start, int end)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getCategoriesCount(long groupId, long parentCategoryId)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
294 long categoryId)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
300 long categoryId)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
306 com.liferay.portlet.shopping.model.ShoppingCategory category)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
312 com.liferay.portlet.shopping.model.ShoppingCategory category)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
318 long groupId, long categoryId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
322 long categoryId, long parentCategoryId, java.lang.String name,
323 java.lang.String description, boolean mergeWithParentCategory,
324 com.liferay.portal.service.ServiceContext serviceContext)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327 }