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.blogs.service;
022:
023: /**
024: * <a href="BlogsEntryServiceUtil.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.blogs.service.BlogsEntryService</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.blogs.service.BlogsEntryServiceFactory</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.blogs.service.BlogsEntryService
047: * @see com.liferay.portlet.blogs.service.BlogsEntryServiceFactory
048: *
049: */
050: public class BlogsEntryServiceUtil {
051: public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
052: long plid, java.lang.String title,
053: java.lang.String content, int displayDateMonth,
054: int displayDateDay, int displayDateYear,
055: int displayDateHour, int displayDateMinute,
056: java.lang.String[] tagsEntries,
057: boolean addCommunityPermissions,
058: boolean addGuestPermissions,
059: com.liferay.portal.theme.ThemeDisplay themeDisplay)
060: throws com.liferay.portal.PortalException,
061: com.liferay.portal.SystemException,
062: java.rmi.RemoteException {
063: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
064: .getService();
065:
066: return blogsEntryService.addEntry(plid, title, content,
067: displayDateMonth, displayDateDay, displayDateYear,
068: displayDateHour, displayDateMinute, tagsEntries,
069: addCommunityPermissions, addGuestPermissions,
070: themeDisplay);
071: }
072:
073: public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
074: long plid, java.lang.String title,
075: java.lang.String content, int displayDateMonth,
076: int displayDateDay, int displayDateYear,
077: int displayDateHour, int displayDateMinute,
078: java.lang.String[] tagsEntries,
079: java.lang.String[] communityPermissions,
080: java.lang.String[] guestPermissions,
081: com.liferay.portal.theme.ThemeDisplay themeDisplay)
082: throws com.liferay.portal.PortalException,
083: com.liferay.portal.SystemException,
084: java.rmi.RemoteException {
085: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
086: .getService();
087:
088: return blogsEntryService.addEntry(plid, title, content,
089: displayDateMonth, displayDateDay, displayDateYear,
090: displayDateHour, displayDateMinute, tagsEntries,
091: communityPermissions, guestPermissions, themeDisplay);
092: }
093:
094: public static void deleteEntry(long entryId)
095: throws com.liferay.portal.PortalException,
096: com.liferay.portal.SystemException,
097: java.rmi.RemoteException {
098: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
099: .getService();
100:
101: blogsEntryService.deleteEntry(entryId);
102: }
103:
104: public static java.util.List getCompanyEntries(long companyId,
105: int max) throws com.liferay.portal.PortalException,
106: com.liferay.portal.SystemException,
107: java.rmi.RemoteException {
108: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
109: .getService();
110:
111: return blogsEntryService.getCompanyEntries(companyId, max);
112: }
113:
114: public static java.lang.String getCompanyEntriesRSS(long companyId,
115: int max, java.lang.String type, double version,
116: java.lang.String displayStyle, java.lang.String feedURL,
117: java.lang.String entryURL)
118: throws com.liferay.portal.PortalException,
119: com.liferay.portal.SystemException,
120: java.rmi.RemoteException {
121: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
122: .getService();
123:
124: return blogsEntryService.getCompanyEntriesRSS(companyId, max,
125: type, version, displayStyle, feedURL, entryURL);
126: }
127:
128: public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
129: long entryId) throws com.liferay.portal.PortalException,
130: com.liferay.portal.SystemException,
131: java.rmi.RemoteException {
132: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
133: .getService();
134:
135: return blogsEntryService.getEntry(entryId);
136: }
137:
138: public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
139: long groupId, java.lang.String urlTitle)
140: throws com.liferay.portal.PortalException,
141: com.liferay.portal.SystemException,
142: java.rmi.RemoteException {
143: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
144: .getService();
145:
146: return blogsEntryService.getEntry(groupId, urlTitle);
147: }
148:
149: public static java.util.List getGroupEntries(long groupId, int max)
150: throws com.liferay.portal.PortalException,
151: com.liferay.portal.SystemException,
152: java.rmi.RemoteException {
153: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
154: .getService();
155:
156: return blogsEntryService.getGroupEntries(groupId, max);
157: }
158:
159: public static java.lang.String getGroupEntriesRSS(long groupId,
160: int max, java.lang.String type, double version,
161: java.lang.String displayStyle, java.lang.String feedURL,
162: java.lang.String entryURL)
163: throws com.liferay.portal.PortalException,
164: com.liferay.portal.SystemException,
165: java.rmi.RemoteException {
166: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
167: .getService();
168:
169: return blogsEntryService.getGroupEntriesRSS(groupId, max, type,
170: version, displayStyle, feedURL, entryURL);
171: }
172:
173: public static java.util.List getOrganizationEntries(
174: long organizationId, int max)
175: throws com.liferay.portal.PortalException,
176: com.liferay.portal.SystemException,
177: java.rmi.RemoteException {
178: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
179: .getService();
180:
181: return blogsEntryService.getOrganizationEntries(organizationId,
182: max);
183: }
184:
185: public static java.lang.String getOrganizationEntriesRSS(
186: long organizationId, int max, java.lang.String type,
187: double version, java.lang.String displayStyle,
188: java.lang.String feedURL, java.lang.String entryURL)
189: throws com.liferay.portal.PortalException,
190: com.liferay.portal.SystemException,
191: java.rmi.RemoteException {
192: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
193: .getService();
194:
195: return blogsEntryService.getOrganizationEntriesRSS(
196: organizationId, max, type, version, displayStyle,
197: feedURL, entryURL);
198: }
199:
200: public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
201: long entryId, java.lang.String title,
202: java.lang.String content, int displayDateMonth,
203: int displayDateDay, int displayDateYear,
204: int displayDateHour, int displayDateMinute,
205: java.lang.String[] tagsEntries,
206: com.liferay.portal.theme.ThemeDisplay themeDisplay)
207: throws com.liferay.portal.PortalException,
208: com.liferay.portal.SystemException,
209: java.rmi.RemoteException {
210: BlogsEntryService blogsEntryService = BlogsEntryServiceFactory
211: .getService();
212:
213: return blogsEntryService.updateEntry(entryId, title, content,
214: displayDateMonth, displayDateDay, displayDateYear,
215: displayDateHour, displayDateMinute, tagsEntries,
216: themeDisplay);
217: }
218: }
|