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.journal.service;
022:
023: /**
024: * <a href="JournalFeedServiceUtil.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.journal.service.JournalFeedService</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.journal.service.JournalFeedServiceFactory</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.journal.service.JournalFeedService
047: * @see com.liferay.portlet.journal.service.JournalFeedServiceFactory
048: *
049: */
050: public class JournalFeedServiceUtil {
051: public static com.liferay.portlet.journal.model.JournalFeed addFeed(
052: long plid, java.lang.String feedId, boolean autoFeedId,
053: java.lang.String name, java.lang.String description,
054: java.lang.String type, java.lang.String structureId,
055: java.lang.String templateId,
056: java.lang.String rendererTemplateId, int delta,
057: java.lang.String orderByCol, java.lang.String orderByType,
058: java.lang.String targetLayoutFriendlyUrl,
059: java.lang.String targetPortletId,
060: java.lang.String contentField, java.lang.String feedType,
061: double feedVersion, boolean addCommunityPermissions,
062: boolean addGuestPermissions)
063: throws com.liferay.portal.PortalException,
064: com.liferay.portal.SystemException,
065: java.rmi.RemoteException {
066: JournalFeedService journalFeedService = JournalFeedServiceFactory
067: .getService();
068:
069: return journalFeedService.addFeed(plid, feedId, autoFeedId,
070: name, description, type, structureId, templateId,
071: rendererTemplateId, delta, orderByCol, orderByType,
072: targetLayoutFriendlyUrl, targetPortletId, contentField,
073: feedType, feedVersion, addCommunityPermissions,
074: addGuestPermissions);
075: }
076:
077: public static com.liferay.portlet.journal.model.JournalFeed addFeed(
078: long plid, java.lang.String feedId, boolean autoFeedId,
079: java.lang.String name, java.lang.String description,
080: java.lang.String type, java.lang.String structureId,
081: java.lang.String templateId,
082: java.lang.String rendererTemplateId, int delta,
083: java.lang.String orderByCol, java.lang.String orderByType,
084: java.lang.String targetLayoutFriendlyUrl,
085: java.lang.String targetPortletId,
086: java.lang.String contentField, java.lang.String feedType,
087: double feedVersion,
088: java.lang.String[] communityPermissions,
089: java.lang.String[] guestPermissions)
090: throws com.liferay.portal.PortalException,
091: com.liferay.portal.SystemException,
092: java.rmi.RemoteException {
093: JournalFeedService journalFeedService = JournalFeedServiceFactory
094: .getService();
095:
096: return journalFeedService.addFeed(plid, feedId, autoFeedId,
097: name, description, type, structureId, templateId,
098: rendererTemplateId, delta, orderByCol, orderByType,
099: targetLayoutFriendlyUrl, targetPortletId, contentField,
100: feedType, feedVersion, communityPermissions,
101: guestPermissions);
102: }
103:
104: public static void deleteFeed(long groupId, long feedId)
105: throws com.liferay.portal.PortalException,
106: com.liferay.portal.SystemException,
107: java.rmi.RemoteException {
108: JournalFeedService journalFeedService = JournalFeedServiceFactory
109: .getService();
110:
111: journalFeedService.deleteFeed(groupId, feedId);
112: }
113:
114: public static void deleteFeed(long groupId, java.lang.String feedId)
115: throws com.liferay.portal.PortalException,
116: com.liferay.portal.SystemException,
117: java.rmi.RemoteException {
118: JournalFeedService journalFeedService = JournalFeedServiceFactory
119: .getService();
120:
121: journalFeedService.deleteFeed(groupId, feedId);
122: }
123:
124: public static com.liferay.portlet.journal.model.JournalFeed getFeed(
125: long groupId, long feedId)
126: throws com.liferay.portal.PortalException,
127: com.liferay.portal.SystemException,
128: java.rmi.RemoteException {
129: JournalFeedService journalFeedService = JournalFeedServiceFactory
130: .getService();
131:
132: return journalFeedService.getFeed(groupId, feedId);
133: }
134:
135: public static com.liferay.portlet.journal.model.JournalFeed getFeed(
136: long groupId, java.lang.String feedId)
137: throws com.liferay.portal.PortalException,
138: com.liferay.portal.SystemException,
139: java.rmi.RemoteException {
140: JournalFeedService journalFeedService = JournalFeedServiceFactory
141: .getService();
142:
143: return journalFeedService.getFeed(groupId, feedId);
144: }
145:
146: public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
147: long groupId, java.lang.String feedId,
148: java.lang.String name, java.lang.String description,
149: java.lang.String type, java.lang.String structureId,
150: java.lang.String templateId,
151: java.lang.String rendererTemplateId, int delta,
152: java.lang.String orderByCol, java.lang.String orderByType,
153: java.lang.String targetLayoutFriendlyUrl,
154: java.lang.String targetPortletId,
155: java.lang.String contentField, java.lang.String feedType,
156: double feedVersion)
157: throws com.liferay.portal.PortalException,
158: com.liferay.portal.SystemException,
159: java.rmi.RemoteException {
160: JournalFeedService journalFeedService = JournalFeedServiceFactory
161: .getService();
162:
163: return journalFeedService.updateFeed(groupId, feedId, name,
164: description, type, structureId, templateId,
165: rendererTemplateId, delta, orderByCol, orderByType,
166: targetLayoutFriendlyUrl, targetPortletId, contentField,
167: feedType, feedVersion);
168: }
169: }
|