1
19
20 package com.liferay.portlet.shopping.service;
21
22
23
44 public class ShoppingCategoryLocalServiceUtil {
45 public static com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
46 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
47 throws com.liferay.portal.SystemException {
48 return getService().addShoppingCategory(shoppingCategory);
49 }
50
51 public static com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
52 long categoryId) {
53 return getService().createShoppingCategory(categoryId);
54 }
55
56 public static void deleteShoppingCategory(long categoryId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteShoppingCategory(categoryId);
60 }
61
62 public static void deleteShoppingCategory(
63 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
64 throws com.liferay.portal.SystemException {
65 getService().deleteShoppingCategory(shoppingCategory);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
81 long categoryId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getShoppingCategory(categoryId);
85 }
86
87 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getShoppingCategories(start, end);
90 }
91
92 public static int getShoppingCategoriesCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getShoppingCategoriesCount();
95 }
96
97 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
98 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
99 throws com.liferay.portal.SystemException {
100 return getService().updateShoppingCategory(shoppingCategory);
101 }
102
103 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
104 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateShoppingCategory(shoppingCategory, merge);
107 }
108
109 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
110 long userId, long plid, long parentCategoryId, java.lang.String name,
111 java.lang.String description, boolean addCommunityPermissions,
112 boolean addGuestPermissions)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return getService()
116 .addCategory(userId, plid, parentCategoryId, name,
117 description, addCommunityPermissions, addGuestPermissions);
118 }
119
120 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
121 long userId, long plid, long parentCategoryId, java.lang.String name,
122 java.lang.String description, java.lang.String[] communityPermissions,
123 java.lang.String[] guestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addCategory(userId, plid, parentCategoryId, name,
128 description, communityPermissions, guestPermissions);
129 }
130
131 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
132 long userId, long plid, long parentCategoryId, java.lang.String name,
133 java.lang.String description,
134 java.lang.Boolean addCommunityPermissions,
135 java.lang.Boolean addGuestPermissions,
136 java.lang.String[] communityPermissions,
137 java.lang.String[] guestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 return getService()
141 .addCategory(userId, plid, parentCategoryId, name,
142 description, addCommunityPermissions, addGuestPermissions,
143 communityPermissions, guestPermissions);
144 }
145
146 public static void addCategoryResources(long categoryId,
147 boolean addCommunityPermissions, boolean addGuestPermissions)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 getService()
151 .addCategoryResources(categoryId, addCommunityPermissions,
152 addGuestPermissions);
153 }
154
155 public static void addCategoryResources(
156 com.liferay.portlet.shopping.model.ShoppingCategory category,
157 boolean addCommunityPermissions, boolean addGuestPermissions)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException {
160 getService()
161 .addCategoryResources(category, addCommunityPermissions,
162 addGuestPermissions);
163 }
164
165 public static void addCategoryResources(long categoryId,
166 java.lang.String[] communityPermissions,
167 java.lang.String[] guestPermissions)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 getService()
171 .addCategoryResources(categoryId, communityPermissions,
172 guestPermissions);
173 }
174
175 public static void addCategoryResources(
176 com.liferay.portlet.shopping.model.ShoppingCategory category,
177 java.lang.String[] communityPermissions,
178 java.lang.String[] guestPermissions)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 getService()
182 .addCategoryResources(category, communityPermissions,
183 guestPermissions);
184 }
185
186 public static void deleteCategories(long groupId)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 getService().deleteCategories(groupId);
190 }
191
192 public static void deleteCategory(long categoryId)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 getService().deleteCategory(categoryId);
196 }
197
198 public static void deleteCategory(
199 com.liferay.portlet.shopping.model.ShoppingCategory category)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 getService().deleteCategory(category);
203 }
204
205 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
206 long groupId) throws com.liferay.portal.SystemException {
207 return getService().getCategories(groupId);
208 }
209
210 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
211 long groupId, long parentCategoryId, int start, int end)
212 throws com.liferay.portal.SystemException {
213 return getService().getCategories(groupId, parentCategoryId, start, end);
214 }
215
216 public static int getCategoriesCount(long groupId, long parentCategoryId)
217 throws com.liferay.portal.SystemException {
218 return getService().getCategoriesCount(groupId, parentCategoryId);
219 }
220
221 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
222 long categoryId)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException {
225 return getService().getCategory(categoryId);
226 }
227
228 public static com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
229 com.liferay.portlet.shopping.model.ShoppingCategory category)
230 throws com.liferay.portal.PortalException,
231 com.liferay.portal.SystemException {
232 return getService().getParentCategory(category);
233 }
234
235 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
236 long categoryId)
237 throws com.liferay.portal.PortalException,
238 com.liferay.portal.SystemException {
239 return getService().getParentCategories(categoryId);
240 }
241
242 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
243 com.liferay.portlet.shopping.model.ShoppingCategory category)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException {
246 return getService().getParentCategories(category);
247 }
248
249 public static void getSubcategoryIds(java.util.List<Long> categoryIds,
250 long groupId, long categoryId)
251 throws com.liferay.portal.SystemException {
252 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
253 }
254
255 public static com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
256 long categoryId, long parentCategoryId, java.lang.String name,
257 java.lang.String description, boolean mergeWithParentCategory)
258 throws com.liferay.portal.PortalException,
259 com.liferay.portal.SystemException {
260 return getService()
261 .updateCategory(categoryId, parentCategoryId, name,
262 description, mergeWithParentCategory);
263 }
264
265 public static ShoppingCategoryLocalService getService() {
266 if (_service == null) {
267 throw new RuntimeException(
268 "ShoppingCategoryLocalService is not set");
269 }
270
271 return _service;
272 }
273
274 public void setService(ShoppingCategoryLocalService service) {
275 _service = service;
276 }
277
278 private static ShoppingCategoryLocalService _service;
279 }