1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="AssetCategoryPropertyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link AssetCategoryPropertyLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       AssetCategoryPropertyLocalService
37   * @generated
38   */
39  public class AssetCategoryPropertyLocalServiceUtil {
40      public static com.liferay.portlet.asset.model.AssetCategoryProperty addAssetCategoryProperty(
41          com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addAssetCategoryProperty(assetCategoryProperty);
44      }
45  
46      public static com.liferay.portlet.asset.model.AssetCategoryProperty createAssetCategoryProperty(
47          long categoryPropertyId) {
48          return getService().createAssetCategoryProperty(categoryPropertyId);
49      }
50  
51      public static void deleteAssetCategoryProperty(long categoryPropertyId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteAssetCategoryProperty(categoryPropertyId);
55      }
56  
57      public static void deleteAssetCategoryProperty(
58          com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteAssetCategoryProperty(assetCategoryProperty);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.asset.model.AssetCategoryProperty getAssetCategoryProperty(
76          long categoryPropertyId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getAssetCategoryProperty(categoryPropertyId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getAssetCategoryProperties(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getAssetCategoryProperties(start, end);
86      }
87  
88      public static int getAssetCategoryPropertiesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getAssetCategoryPropertiesCount();
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
94          com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateAssetCategoryProperty(assetCategoryProperty);
97      }
98  
99      public static com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
100         com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService()
104                    .updateAssetCategoryProperty(assetCategoryProperty, merge);
105     }
106 
107     public static com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
108         long userId, long categoryId, java.lang.String key,
109         java.lang.String value)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException {
112         return getService().addCategoryProperty(userId, categoryId, key, value);
113     }
114 
115     public static void deleteCategoryProperties(long entryId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         getService().deleteCategoryProperties(entryId);
118     }
119 
120     public static void deleteCategoryProperty(
121         com.liferay.portlet.asset.model.AssetCategoryProperty categoryProperty)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         getService().deleteCategoryProperty(categoryProperty);
124     }
125 
126     public static void deleteCategoryProperty(long categoryPropertyId)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         getService().deleteCategoryProperty(categoryPropertyId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties()
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getService().getCategoryProperties();
135     }
136 
137     public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
138         long entryId)
139         throws com.liferay.portal.kernel.exception.SystemException {
140         return getService().getCategoryProperties(entryId);
141     }
142 
143     public static com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
144         long categoryPropertyId)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException {
147         return getService().getCategoryProperty(categoryPropertyId);
148     }
149 
150     public static com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
151         long categoryId, java.lang.String key)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException {
154         return getService().getCategoryProperty(categoryId, key);
155     }
156 
157     public static java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
158         long groupId, java.lang.String key)
159         throws com.liferay.portal.kernel.exception.SystemException {
160         return getService().getCategoryPropertyValues(groupId, key);
161     }
162 
163     public static com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
164         long categoryPropertyId, java.lang.String key, java.lang.String value)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException {
167         return getService()
168                    .updateCategoryProperty(categoryPropertyId, key, value);
169     }
170 
171     public static AssetCategoryPropertyLocalService getService() {
172         if (_service == null) {
173             _service = (AssetCategoryPropertyLocalService)PortalBeanLocatorUtil.locate(AssetCategoryPropertyLocalService.class.getName());
174         }
175 
176         return _service;
177     }
178 
179     public void setService(AssetCategoryPropertyLocalService service) {
180         _service = service;
181     }
182 
183     private static AssetCategoryPropertyLocalService _service;
184 }