1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service;
24  
25  
26  /**
27   * <a href="TagsPropertyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * {@link TagsPropertyLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       TagsPropertyLocalService
44   * @generated
45   */
46  public class TagsPropertyLocalServiceUtil {
47      public static com.liferay.portlet.tags.model.TagsProperty addTagsProperty(
48          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
49          throws com.liferay.portal.SystemException {
50          return getService().addTagsProperty(tagsProperty);
51      }
52  
53      public static com.liferay.portlet.tags.model.TagsProperty createTagsProperty(
54          long propertyId) {
55          return getService().createTagsProperty(propertyId);
56      }
57  
58      public static void deleteTagsProperty(long propertyId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteTagsProperty(propertyId);
62      }
63  
64      public static void deleteTagsProperty(
65          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
66          throws com.liferay.portal.SystemException {
67          getService().deleteTagsProperty(tagsProperty);
68      }
69  
70      public static java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException {
73          return getService().dynamicQuery(dynamicQuery);
74      }
75  
76      public static java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException {
79          return getService().dynamicQuery(dynamicQuery, start, end);
80      }
81  
82      public static com.liferay.portlet.tags.model.TagsProperty getTagsProperty(
83          long propertyId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getTagsProperty(propertyId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getTagsProperties(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getTagsProperties(start, end);
92      }
93  
94      public static int getTagsPropertiesCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getTagsPropertiesCount();
97      }
98  
99      public static com.liferay.portlet.tags.model.TagsProperty updateTagsProperty(
100         com.liferay.portlet.tags.model.TagsProperty tagsProperty)
101         throws com.liferay.portal.SystemException {
102         return getService().updateTagsProperty(tagsProperty);
103     }
104 
105     public static com.liferay.portlet.tags.model.TagsProperty updateTagsProperty(
106         com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
107         throws com.liferay.portal.SystemException {
108         return getService().updateTagsProperty(tagsProperty, merge);
109     }
110 
111     public static com.liferay.portlet.tags.model.TagsProperty addProperty(
112         long userId, long entryId, java.lang.String key, java.lang.String value)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException {
115         return getService().addProperty(userId, entryId, key, value);
116     }
117 
118     public static com.liferay.portlet.tags.model.TagsProperty addProperty(
119         long userId, java.lang.String entryName, java.lang.String key,
120         java.lang.String value)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return getService().addProperty(userId, entryName, key, value);
124     }
125 
126     public static void deleteProperties(long entryId)
127         throws com.liferay.portal.SystemException {
128         getService().deleteProperties(entryId);
129     }
130 
131     public static void deleteProperty(long propertyId)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         getService().deleteProperty(propertyId);
135     }
136 
137     public static void deleteProperty(
138         com.liferay.portlet.tags.model.TagsProperty property)
139         throws com.liferay.portal.SystemException {
140         getService().deleteProperty(property);
141     }
142 
143     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getProperties()
144         throws com.liferay.portal.SystemException {
145         return getService().getProperties();
146     }
147 
148     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getProperties(
149         long entryId) throws com.liferay.portal.SystemException {
150         return getService().getProperties(entryId);
151     }
152 
153     public static com.liferay.portlet.tags.model.TagsProperty getProperty(
154         long propertyId)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         return getService().getProperty(propertyId);
158     }
159 
160     public static com.liferay.portlet.tags.model.TagsProperty getProperty(
161         long entryId, java.lang.String key)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         return getService().getProperty(entryId, key);
165     }
166 
167     public static java.lang.String[] getPropertyKeys(long companyId)
168         throws com.liferay.portal.SystemException {
169         return getService().getPropertyKeys(companyId);
170     }
171 
172     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> getPropertyValues(
173         long companyId, java.lang.String key)
174         throws com.liferay.portal.SystemException {
175         return getService().getPropertyValues(companyId, key);
176     }
177 
178     public static com.liferay.portlet.tags.model.TagsProperty updateProperty(
179         long propertyId, java.lang.String key, java.lang.String value)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         return getService().updateProperty(propertyId, key, value);
183     }
184 
185     public static TagsPropertyLocalService getService() {
186         if (_service == null) {
187             throw new RuntimeException("TagsPropertyLocalService is not set");
188         }
189 
190         return _service;
191     }
192 
193     public void setService(TagsPropertyLocalService service) {
194         _service = service;
195     }
196 
197     private static TagsPropertyLocalService _service;
198 }