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="JournalArticleService.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 interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.journal.service.JournalArticleServiceFactory
045: * @see com.liferay.portlet.journal.service.JournalArticleServiceUtil
046: *
047: */
048: public interface JournalArticleService {
049: public com.liferay.portlet.journal.model.JournalArticle addArticle(
050: java.lang.String articleId, boolean autoArticleId,
051: long plid, java.lang.String title,
052: java.lang.String description, java.lang.String content,
053: java.lang.String type, java.lang.String structureId,
054: java.lang.String templateId, int displayDateMonth,
055: int displayDateDay, int displayDateYear,
056: int displayDateHour, int displayDateMinute,
057: int expirationDateMonth, int expirationDateDay,
058: int expirationDateYear, int expirationDateHour,
059: int expirationDateMinute, boolean neverExpire,
060: int reviewDateMonth, int reviewDateDay, int reviewDateYear,
061: int reviewDateHour, int reviewDateMinute,
062: boolean neverReview, boolean indexable, boolean smallImage,
063: java.lang.String smallImageURL, java.io.File smallFile,
064: java.util.Map images, java.lang.String articleURL,
065: javax.portlet.PortletPreferences prefs,
066: java.lang.String[] tagsEntries,
067: boolean addCommunityPermissions, boolean addGuestPermissions)
068: throws java.rmi.RemoteException,
069: com.liferay.portal.SystemException,
070: com.liferay.portal.PortalException;
071:
072: public com.liferay.portlet.journal.model.JournalArticle addArticle(
073: java.lang.String articleId, boolean autoArticleId,
074: long plid, java.lang.String title,
075: java.lang.String description, java.lang.String content,
076: java.lang.String type, java.lang.String structureId,
077: java.lang.String templateId, int displayDateMonth,
078: int displayDateDay, int displayDateYear,
079: int displayDateHour, int displayDateMinute,
080: int expirationDateMonth, int expirationDateDay,
081: int expirationDateYear, int expirationDateHour,
082: int expirationDateMinute, boolean neverExpire,
083: int reviewDateMonth, int reviewDateDay, int reviewDateYear,
084: int reviewDateHour, int reviewDateMinute,
085: boolean neverReview, boolean indexable, boolean smallImage,
086: java.lang.String smallImageURL, java.io.File smallFile,
087: java.util.Map images, java.lang.String articleURL,
088: javax.portlet.PortletPreferences prefs,
089: java.lang.String[] tagsEntries,
090: java.lang.String[] communityPermissions,
091: java.lang.String[] guestPermissions)
092: throws java.rmi.RemoteException,
093: com.liferay.portal.SystemException,
094: com.liferay.portal.PortalException;
095:
096: public com.liferay.portlet.journal.model.JournalArticle approveArticle(
097: long groupId, java.lang.String articleId, double version,
098: long plid, java.lang.String articleURL,
099: javax.portlet.PortletPreferences prefs)
100: throws java.rmi.RemoteException,
101: com.liferay.portal.SystemException,
102: com.liferay.portal.PortalException;
103:
104: public com.liferay.portlet.journal.model.JournalArticle getArticle(
105: long groupId, java.lang.String articleId, double version)
106: throws java.rmi.RemoteException,
107: com.liferay.portal.SystemException,
108: com.liferay.portal.PortalException;
109:
110: public java.lang.String getArticleContent(long groupId,
111: java.lang.String articleId, java.lang.String languageId,
112: com.liferay.portal.theme.ThemeDisplay themeDisplay)
113: throws java.rmi.RemoteException,
114: com.liferay.portal.SystemException,
115: com.liferay.portal.PortalException;
116:
117: public java.lang.String getArticleContent(long groupId,
118: java.lang.String articleId, double version,
119: java.lang.String languageId,
120: com.liferay.portal.theme.ThemeDisplay themeDisplay)
121: throws java.rmi.RemoteException,
122: com.liferay.portal.SystemException,
123: com.liferay.portal.PortalException;
124:
125: public void deleteArticle(long groupId, java.lang.String articleId,
126: double version, java.lang.String articleURL,
127: javax.portlet.PortletPreferences prefs)
128: throws java.rmi.RemoteException,
129: com.liferay.portal.SystemException,
130: com.liferay.portal.PortalException;
131:
132: public void expireArticle(long groupId, java.lang.String articleId,
133: double version, java.lang.String articleURL,
134: javax.portlet.PortletPreferences prefs)
135: throws java.rmi.RemoteException,
136: com.liferay.portal.SystemException,
137: com.liferay.portal.PortalException;
138:
139: public void removeArticleLocale(long companyId,
140: java.lang.String languageId)
141: throws java.rmi.RemoteException,
142: com.liferay.portal.SystemException,
143: com.liferay.portal.PortalException;
144:
145: public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
146: long groupId, java.lang.String articleId, double version,
147: java.lang.String languageId)
148: throws java.rmi.RemoteException,
149: com.liferay.portal.SystemException,
150: com.liferay.portal.PortalException;
151:
152: public com.liferay.portlet.journal.model.JournalArticle updateArticle(
153: long groupId, java.lang.String articleId, double version,
154: boolean incrementVersion, java.lang.String title,
155: java.lang.String description, java.lang.String content,
156: java.lang.String type, java.lang.String structureId,
157: java.lang.String templateId, int displayDateMonth,
158: int displayDateDay, int displayDateYear,
159: int displayDateHour, int displayDateMinute,
160: int expirationDateMonth, int expirationDateDay,
161: int expirationDateYear, int expirationDateHour,
162: int expirationDateMinute, boolean neverExpire,
163: int reviewDateMonth, int reviewDateDay, int reviewDateYear,
164: int reviewDateHour, int reviewDateMinute,
165: boolean neverReview, boolean indexable, boolean smallImage,
166: java.lang.String smallImageURL, java.io.File smallFile,
167: java.util.Map images, java.lang.String articleURL,
168: javax.portlet.PortletPreferences prefs,
169: java.lang.String[] tagsEntries)
170: throws java.rmi.RemoteException,
171: com.liferay.portal.SystemException,
172: com.liferay.portal.PortalException;
173:
174: public com.liferay.portlet.journal.model.JournalArticle updateContent(
175: long groupId, java.lang.String articleId, double version,
176: java.lang.String content) throws java.rmi.RemoteException,
177: com.liferay.portal.SystemException,
178: com.liferay.portal.PortalException;
179: }
|