com.liferay.portlet.journal.service
Interface JournalArticleService


public interface JournalArticleService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

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.

Author:
Brian Wing Shun Chan
See Also:
JournalArticleServiceFactory, JournalArticleServiceUtil

Method Summary
 JournalArticle addArticle(java.lang.String articleId, boolean autoArticleId, long plid, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, java.util.Map images, java.lang.String articleURL, javax.portlet.PortletPreferences prefs, java.lang.String[] tagsEntries, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 JournalArticle addArticle(java.lang.String articleId, boolean autoArticleId, long plid, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, java.util.Map images, java.lang.String articleURL, javax.portlet.PortletPreferences prefs, java.lang.String[] tagsEntries, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 JournalArticle approveArticle(long groupId, java.lang.String articleId, double version, long plid, java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
           
 void deleteArticle(long groupId, java.lang.String articleId, double version, java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
           
 void expireArticle(long groupId, java.lang.String articleId, double version, java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
           
 JournalArticle getArticle(long groupId, java.lang.String articleId, double version)
           
 java.lang.String getArticleContent(long groupId, java.lang.String articleId, double version, java.lang.String languageId, ThemeDisplay themeDisplay)
           
 java.lang.String getArticleContent(long groupId, java.lang.String articleId, java.lang.String languageId, ThemeDisplay themeDisplay)
           
 void removeArticleLocale(long companyId, java.lang.String languageId)
           
 JournalArticle removeArticleLocale(long groupId, java.lang.String articleId, double version, java.lang.String languageId)
           
 JournalArticle updateArticle(long groupId, java.lang.String articleId, double version, boolean incrementVersion, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String type, java.lang.String structureId, java.lang.String templateId, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, java.util.Map images, java.lang.String articleURL, javax.portlet.PortletPreferences prefs, java.lang.String[] tagsEntries)
           
 

Method Detail

addArticle

public JournalArticle addArticle(java.lang.String articleId,
                                 boolean autoArticleId,
                                 long plid,
                                 java.lang.String title,
                                 java.lang.String description,
                                 java.lang.String content,
                                 java.lang.String type,
                                 java.lang.String structureId,
                                 java.lang.String templateId,
                                 int displayDateMonth,
                                 int displayDateDay,
                                 int displayDateYear,
                                 int displayDateHour,
                                 int displayDateMinute,
                                 int expirationDateMonth,
                                 int expirationDateDay,
                                 int expirationDateYear,
                                 int expirationDateHour,
                                 int expirationDateMinute,
                                 boolean neverExpire,
                                 int reviewDateMonth,
                                 int reviewDateDay,
                                 int reviewDateYear,
                                 int reviewDateHour,
                                 int reviewDateMinute,
                                 boolean neverReview,
                                 java.util.Map images,
                                 java.lang.String articleURL,
                                 javax.portlet.PortletPreferences prefs,
                                 java.lang.String[] tagsEntries,
                                 boolean addCommunityPermissions,
                                 boolean addGuestPermissions)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException,
                                 java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addArticle

public JournalArticle addArticle(java.lang.String articleId,
                                 boolean autoArticleId,
                                 long plid,
                                 java.lang.String title,
                                 java.lang.String description,
                                 java.lang.String content,
                                 java.lang.String type,
                                 java.lang.String structureId,
                                 java.lang.String templateId,
                                 int displayDateMonth,
                                 int displayDateDay,
                                 int displayDateYear,
                                 int displayDateHour,
                                 int displayDateMinute,
                                 int expirationDateMonth,
                                 int expirationDateDay,
                                 int expirationDateYear,
                                 int expirationDateHour,
                                 int expirationDateMinute,
                                 boolean neverExpire,
                                 int reviewDateMonth,
                                 int reviewDateDay,
                                 int reviewDateYear,
                                 int reviewDateHour,
                                 int reviewDateMinute,
                                 boolean neverReview,
                                 java.util.Map images,
                                 java.lang.String articleURL,
                                 javax.portlet.PortletPreferences prefs,
                                 java.lang.String[] tagsEntries,
                                 java.lang.String[] communityPermissions,
                                 java.lang.String[] guestPermissions)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException,
                                 java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

approveArticle

public JournalArticle approveArticle(long groupId,
                                     java.lang.String articleId,
                                     double version,
                                     long plid,
                                     java.lang.String articleURL,
                                     javax.portlet.PortletPreferences prefs)
                              throws com.liferay.portal.SystemException,
                                     com.liferay.portal.PortalException,
                                     java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getArticle

public JournalArticle getArticle(long groupId,
                                 java.lang.String articleId,
                                 double version)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException,
                                 java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getArticleContent

public java.lang.String getArticleContent(long groupId,
                                          java.lang.String articleId,
                                          java.lang.String languageId,
                                          ThemeDisplay themeDisplay)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException,
                                          java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getArticleContent

public java.lang.String getArticleContent(long groupId,
                                          java.lang.String articleId,
                                          double version,
                                          java.lang.String languageId,
                                          ThemeDisplay themeDisplay)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException,
                                          java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

deleteArticle

public void deleteArticle(long groupId,
                          java.lang.String articleId,
                          double version,
                          java.lang.String articleURL,
                          javax.portlet.PortletPreferences prefs)
                   throws com.liferay.portal.SystemException,
                          com.liferay.portal.PortalException,
                          java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

expireArticle

public void expireArticle(long groupId,
                          java.lang.String articleId,
                          double version,
                          java.lang.String articleURL,
                          javax.portlet.PortletPreferences prefs)
                   throws com.liferay.portal.SystemException,
                          com.liferay.portal.PortalException,
                          java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

removeArticleLocale

public void removeArticleLocale(long companyId,
                                java.lang.String languageId)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException,
                                java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

removeArticleLocale

public JournalArticle removeArticleLocale(long groupId,
                                          java.lang.String articleId,
                                          double version,
                                          java.lang.String languageId)
                                   throws com.liferay.portal.SystemException,
                                          com.liferay.portal.PortalException,
                                          java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

updateArticle

public JournalArticle updateArticle(long groupId,
                                    java.lang.String articleId,
                                    double version,
                                    boolean incrementVersion,
                                    java.lang.String title,
                                    java.lang.String description,
                                    java.lang.String content,
                                    java.lang.String type,
                                    java.lang.String structureId,
                                    java.lang.String templateId,
                                    int displayDateMonth,
                                    int displayDateDay,
                                    int displayDateYear,
                                    int displayDateHour,
                                    int displayDateMinute,
                                    int expirationDateMonth,
                                    int expirationDateDay,
                                    int expirationDateYear,
                                    int expirationDateHour,
                                    int expirationDateMinute,
                                    boolean neverExpire,
                                    int reviewDateMonth,
                                    int reviewDateDay,
                                    int reviewDateYear,
                                    int reviewDateHour,
                                    int reviewDateMinute,
                                    boolean neverReview,
                                    java.util.Map images,
                                    java.lang.String articleURL,
                                    javax.portlet.PortletPreferences prefs,
                                    java.lang.String[] tagsEntries)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException,
                                    java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException