Liferay 6.0.5

com.liferay.portlet.journal.service
Interface JournalArticleLocalService

All Known Implementing Classes:
JournalArticleLocalServiceBaseImpl, JournalArticleLocalServiceImpl, JournalArticleLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface JournalArticleLocalService

The interface for the journal article local service.

Never modify or reference this interface directly. Always use JournalArticleLocalServiceUtil to access the journal article local service. Add custom service methods to JournalArticleLocalServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
JournalArticleLocalServiceUtil, JournalArticleLocalServiceBaseImpl, JournalArticleLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 JournalArticle addArticle(long userId, long groupId, String articleId, boolean autoArticleId, double version, String title, String description, String content, String type, String structureId, 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, boolean indexable, boolean smallImage, String smallImageURL, File smallFile, Map<String,byte[]> images, String articleURL, ServiceContext serviceContext)
           
 void addArticleResources(JournalArticle article, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addArticleResources(JournalArticle article, String[] communityPermissions, String[] guestPermissions)
           
 void addArticleResources(long groupId, String articleId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addArticleResources(long groupId, String articleId, String[] communityPermissions, String[] guestPermissions)
           
 JournalArticle addJournalArticle(JournalArticle journalArticle)
          Adds the journal article to the database.
 JournalArticle checkArticleResourcePrimKey(long groupId, String articleId, double version)
           
 void checkArticles()
           
 void checkNewLine(long groupId, String articleId, double version)
           
 void checkStructure(long groupId, String articleId, double version)
           
 JournalArticle copyArticle(long userId, long groupId, String oldArticleId, String newArticleId, boolean autoArticleId, double version)
           
 JournalArticle createJournalArticle(long id)
          Creates a new journal article with the primary key.
 void deleteArticle(JournalArticle article, String articleURL, ServiceContext serviceContext)
           
 void deleteArticle(long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext)
           
 void deleteArticle(long groupId, String articleId, ServiceContext serviceContext)
           
 void deleteArticles(long groupId)
           
 void deleteJournalArticle(JournalArticle journalArticle)
          Deletes the journal article from the database.
 void deleteJournalArticle(long id)
          Deletes the journal article with the primary key from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 JournalArticle expireArticle(long userId, long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext)
           
 JournalArticle getArticle(long id)
           
 JournalArticle getArticle(long groupId, String articleId)
           
 JournalArticle getArticle(long groupId, String articleId, double version)
           
 JournalArticle getArticleByUrlTitle(long groupId, String urlTitle)
           
 String getArticleContent(JournalArticle article, String templateId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
 String getArticleContent(long groupId, String articleId, double version, String viewMode, String templateId, String languageId, ThemeDisplay themeDisplay)
           
 String getArticleContent(long groupId, String articleId, double version, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
 String getArticleContent(long groupId, String articleId, String viewMode, String templateId, String languageId, ThemeDisplay themeDisplay)
           
 String getArticleContent(long groupId, String articleId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(JournalArticle article, String templateId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(long groupId, String articleId, double version, String templateId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(long groupId, String articleId, double version, String templateId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String templateId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String templateId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
 JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
 List<JournalArticle> getArticles()
           
 List<JournalArticle> getArticles(long groupId)
           
 List<JournalArticle> getArticles(long groupId, int start, int end)
           
 List<JournalArticle> getArticles(long groupId, int start, int end, OrderByComparator obc)
           
 List<JournalArticle> getArticles(long groupId, String articleId)
           
 List<JournalArticle> getArticlesBySmallImageId(long smallImageId)
           
 int getArticlesCount(long groupId)
           
 List<JournalArticle> getCompanyArticles(long companyId, int status, int start, int end)
           
 int getCompanyArticlesCount(long companyId, int status)
           
 JournalArticle getDisplayArticle(long groupId, String articleId)
           
 JournalArticle getJournalArticle(long id)
          Gets the journal article with the primary key.
 JournalArticle getJournalArticleByUuidAndGroupId(String uuid, long groupId)
          Gets the journal article with the UUID and group id.
 List<JournalArticle> getJournalArticles(int start, int end)
          Gets a range of all the journal articles.
 int getJournalArticlesCount()
          Gets the number of journal articles.
 JournalArticle getLatestArticle(long resourcePrimKey)
           
 JournalArticle getLatestArticle(long resourcePrimKey, int status)
           
 JournalArticle getLatestArticle(long resourcePrimKey, int status, boolean preferApproved)
           
 JournalArticle getLatestArticle(long groupId, String articleId)
           
 JournalArticle getLatestArticle(long groupId, String articleId, int status)
           
 JournalArticle getLatestArticleByUrlTitle(long groupId, String urlTitle, int status)
           
 double getLatestVersion(long groupId, String articleId)
           
 double getLatestVersion(long groupId, String articleId, int status)
           
 List<JournalArticle> getStructureArticles(long groupId, String structureId)
           
 List<JournalArticle> getStructureArticles(long groupId, String structureId, int start, int end, OrderByComparator obc)
           
 int getStructureArticlesCount(long groupId, String structureId)
           
 List<JournalArticle> getTemplateArticles(long groupId, String templateId)
           
 List<JournalArticle> getTemplateArticles(long groupId, String templateId, int start, int end, OrderByComparator obc)
           
 int getTemplateArticlesCount(long groupId, String templateId)
           
 boolean hasArticle(long groupId, String articleId)
           
 boolean isLatestVersion(long groupId, String articleId, double version)
           
 boolean isLatestVersion(long groupId, String articleId, double version, int status)
           
 JournalArticle removeArticleLocale(long groupId, String articleId, double version, String languageId)
           
 List<JournalArticle> search(long companyId, long groupId, String keywords, Double version, String type, String structureId, String templateId, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, int start, int end, OrderByComparator obc)
           
 List<JournalArticle> search(long companyId, long groupId, String articleId, Double version, String title, String description, String content, String type, String[] structureIds, String[] templateIds, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, boolean andOperator, int start, int end, OrderByComparator obc)
           
 List<JournalArticle> search(long companyId, long groupId, String articleId, Double version, String title, String description, String content, String type, String structureId, String templateId, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, boolean andOperator, int start, int end, OrderByComparator obc)
           
 int searchCount(long companyId, long groupId, String keywords, Double version, String type, String structureId, String templateId, Date displayDateGT, Date displayDateLT, int status, Date reviewDate)
           
 int searchCount(long companyId, long groupId, String articleId, Double version, String title, String description, String content, String type, String[] structureIds, String[] templateIds, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, boolean andOperator)
           
 int searchCount(long companyId, long groupId, String articleId, Double version, String title, String description, String content, String type, String structureId, String templateId, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, boolean andOperator)
           
 JournalArticle updateArticle(long userId, long groupId, String articleId, double version, String content)
           
 JournalArticle updateArticle(long userId, long groupId, String articleId, double version, String title, String description, String content, String type, String structureId, 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, boolean indexable, boolean smallImage, String smallImageURL, File smallFile, Map<String,byte[]> images, String articleURL, ServiceContext serviceContext)
           
 void updateAsset(long userId, JournalArticle article, long[] assetCategoryIds, String[] assetTagNames)
           
 JournalArticle updateContent(long groupId, String articleId, double version, String content)
           
 JournalArticle updateJournalArticle(JournalArticle journalArticle)
          Updates the journal article in the database.
 JournalArticle updateJournalArticle(JournalArticle journalArticle, boolean merge)
          Updates the journal article in the database.
 JournalArticle updateStatus(long userId, JournalArticle article, int status, String articleURL, ServiceContext serviceContext)
           
 JournalArticle updateStatus(long userId, long classPK, int status, ServiceContext serviceContext)
           
 JournalArticle updateStatus(long userId, long groupId, String articleId, double version, int status, String articleURL, ServiceContext serviceContext)
           
 

Method Detail

addJournalArticle

JournalArticle addJournalArticle(JournalArticle journalArticle)
                                 throws SystemException
Adds the journal article to the database. Also notifies the appropriate model listeners.

Parameters:
journalArticle - the journal article to add
Returns:
the journal article that was added
Throws:
SystemException - if a system exception occurred

createJournalArticle

JournalArticle createJournalArticle(long id)
Creates a new journal article with the primary key. Does not add the journal article to the database.

Parameters:
id - the primary key for the new journal article
Returns:
the new journal article

deleteJournalArticle

void deleteJournalArticle(long id)
                          throws PortalException,
                                 SystemException
Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
id - the primary key of the journal article to delete
Throws:
PortalException - if a journal article with the primary key could not be found
SystemException - if a system exception occurred

deleteJournalArticle

void deleteJournalArticle(JournalArticle journalArticle)
                          throws SystemException
Deletes the journal article from the database. Also notifies the appropriate model listeners.

Parameters:
journalArticle - the journal article to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getJournalArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getJournalArticle(long id)
                                 throws PortalException,
                                        SystemException
Gets the journal article with the primary key.

Parameters:
id - the primary key of the journal article to get
Returns:
the journal article
Throws:
PortalException - if a journal article with the primary key could not be found
SystemException - if a system exception occurred

getJournalArticleByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getJournalArticleByUuidAndGroupId(String uuid,
                                                                                          long groupId)
                                                 throws PortalException,
                                                        SystemException
Gets the journal article with the UUID and group id.

Parameters:
uuid - the UUID of journal article to get
groupId - the group id of the journal article to get
Returns:
the journal article
Throws:
PortalException - if a journal article with the UUID and group id could not be found
SystemException - if a system exception occurred

getJournalArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getJournalArticles(int start,
                                                                                 int end)
                                        throws SystemException
Gets a range of all the journal articles.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of journal articles to return
end - the upper bound of the range of journal articles to return (not inclusive)
Returns:
the range of journal articles
Throws:
SystemException - if a system exception occurred

getJournalArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getJournalArticlesCount()
                            throws SystemException
Gets the number of journal articles.

Returns:
the number of journal articles
Throws:
SystemException - if a system exception occurred

updateJournalArticle

JournalArticle updateJournalArticle(JournalArticle journalArticle)
                                    throws SystemException
Updates the journal article in the database. Also notifies the appropriate model listeners.

Parameters:
journalArticle - the journal article to update
Returns:
the journal article that was updated
Throws:
SystemException - if a system exception occurred

updateJournalArticle

JournalArticle updateJournalArticle(JournalArticle journalArticle,
                                    boolean merge)
                                    throws SystemException
Updates the journal article in the database. Also notifies the appropriate model listeners.

Parameters:
journalArticle - the journal article to update
merge - whether to merge the journal article with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the journal article that was updated
Throws:
SystemException - if a system exception occurred

addArticle

JournalArticle addArticle(long userId,
                          long groupId,
                          String articleId,
                          boolean autoArticleId,
                          double version,
                          String title,
                          String description,
                          String content,
                          String type,
                          String structureId,
                          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,
                          boolean indexable,
                          boolean smallImage,
                          String smallImageURL,
                          File smallFile,
                          Map<String,byte[]> images,
                          String articleURL,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addArticleResources

void addArticleResources(JournalArticle article,
                         boolean addCommunityPermissions,
                         boolean addGuestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addArticleResources

void addArticleResources(JournalArticle article,
                         String[] communityPermissions,
                         String[] guestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addArticleResources

void addArticleResources(long groupId,
                         String articleId,
                         boolean addCommunityPermissions,
                         boolean addGuestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addArticleResources

void addArticleResources(long groupId,
                         String articleId,
                         String[] communityPermissions,
                         String[] guestPermissions)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

checkArticleResourcePrimKey

JournalArticle checkArticleResourcePrimKey(long groupId,
                                           String articleId,
                                           double version)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

checkArticles

void checkArticles()
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

checkNewLine

void checkNewLine(long groupId,
                  String articleId,
                  double version)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

checkStructure

void checkStructure(long groupId,
                    String articleId,
                    double version)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

copyArticle

JournalArticle copyArticle(long userId,
                           long groupId,
                           String oldArticleId,
                           String newArticleId,
                           boolean autoArticleId,
                           double version)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteArticle

void deleteArticle(JournalArticle article,
                   String articleURL,
                   ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteArticle

void deleteArticle(long groupId,
                   String articleId,
                   double version,
                   String articleURL,
                   ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteArticle

void deleteArticle(long groupId,
                   String articleId,
                   ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteArticles

void deleteArticles(long groupId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

expireArticle

JournalArticle expireArticle(long userId,
                             long groupId,
                             String articleId,
                             double version,
                             String articleURL,
                             ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getArticle(long id)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getArticle(long groupId,
                                                                   String articleId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getArticle(long groupId,
                                                                   String articleId,
                                                                   double version)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getArticleByUrlTitle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getArticleByUrlTitle(long groupId,
                                                                             String urlTitle)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getArticleContent

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getArticleContent(JournalArticle article,
                                                                  String templateId,
                                                                  String viewMode,
                                                                  String languageId,
                                                                  ThemeDisplay themeDisplay)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getArticleContent

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getArticleContent(long groupId,
                                                                  String articleId,
                                                                  double version,
                                                                  String viewMode,
                                                                  String templateId,
                                                                  String languageId,
                                                                  ThemeDisplay themeDisplay)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getArticleContent

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getArticleContent(long groupId,
                                                                  String articleId,
                                                                  double version,
                                                                  String viewMode,
                                                                  String languageId,
                                                                  ThemeDisplay themeDisplay)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getArticleContent

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getArticleContent(long groupId,
                                                                  String articleId,
                                                                  String viewMode,
                                                                  String templateId,
                                                                  String languageId,
                                                                  ThemeDisplay themeDisplay)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getArticleContent

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getArticleContent(long groupId,
                                                                  String articleId,
                                                                  String viewMode,
                                                                  String languageId,
                                                                  ThemeDisplay themeDisplay)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(JournalArticle article,
                                                                                 String templateId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 int page,
                                                                                 String xmlRequest,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(long groupId,
                                                                                 String articleId,
                                                                                 double version,
                                                                                 String templateId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 int page,
                                                                                 String xmlRequest,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(long groupId,
                                                                                 String articleId,
                                                                                 double version,
                                                                                 String templateId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(long groupId,
                                                                                 String articleId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 int page,
                                                                                 String xmlRequest,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(long groupId,
                                                                                 String articleId,
                                                                                 String templateId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 int page,
                                                                                 String xmlRequest,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(long groupId,
                                                                                 String articleId,
                                                                                 String templateId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticleDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticleDisplay getArticleDisplay(long groupId,
                                                                                 String articleId,
                                                                                 String viewMode,
                                                                                 String languageId,
                                                                                 ThemeDisplay themeDisplay)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getArticles()
                                 throws SystemException
Throws:
SystemException

getArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getArticles(long groupId)
                                 throws SystemException
Throws:
SystemException

getArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getArticles(long groupId,
                                                                          int start,
                                                                          int end)
                                 throws SystemException
Throws:
SystemException

getArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getArticles(long groupId,
                                                                          int start,
                                                                          int end,
                                                                          OrderByComparator obc)
                                 throws SystemException
Throws:
SystemException

getArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getArticles(long groupId,
                                                                          String articleId)
                                 throws SystemException
Throws:
SystemException

getArticlesBySmallImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getArticlesBySmallImageId(long smallImageId)
                                               throws SystemException
Throws:
SystemException

getArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getArticlesCount(long groupId)
                     throws SystemException
Throws:
SystemException

getCompanyArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getCompanyArticles(long companyId,
                                                                                 int status,
                                                                                 int start,
                                                                                 int end)
                                        throws SystemException
Throws:
SystemException

getCompanyArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyArticlesCount(long companyId,
                                                                     int status)
                            throws SystemException
Throws:
SystemException

getDisplayArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getDisplayArticle(long groupId,
                                                                          String articleId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getLatestArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getLatestArticle(long resourcePrimKey)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getLatestArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getLatestArticle(long resourcePrimKey,
                                                                         int status)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getLatestArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getLatestArticle(long resourcePrimKey,
                                                                         int status,
                                                                         boolean preferApproved)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getLatestArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getLatestArticle(long groupId,
                                                                         String articleId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getLatestArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getLatestArticle(long groupId,
                                                                         String articleId,
                                                                         int status)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getLatestArticleByUrlTitle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalArticle getLatestArticleByUrlTitle(long groupId,
                                                                                   String urlTitle,
                                                                                   int status)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getLatestVersion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
double getLatestVersion(long groupId,
                                                                 String articleId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getLatestVersion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
double getLatestVersion(long groupId,
                                                                 String articleId,
                                                                 int status)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getStructureArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getStructureArticles(long groupId,
                                                                                   String structureId)
                                          throws SystemException
Throws:
SystemException

getStructureArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getStructureArticles(long groupId,
                                                                                   String structureId,
                                                                                   int start,
                                                                                   int end,
                                                                                   OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getStructureArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getStructureArticlesCount(long groupId,
                                                                       String structureId)
                              throws SystemException
Throws:
SystemException

getTemplateArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getTemplateArticles(long groupId,
                                                                                  String templateId)
                                         throws SystemException
Throws:
SystemException

getTemplateArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> getTemplateArticles(long groupId,
                                                                                  String templateId,
                                                                                  int start,
                                                                                  int end,
                                                                                  OrderByComparator obc)
                                         throws SystemException
Throws:
SystemException

getTemplateArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getTemplateArticlesCount(long groupId,
                                                                      String templateId)
                             throws SystemException
Throws:
SystemException

hasArticle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasArticle(long groupId,
                                                            String articleId)
                   throws SystemException
Throws:
SystemException

isLatestVersion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean isLatestVersion(long groupId,
                                                                 String articleId,
                                                                 double version)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

isLatestVersion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean isLatestVersion(long groupId,
                                                                 String articleId,
                                                                 double version,
                                                                 int status)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

removeArticleLocale

JournalArticle removeArticleLocale(long groupId,
                                   String articleId,
                                   double version,
                                   String languageId)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> search(long companyId,
                                                                     long groupId,
                                                                     String keywords,
                                                                     Double version,
                                                                     String type,
                                                                     String structureId,
                                                                     String templateId,
                                                                     Date displayDateGT,
                                                                     Date displayDateLT,
                                                                     int status,
                                                                     Date reviewDate,
                                                                     int start,
                                                                     int end,
                                                                     OrderByComparator obc)
                            throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> search(long companyId,
                                                                     long groupId,
                                                                     String articleId,
                                                                     Double version,
                                                                     String title,
                                                                     String description,
                                                                     String content,
                                                                     String type,
                                                                     String structureId,
                                                                     String templateId,
                                                                     Date displayDateGT,
                                                                     Date displayDateLT,
                                                                     int status,
                                                                     Date reviewDate,
                                                                     boolean andOperator,
                                                                     int start,
                                                                     int end,
                                                                     OrderByComparator obc)
                            throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalArticle> search(long companyId,
                                                                     long groupId,
                                                                     String articleId,
                                                                     Double version,
                                                                     String title,
                                                                     String description,
                                                                     String content,
                                                                     String type,
                                                                     String[] structureIds,
                                                                     String[] templateIds,
                                                                     Date displayDateGT,
                                                                     Date displayDateLT,
                                                                     int status,
                                                                     Date reviewDate,
                                                                     boolean andOperator,
                                                                     int start,
                                                                     int end,
                                                                     OrderByComparator obc)
                            throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         long groupId,
                                                         String keywords,
                                                         Double version,
                                                         String type,
                                                         String structureId,
                                                         String templateId,
                                                         Date displayDateGT,
                                                         Date displayDateLT,
                                                         int status,
                                                         Date reviewDate)
                throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         long groupId,
                                                         String articleId,
                                                         Double version,
                                                         String title,
                                                         String description,
                                                         String content,
                                                         String type,
                                                         String structureId,
                                                         String templateId,
                                                         Date displayDateGT,
                                                         Date displayDateLT,
                                                         int status,
                                                         Date reviewDate,
                                                         boolean andOperator)
                throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         long groupId,
                                                         String articleId,
                                                         Double version,
                                                         String title,
                                                         String description,
                                                         String content,
                                                         String type,
                                                         String[] structureIds,
                                                         String[] templateIds,
                                                         Date displayDateGT,
                                                         Date displayDateLT,
                                                         int status,
                                                         Date reviewDate,
                                                         boolean andOperator)
                throws SystemException
Throws:
SystemException

updateArticle

JournalArticle updateArticle(long userId,
                             long groupId,
                             String articleId,
                             double version,
                             String content)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateArticle

JournalArticle updateArticle(long userId,
                             long groupId,
                             String articleId,
                             double version,
                             String title,
                             String description,
                             String content,
                             String type,
                             String structureId,
                             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,
                             boolean indexable,
                             boolean smallImage,
                             String smallImageURL,
                             File smallFile,
                             Map<String,byte[]> images,
                             String articleURL,
                             ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateAsset

void updateAsset(long userId,
                 JournalArticle article,
                 long[] assetCategoryIds,
                 String[] assetTagNames)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateContent

JournalArticle updateContent(long groupId,
                             String articleId,
                             double version,
                             String content)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateStatus

JournalArticle updateStatus(long userId,
                            JournalArticle article,
                            int status,
                            String articleURL,
                            ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateStatus

JournalArticle updateStatus(long userId,
                            long classPK,
                            int status,
                            ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateStatus

JournalArticle updateStatus(long userId,
                            long groupId,
                            String articleId,
                            double version,
                            int status,
                            String articleURL,
                            ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5