001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class AssetCategoryPropertyLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.asset.model.AssetCategoryProperty addAssetCategoryProperty(
049 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addAssetCategoryProperty(assetCategoryProperty);
052 }
053
054
060 public static com.liferay.portlet.asset.model.AssetCategoryProperty createAssetCategoryProperty(
061 long categoryPropertyId) {
062 return getService().createAssetCategoryProperty(categoryPropertyId);
063 }
064
065
072 public static void deleteAssetCategoryProperty(long categoryPropertyId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteAssetCategoryProperty(categoryPropertyId);
076 }
077
078
084 public static void deleteAssetCategoryProperty(
085 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteAssetCategoryProperty(assetCategoryProperty);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.asset.model.AssetCategoryProperty fetchAssetCategoryProperty(
162 long categoryPropertyId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchAssetCategoryProperty(categoryPropertyId);
165 }
166
167
175 public static com.liferay.portlet.asset.model.AssetCategoryProperty getAssetCategoryProperty(
176 long categoryPropertyId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getAssetCategoryProperty(categoryPropertyId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
201 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getAssetCategoryProperties(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getService().getAssetCategoryProperties(start, end);
205 }
206
207
213 public static int getAssetCategoryPropertiesCount()
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().getAssetCategoryPropertiesCount();
216 }
217
218
225 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
226 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().updateAssetCategoryProperty(assetCategoryProperty);
229 }
230
231
239 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
240 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
241 boolean merge)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService()
244 .updateAssetCategoryProperty(assetCategoryProperty, merge);
245 }
246
247
252 public static java.lang.String getBeanIdentifier() {
253 return getService().getBeanIdentifier();
254 }
255
256
261 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
262 getService().setBeanIdentifier(beanIdentifier);
263 }
264
265 public static com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
266 long userId, long categoryId, java.lang.String key,
267 java.lang.String value)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getService().addCategoryProperty(userId, categoryId, key, value);
271 }
272
273 public static void deleteCategoryProperties(long entryId)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getService().deleteCategoryProperties(entryId);
276 }
277
278 public static void deleteCategoryProperty(
279 com.liferay.portlet.asset.model.AssetCategoryProperty categoryProperty)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 getService().deleteCategoryProperty(categoryProperty);
282 }
283
284 public static void deleteCategoryProperty(long categoryPropertyId)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException {
287 getService().deleteCategoryProperty(categoryPropertyId);
288 }
289
290 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties()
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getService().getCategoryProperties();
293 }
294
295 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
296 long entryId)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getService().getCategoryProperties(entryId);
299 }
300
301 public static com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
302 long categoryPropertyId)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 return getService().getCategoryProperty(categoryPropertyId);
306 }
307
308 public static com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
309 long categoryId, java.lang.String key)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 return getService().getCategoryProperty(categoryId, key);
313 }
314
315 public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
316 long groupId, java.lang.String key)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().getCategoryPropertyValues(groupId, key);
319 }
320
321 public static com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
322 long categoryPropertyId, java.lang.String key, java.lang.String value)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 return getService()
326 .updateCategoryProperty(categoryPropertyId, key, value);
327 }
328
329 public static AssetCategoryPropertyLocalService getService() {
330 if (_service == null) {
331 _service = (AssetCategoryPropertyLocalService)PortalBeanLocatorUtil.locate(AssetCategoryPropertyLocalService.class.getName());
332
333 ReferenceRegistry.registerReference(AssetCategoryPropertyLocalServiceUtil.class,
334 "_service");
335 MethodCache.remove(AssetCategoryPropertyLocalService.class);
336 }
337
338 return _service;
339 }
340
341 public void setService(AssetCategoryPropertyLocalService service) {
342 MethodCache.remove(AssetCategoryPropertyLocalService.class);
343
344 _service = service;
345
346 ReferenceRegistry.registerReference(AssetCategoryPropertyLocalServiceUtil.class,
347 "_service");
348 MethodCache.remove(AssetCategoryPropertyLocalService.class);
349 }
350
351 private static AssetCategoryPropertyLocalService _service;
352 }