001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.tags.service;
022:
023: /**
024: * <a href="TagsPropertyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.tags.service.TagsPropertyLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.tags.service.TagsPropertyLocalService
047: * @see com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory
048: *
049: */
050: public class TagsPropertyLocalServiceUtil {
051: public static com.liferay.portlet.tags.model.TagsProperty addTagsProperty(
052: com.liferay.portlet.tags.model.TagsProperty model)
053: throws com.liferay.portal.SystemException {
054: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
055: .getService();
056:
057: return tagsPropertyLocalService.addTagsProperty(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
064: .getService();
065:
066: return tagsPropertyLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
074: .getService();
075:
076: return tagsPropertyLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.tags.model.TagsProperty updateTagsProperty(
081: com.liferay.portlet.tags.model.TagsProperty model)
082: throws com.liferay.portal.SystemException {
083: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
084: .getService();
085:
086: return tagsPropertyLocalService.updateTagsProperty(model);
087: }
088:
089: public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
090: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
091: .getService();
092:
093: return tagsPropertyLocalService.getTagsAssetPersistence();
094: }
095:
096: public static void setTagsAssetPersistence(
097: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
098: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
099: .getService();
100:
101: tagsPropertyLocalService
102: .setTagsAssetPersistence(tagsAssetPersistence);
103: }
104:
105: public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
106: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
107: .getService();
108:
109: return tagsPropertyLocalService.getTagsAssetFinder();
110: }
111:
112: public static void setTagsAssetFinder(
113: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
114: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
115: .getService();
116:
117: tagsPropertyLocalService.setTagsAssetFinder(tagsAssetFinder);
118: }
119:
120: public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
121: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
122: .getService();
123:
124: return tagsPropertyLocalService.getTagsEntryPersistence();
125: }
126:
127: public static void setTagsEntryPersistence(
128: com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
129: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
130: .getService();
131:
132: tagsPropertyLocalService
133: .setTagsEntryPersistence(tagsEntryPersistence);
134: }
135:
136: public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
137: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
138: .getService();
139:
140: return tagsPropertyLocalService.getTagsEntryFinder();
141: }
142:
143: public static void setTagsEntryFinder(
144: com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
145: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
146: .getService();
147:
148: tagsPropertyLocalService.setTagsEntryFinder(tagsEntryFinder);
149: }
150:
151: public static com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence getTagsPropertyPersistence() {
152: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
153: .getService();
154:
155: return tagsPropertyLocalService.getTagsPropertyPersistence();
156: }
157:
158: public static void setTagsPropertyPersistence(
159: com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence tagsPropertyPersistence) {
160: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
161: .getService();
162:
163: tagsPropertyLocalService
164: .setTagsPropertyPersistence(tagsPropertyPersistence);
165: }
166:
167: public static com.liferay.portlet.tags.service.persistence.TagsPropertyFinder getTagsPropertyFinder() {
168: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
169: .getService();
170:
171: return tagsPropertyLocalService.getTagsPropertyFinder();
172: }
173:
174: public static void setTagsPropertyFinder(
175: com.liferay.portlet.tags.service.persistence.TagsPropertyFinder tagsPropertyFinder) {
176: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
177: .getService();
178:
179: tagsPropertyLocalService
180: .setTagsPropertyFinder(tagsPropertyFinder);
181: }
182:
183: public static com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
184: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
185: .getService();
186:
187: return tagsPropertyLocalService.getTagsPropertyKeyFinder();
188: }
189:
190: public static void setTagsPropertyKeyFinder(
191: com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder tagsPropertyKeyFinder) {
192: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
193: .getService();
194:
195: tagsPropertyLocalService
196: .setTagsPropertyKeyFinder(tagsPropertyKeyFinder);
197: }
198:
199: public static com.liferay.portlet.tags.service.persistence.TagsSourcePersistence getTagsSourcePersistence() {
200: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
201: .getService();
202:
203: return tagsPropertyLocalService.getTagsSourcePersistence();
204: }
205:
206: public static void setTagsSourcePersistence(
207: com.liferay.portlet.tags.service.persistence.TagsSourcePersistence tagsSourcePersistence) {
208: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
209: .getService();
210:
211: tagsPropertyLocalService
212: .setTagsSourcePersistence(tagsSourcePersistence);
213: }
214:
215: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
216: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
217: .getService();
218:
219: return tagsPropertyLocalService.getUserPersistence();
220: }
221:
222: public static void setUserPersistence(
223: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
224: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
225: .getService();
226:
227: tagsPropertyLocalService.setUserPersistence(userPersistence);
228: }
229:
230: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
231: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
232: .getService();
233:
234: return tagsPropertyLocalService.getUserFinder();
235: }
236:
237: public static void setUserFinder(
238: com.liferay.portal.service.persistence.UserFinder userFinder) {
239: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
240: .getService();
241:
242: tagsPropertyLocalService.setUserFinder(userFinder);
243: }
244:
245: public static void afterPropertiesSet() {
246: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
247: .getService();
248:
249: tagsPropertyLocalService.afterPropertiesSet();
250: }
251:
252: public static com.liferay.portlet.tags.model.TagsProperty addProperty(
253: long userId, long entryId, java.lang.String key,
254: java.lang.String value)
255: throws com.liferay.portal.PortalException,
256: com.liferay.portal.SystemException {
257: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
258: .getService();
259:
260: return tagsPropertyLocalService.addProperty(userId, entryId,
261: key, value);
262: }
263:
264: public static com.liferay.portlet.tags.model.TagsProperty addProperty(
265: long userId, java.lang.String entryName,
266: java.lang.String key, java.lang.String value)
267: throws com.liferay.portal.PortalException,
268: com.liferay.portal.SystemException {
269: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
270: .getService();
271:
272: return tagsPropertyLocalService.addProperty(userId, entryName,
273: key, value);
274: }
275:
276: public static void deleteProperties(long entryId)
277: throws com.liferay.portal.PortalException,
278: com.liferay.portal.SystemException {
279: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
280: .getService();
281:
282: tagsPropertyLocalService.deleteProperties(entryId);
283: }
284:
285: public static void deleteProperty(long propertyId)
286: throws com.liferay.portal.PortalException,
287: com.liferay.portal.SystemException {
288: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
289: .getService();
290:
291: tagsPropertyLocalService.deleteProperty(propertyId);
292: }
293:
294: public static void deleteProperty(
295: com.liferay.portlet.tags.model.TagsProperty property)
296: throws com.liferay.portal.PortalException,
297: com.liferay.portal.SystemException {
298: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
299: .getService();
300:
301: tagsPropertyLocalService.deleteProperty(property);
302: }
303:
304: public static java.util.List getProperties()
305: throws com.liferay.portal.SystemException {
306: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
307: .getService();
308:
309: return tagsPropertyLocalService.getProperties();
310: }
311:
312: public static java.util.List getProperties(long entryId)
313: throws com.liferay.portal.SystemException {
314: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
315: .getService();
316:
317: return tagsPropertyLocalService.getProperties(entryId);
318: }
319:
320: public static com.liferay.portlet.tags.model.TagsProperty getProperty(
321: long propertyId) throws com.liferay.portal.PortalException,
322: com.liferay.portal.SystemException {
323: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
324: .getService();
325:
326: return tagsPropertyLocalService.getProperty(propertyId);
327: }
328:
329: public static com.liferay.portlet.tags.model.TagsProperty getProperty(
330: long entryId, java.lang.String key)
331: throws com.liferay.portal.PortalException,
332: com.liferay.portal.SystemException {
333: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
334: .getService();
335:
336: return tagsPropertyLocalService.getProperty(entryId, key);
337: }
338:
339: public static java.lang.String[] getPropertyKeys(long companyId)
340: throws com.liferay.portal.SystemException {
341: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
342: .getService();
343:
344: return tagsPropertyLocalService.getPropertyKeys(companyId);
345: }
346:
347: public static java.util.List getPropertyValues(long companyId,
348: java.lang.String key)
349: throws com.liferay.portal.SystemException {
350: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
351: .getService();
352:
353: return tagsPropertyLocalService.getPropertyValues(companyId,
354: key);
355: }
356:
357: public static com.liferay.portlet.tags.model.TagsProperty updateProperty(
358: long propertyId, java.lang.String key,
359: java.lang.String value)
360: throws com.liferay.portal.PortalException,
361: com.liferay.portal.SystemException {
362: TagsPropertyLocalService tagsPropertyLocalService = TagsPropertyLocalServiceFactory
363: .getService();
364:
365: return tagsPropertyLocalService.updateProperty(propertyId, key,
366: value);
367: }
368: }
|