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="AssetTagPropertyLocalServiceUtil.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 AssetTagPropertyLocalService} 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       AssetTagPropertyLocalService
37   * @generated
38   */
39  public class AssetTagPropertyLocalServiceUtil {
40      public static com.liferay.portlet.asset.model.AssetTagProperty addAssetTagProperty(
41          com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addAssetTagProperty(assetTagProperty);
44      }
45  
46      public static com.liferay.portlet.asset.model.AssetTagProperty createAssetTagProperty(
47          long tagPropertyId) {
48          return getService().createAssetTagProperty(tagPropertyId);
49      }
50  
51      public static void deleteAssetTagProperty(long tagPropertyId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteAssetTagProperty(tagPropertyId);
55      }
56  
57      public static void deleteAssetTagProperty(
58          com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteAssetTagProperty(assetTagProperty);
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.AssetTagProperty getAssetTagProperty(
76          long tagPropertyId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getAssetTagProperty(tagPropertyId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getAssetTagProperties(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getAssetTagProperties(start, end);
86      }
87  
88      public static int getAssetTagPropertiesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getAssetTagPropertiesCount();
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetTagProperty updateAssetTagProperty(
94          com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateAssetTagProperty(assetTagProperty);
97      }
98  
99      public static com.liferay.portlet.asset.model.AssetTagProperty updateAssetTagProperty(
100         com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateAssetTagProperty(assetTagProperty, merge);
104     }
105 
106     public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty(
107         long userId, long tagId, java.lang.String key, java.lang.String value)
108         throws com.liferay.portal.kernel.exception.PortalException,
109             com.liferay.portal.kernel.exception.SystemException {
110         return getService().addTagProperty(userId, tagId, key, value);
111     }
112 
113     public static void deleteTagProperties(long tagId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         getService().deleteTagProperties(tagId);
116     }
117 
118     public static void deleteTagProperty(
119         com.liferay.portlet.asset.model.AssetTagProperty tagProperty)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         getService().deleteTagProperty(tagProperty);
122     }
123 
124     public static void deleteTagProperty(long tagPropertyId)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException {
127         getService().deleteTagProperty(tagPropertyId);
128     }
129 
130     public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties()
131         throws com.liferay.portal.kernel.exception.SystemException {
132         return getService().getTagProperties();
133     }
134 
135     public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties(
136         long tagId) throws com.liferay.portal.kernel.exception.SystemException {
137         return getService().getTagProperties(tagId);
138     }
139 
140     public static com.liferay.portlet.asset.model.AssetTagProperty getTagProperty(
141         long tagPropertyId)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         return getService().getTagProperty(tagPropertyId);
145     }
146 
147     public static com.liferay.portlet.asset.model.AssetTagProperty getTagProperty(
148         long tagId, java.lang.String key)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException {
151         return getService().getTagProperty(tagId, key);
152     }
153 
154     public static java.lang.String[] getTagPropertyKeys(long groupId)
155         throws com.liferay.portal.kernel.exception.SystemException {
156         return getService().getTagPropertyKeys(groupId);
157     }
158 
159     public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues(
160         long groupId, java.lang.String key)
161         throws com.liferay.portal.kernel.exception.SystemException {
162         return getService().getTagPropertyValues(groupId, key);
163     }
164 
165     public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty(
166         long tagPropertyId, java.lang.String key, java.lang.String value)
167         throws com.liferay.portal.kernel.exception.PortalException,
168             com.liferay.portal.kernel.exception.SystemException {
169         return getService().updateTagProperty(tagPropertyId, key, value);
170     }
171 
172     public static AssetTagPropertyLocalService getService() {
173         if (_service == null) {
174             _service = (AssetTagPropertyLocalService)PortalBeanLocatorUtil.locate(AssetTagPropertyLocalService.class.getName());
175         }
176 
177         return _service;
178     }
179 
180     public void setService(AssetTagPropertyLocalService service) {
181         _service = service;
182     }
183 
184     private static AssetTagPropertyLocalService _service;
185 }