1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.journal.service;
24  
25  /**
26   * <a href="JournalArticleService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl</code>.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a remote service. Methods of this service are expected to have security
41   * checks based on the propagated JAAS credentials because this service can be accessed
42   * remotely.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.journal.service.JournalArticleServiceFactory
48   * @see com.liferay.portlet.journal.service.JournalArticleServiceUtil
49   *
50   */
51  public interface JournalArticleService {
52      public com.liferay.portlet.journal.model.JournalArticle addArticle(
53          java.lang.String articleId, boolean autoArticleId, long plid,
54          java.lang.String title, java.lang.String description,
55          java.lang.String content, java.lang.String type,
56          java.lang.String structureId, java.lang.String templateId,
57          int displayDateMonth, int displayDateDay, int displayDateYear,
58          int displayDateHour, int displayDateMinute, int expirationDateMonth,
59          int expirationDateDay, int expirationDateYear, int expirationDateHour,
60          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
61          int reviewDateDay, int reviewDateYear, int reviewDateHour,
62          int reviewDateMinute, boolean neverReview, boolean indexable,
63          java.util.Map images, java.lang.String articleURL,
64          javax.portlet.PortletPreferences prefs, java.lang.String[] tagsEntries,
65          boolean addCommunityPermissions, boolean addGuestPermissions)
66          throws com.liferay.portal.SystemException, 
67              com.liferay.portal.PortalException, java.rmi.RemoteException;
68  
69      public com.liferay.portlet.journal.model.JournalArticle addArticle(
70          java.lang.String articleId, boolean autoArticleId, long plid,
71          java.lang.String title, java.lang.String description,
72          java.lang.String content, java.lang.String type,
73          java.lang.String structureId, java.lang.String templateId,
74          int displayDateMonth, int displayDateDay, int displayDateYear,
75          int displayDateHour, int displayDateMinute, int expirationDateMonth,
76          int expirationDateDay, int expirationDateYear, int expirationDateHour,
77          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
78          int reviewDateDay, int reviewDateYear, int reviewDateHour,
79          int reviewDateMinute, boolean neverReview, boolean indexable,
80          java.util.Map images, java.lang.String articleURL,
81          javax.portlet.PortletPreferences prefs, java.lang.String[] tagsEntries,
82          java.lang.String[] communityPermissions,
83          java.lang.String[] guestPermissions)
84          throws com.liferay.portal.SystemException, 
85              com.liferay.portal.PortalException, java.rmi.RemoteException;
86  
87      public com.liferay.portlet.journal.model.JournalArticle approveArticle(
88          long groupId, java.lang.String articleId, double version, long plid,
89          java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
90          throws com.liferay.portal.SystemException, 
91              com.liferay.portal.PortalException, java.rmi.RemoteException;
92  
93      public com.liferay.portlet.journal.model.JournalArticle getArticle(
94          long groupId, java.lang.String articleId, double version)
95          throws com.liferay.portal.SystemException, 
96              com.liferay.portal.PortalException, java.rmi.RemoteException;
97  
98      public java.lang.String getArticleContent(long groupId,
99          java.lang.String articleId, java.lang.String languageId,
100         com.liferay.portal.theme.ThemeDisplay themeDisplay)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portal.PortalException, java.rmi.RemoteException;
103 
104     public java.lang.String getArticleContent(long groupId,
105         java.lang.String articleId, double version,
106         java.lang.String languageId,
107         com.liferay.portal.theme.ThemeDisplay themeDisplay)
108         throws com.liferay.portal.SystemException, 
109             com.liferay.portal.PortalException, java.rmi.RemoteException;
110 
111     public void deleteArticle(long groupId, java.lang.String articleId,
112         double version, java.lang.String articleURL,
113         javax.portlet.PortletPreferences prefs)
114         throws com.liferay.portal.SystemException, 
115             com.liferay.portal.PortalException, java.rmi.RemoteException;
116 
117     public void expireArticle(long groupId, java.lang.String articleId,
118         double version, java.lang.String articleURL,
119         javax.portlet.PortletPreferences prefs)
120         throws com.liferay.portal.SystemException, 
121             com.liferay.portal.PortalException, java.rmi.RemoteException;
122 
123     public void removeArticleLocale(long companyId, java.lang.String languageId)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portal.PortalException, java.rmi.RemoteException;
126 
127     public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
128         long groupId, java.lang.String articleId, double version,
129         java.lang.String languageId)
130         throws com.liferay.portal.SystemException, 
131             com.liferay.portal.PortalException, java.rmi.RemoteException;
132 
133     public com.liferay.portlet.journal.model.JournalArticle updateArticle(
134         long groupId, java.lang.String articleId, double version,
135         boolean incrementVersion, java.lang.String title,
136         java.lang.String description, java.lang.String content,
137         java.lang.String type, java.lang.String structureId,
138         java.lang.String templateId, int displayDateMonth, int displayDateDay,
139         int displayDateYear, int displayDateHour, int displayDateMinute,
140         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
141         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
142         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
143         int reviewDateHour, int reviewDateMinute, boolean neverReview,
144         boolean indexable, java.util.Map images, java.lang.String articleURL,
145         javax.portlet.PortletPreferences prefs, java.lang.String[] tagsEntries)
146         throws com.liferay.portal.SystemException, 
147             com.liferay.portal.PortalException, java.rmi.RemoteException;
148 
149     public com.liferay.portlet.journal.model.JournalArticle updateContent(
150         long groupId, java.lang.String articleId, double version,
151         java.lang.String content)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portal.PortalException, java.rmi.RemoteException;
154 }