1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ShoppingCategoryLocalService {
50 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
51 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
55 long categoryId);
56
57 public void deleteShoppingCategory(long categoryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteShoppingCategory(
62 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 @SuppressWarnings("unchecked")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 @SuppressWarnings("unchecked")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException;
74
75 @SuppressWarnings("unchecked")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.kernel.exception.SystemException;
81
82 public long dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
88 long categoryId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
94 int start, int end)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public int getShoppingCategoriesCount()
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
102 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
106 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
107 boolean merge)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
111 long userId, long parentCategoryId, java.lang.String name,
112 java.lang.String description,
113 com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 public void addCategoryResources(long categoryId,
118 boolean addCommunityPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 public void addCategoryResources(long categoryId,
123 java.lang.String[] communityPermissions,
124 java.lang.String[] guestPermissions)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 public void addCategoryResources(
129 com.liferay.portlet.shopping.model.ShoppingCategory category,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 public void addCategoryResources(
135 com.liferay.portlet.shopping.model.ShoppingCategory category,
136 java.lang.String[] communityPermissions,
137 java.lang.String[] guestPermissions)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 public void deleteCategories(long groupId)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public void deleteCategory(long categoryId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 public void deleteCategory(
150 com.liferay.portlet.shopping.model.ShoppingCategory category)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
156 long groupId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
161 long groupId, long parentCategoryId, int start, int end)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public int getCategoriesCount(long groupId, long parentCategoryId)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
170 long categoryId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
176 long categoryId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
182 com.liferay.portlet.shopping.model.ShoppingCategory category)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
188 com.liferay.portlet.shopping.model.ShoppingCategory category)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
194 long groupId, long categoryId)
195 throws com.liferay.portal.kernel.exception.SystemException;
196
197 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
198 long categoryId, long parentCategoryId, java.lang.String name,
199 java.lang.String description, boolean mergeWithParentCategory,
200 com.liferay.portal.service.ServiceContext serviceContext)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203 }