Liferay 6.1.2-ce-ga3

com.liferay.portlet.journal.service
Class JournalArticleLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil

public class JournalArticleLocalServiceUtil
extends Object

The utility for the journal article local service. This utility wraps JournalArticleLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

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:
JournalArticleLocalService, JournalArticleLocalServiceBaseImpl, JournalArticleLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
JournalArticleLocalServiceUtil()
           
 
Method Summary
static JournalArticle addArticle(long userId, long groupId, long classNameId, long classPK, String articleId, boolean autoArticleId, double version, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String content, String type, String structureId, String templateId, String layoutUuid, 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 smallImageFile, Map<String,byte[]> images, String articleURL, ServiceContext serviceContext)
           
static void addArticleResources(JournalArticle article, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addArticleResources(JournalArticle article, String[] groupPermissions, String[] guestPermissions)
           
static void addArticleResources(long groupId, String articleId, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addArticleResources(long groupId, String articleId, String[] groupPermissions, String[] guestPermissions)
           
static JournalArticle addJournalArticle(JournalArticle journalArticle)
          Adds the journal article to the database.
static JournalArticle checkArticleResourcePrimKey(long groupId, String articleId, double version)
           
static void checkArticles()
           
static void checkNewLine(long groupId, String articleId, double version)
           
static void checkStructure(long groupId, String articleId, double version)
           
static JournalArticle copyArticle(long userId, long groupId, String oldArticleId, String newArticleId, boolean autoArticleId, double version)
           
static JournalArticle createJournalArticle(long id)
          Creates a new journal article with the primary key.
static void deleteArticle(JournalArticle article, String articleURL, ServiceContext serviceContext)
           
static void deleteArticle(long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext)
           
static void deleteArticle(long groupId, String articleId, ServiceContext serviceContext)
           
static void deleteArticles(long groupId)
           
static JournalArticle deleteJournalArticle(JournalArticle journalArticle)
          Deletes the journal article from the database.
static JournalArticle deleteJournalArticle(long id)
          Deletes the journal article with the primary key from the database.
static void deleteLayoutArticleReferences(long groupId, String layoutUuid)
           
static DynamicQuery dynamicQuery()
           
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static 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.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
static JournalArticle expireArticle(long userId, long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext)
           
static void expireArticle(long userId, long groupId, String articleId, String articleURL, ServiceContext serviceContext)
           
static JournalArticle fetchJournalArticle(long id)
           
static JournalArticle getArticle(long id)
           
static JournalArticle getArticle(long groupId, String articleId)
           
static JournalArticle getArticle(long groupId, String articleId, double version)
           
static JournalArticle getArticle(long groupId, String className, long classPK)
           
static JournalArticle getArticleByUrlTitle(long groupId, String urlTitle)
           
static String getArticleContent(JournalArticle article, String templateId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
static String getArticleContent(long groupId, String articleId, double version, String viewMode, String templateId, String languageId, ThemeDisplay themeDisplay)
           
static String getArticleContent(long groupId, String articleId, double version, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
static String getArticleContent(long groupId, String articleId, String viewMode, String templateId, String languageId, ThemeDisplay themeDisplay)
           
static String getArticleContent(long groupId, String articleId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(JournalArticle article, String templateId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(long groupId, String articleId, double version, String templateId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(long groupId, String articleId, double version, String templateId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String templateId, String viewMode, String languageId, int page, String xmlRequest, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String templateId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
static JournalArticleDisplay getArticleDisplay(long groupId, String articleId, String viewMode, String languageId, ThemeDisplay themeDisplay)
           
static List<JournalArticle> getArticles()
           
static List<JournalArticle> getArticles(long groupId)
           
static List<JournalArticle> getArticles(long groupId, int start, int end)
           
static List<JournalArticle> getArticles(long groupId, int start, int end, OrderByComparator obc)
           
static List<JournalArticle> getArticles(long groupId, String articleId)
           
static List<JournalArticle> getArticlesBySmallImageId(long smallImageId)
           
static int getArticlesCount(long groupId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<JournalArticle> getCompanyArticles(long companyId, double version, int status, int start, int end)
           
static List<JournalArticle> getCompanyArticles(long companyId, int status, int start, int end)
           
static int getCompanyArticlesCount(long companyId, double version, int status, int start, int end)
           
static int getCompanyArticlesCount(long companyId, int status)
           
static JournalArticle getDisplayArticle(long groupId, String articleId)
           
static JournalArticle getDisplayArticleByUrlTitle(long groupId, String urlTitle)
           
static JournalArticle getJournalArticle(long id)
          Returns the journal article with the primary key.
static JournalArticle getJournalArticleByUuidAndGroupId(String uuid, long groupId)
          Returns the journal article with the UUID in the group.
static List<JournalArticle> getJournalArticles(int start, int end)
          Returns a range of all the journal articles.
static int getJournalArticlesCount()
          Returns the number of journal articles.
static JournalArticle getLatestArticle(long resourcePrimKey)
           
static JournalArticle getLatestArticle(long resourcePrimKey, int status)
           
static JournalArticle getLatestArticle(long resourcePrimKey, int status, boolean preferApproved)
           
static JournalArticle getLatestArticle(long groupId, String articleId)
           
static JournalArticle getLatestArticle(long groupId, String articleId, int status)
           
static JournalArticle getLatestArticle(long groupId, String className, long classPK)
           
static JournalArticle getLatestArticleByUrlTitle(long groupId, String urlTitle, int status)
           
static double getLatestVersion(long groupId, String articleId)
           
static double getLatestVersion(long groupId, String articleId, int status)
           
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static JournalArticleLocalService getService()
           
static List<JournalArticle> getStructureArticles(long groupId, String structureId)
           
static List<JournalArticle> getStructureArticles(long groupId, String structureId, int start, int end, OrderByComparator obc)
           
static int getStructureArticlesCount(long groupId, String structureId)
           
static List<JournalArticle> getTemplateArticles(long groupId, String templateId)
           
static List<JournalArticle> getTemplateArticles(long groupId, String templateId, int start, int end, OrderByComparator obc)
           
static int getTemplateArticlesCount(long groupId, String templateId)
           
static boolean hasArticle(long groupId, String articleId)
           
static boolean isLatestVersion(long groupId, String articleId, double version)
           
static boolean isLatestVersion(long groupId, String articleId, double version, int status)
           
static JournalArticle removeArticleLocale(long groupId, String articleId, double version, String languageId)
           
static List<JournalArticle> search(long companyId, long groupId, long classNameId, String keywords, Double version, String type, String structureId, String templateId, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, int start, int end, OrderByComparator obc)
           
static List<JournalArticle> search(long companyId, long groupId, long classNameId, 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)
           
static List<JournalArticle> search(long companyId, long groupId, long classNameId, 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)
           
static Hits search(long companyId, long groupId, long classNameId, String structureId, String templateId, String keywords, LinkedHashMap<String,Object> params, int start, int end, Sort sort)
           
static Hits search(long companyId, long groupId, long classNameId, String articleId, String title, String description, String content, String type, String status, String structureId, String templateId, LinkedHashMap<String,Object> params, boolean andSearch, int start, int end, Sort sort)
           
static int searchCount(long companyId, long groupId, long classNameId, String keywords, Double version, String type, String structureId, String templateId, Date displayDateGT, Date displayDateLT, int status, Date reviewDate)
           
static int searchCount(long companyId, long groupId, long classNameId, 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)
           
static int searchCount(long companyId, long groupId, long classNameId, 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)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(JournalArticleLocalService service)
          Deprecated.  
static void subscribe(long userId, long groupId)
           
static void unsubscribe(long userId, long groupId)
           
static JournalArticle updateArticle(long userId, long groupId, String articleId, double version, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String content, String layoutUuid, ServiceContext serviceContext)
           
static JournalArticle updateArticle(long userId, long groupId, String articleId, double version, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String content, String type, String structureId, String templateId, String layoutUuid, 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 smallImageFile, Map<String,byte[]> images, String articleURL, ServiceContext serviceContext)
           
static JournalArticle updateArticle(long userId, long groupId, String articleId, double version, String content, ServiceContext serviceContext)
           
static JournalArticle updateArticleTranslation(long groupId, String articleId, double version, Locale locale, String title, String description, String content, Map<String,byte[]> images)
          Deprecated. updateArticleTranslation(long, String, double, Locale, String, String, String, Map, ServiceContext)
static JournalArticle updateArticleTranslation(long groupId, String articleId, double version, Locale locale, String title, String description, String content, Map<String,byte[]> images, ServiceContext serviceContext)
           
static void updateAsset(long userId, JournalArticle article, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
static JournalArticle updateContent(long groupId, String articleId, double version, String content)
           
static JournalArticle updateJournalArticle(JournalArticle journalArticle)
          Updates the journal article in the database or adds it if it does not yet exist.
static JournalArticle updateJournalArticle(JournalArticle journalArticle, boolean merge)
          Updates the journal article in the database or adds it if it does not yet exist.
static JournalArticle updateStatus(long userId, JournalArticle article, int status, String articleURL, ServiceContext serviceContext)
           
static JournalArticle updateStatus(long userId, long classPK, int status, ServiceContext serviceContext)
           
static JournalArticle updateStatus(long userId, long groupId, String articleId, double version, int status, String articleURL, ServiceContext serviceContext)
           
static void updateTemplateId(long groupId, long classNameId, String oldTemplateId, String newTemplateId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalArticleLocalServiceUtil

public JournalArticleLocalServiceUtil()
Method Detail

addJournalArticle

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

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

createJournalArticle

public static 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

public static JournalArticle 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
Returns:
the journal article that was removed
Throws:
PortalException - if a journal article with the primary key could not be found
SystemException - if a system exception occurred

deleteJournalArticle

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

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

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

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

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

dynamicQuery

public static 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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static 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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

fetchJournalArticle

public static JournalArticle fetchJournalArticle(long id)
                                          throws SystemException
Throws:
SystemException

getJournalArticle

public static JournalArticle getJournalArticle(long id)
                                        throws PortalException,
                                               SystemException
Returns the journal article with the primary key.

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

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getJournalArticleByUuidAndGroupId

public static JournalArticle getJournalArticleByUuidAndGroupId(String uuid,
                                                               long groupId)
                                                        throws PortalException,
                                                               SystemException
Returns the journal article with the UUID in the group.

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

getJournalArticles

public static List<JournalArticle> getJournalArticles(int start,
                                                      int end)
                                               throws SystemException
Returns 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
end - the upper bound of the range of journal articles (not inclusive)
Returns:
the range of journal articles
Throws:
SystemException - if a system exception occurred

getJournalArticlesCount

public static int getJournalArticlesCount()
                                   throws SystemException
Returns the number of journal articles.

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

updateJournalArticle

public static JournalArticle updateJournalArticle(JournalArticle journalArticle)
                                           throws SystemException
Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

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

updateJournalArticle

public static JournalArticle updateJournalArticle(JournalArticle journalArticle,
                                                  boolean merge)
                                           throws SystemException
Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
journalArticle - the journal article
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

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addArticle

public static JournalArticle addArticle(long userId,
                                        long groupId,
                                        long classNameId,
                                        long classPK,
                                        String articleId,
                                        boolean autoArticleId,
                                        double version,
                                        Map<Locale,String> titleMap,
                                        Map<Locale,String> descriptionMap,
                                        String content,
                                        String type,
                                        String structureId,
                                        String templateId,
                                        String layoutUuid,
                                        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 smallImageFile,
                                        Map<String,byte[]> images,
                                        String articleURL,
                                        ServiceContext serviceContext)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addArticleResources

public static void addArticleResources(JournalArticle article,
                                       boolean addGroupPermissions,
                                       boolean addGuestPermissions)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

addArticleResources

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

addArticleResources

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

addArticleResources

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

checkArticleResourcePrimKey

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

checkArticles

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

checkNewLine

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

checkStructure

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

copyArticle

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

deleteArticle

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

deleteArticle

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

deleteArticle

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

deleteArticles

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

deleteLayoutArticleReferences

public static void deleteLayoutArticleReferences(long groupId,
                                                 String layoutUuid)
                                          throws SystemException
Throws:
SystemException

expireArticle

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

expireArticle

public static void expireArticle(long userId,
                                 long groupId,
                                 String articleId,
                                 String articleURL,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getArticle

public static JournalArticle getArticle(long id)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getArticle

public static JournalArticle getArticle(long groupId,
                                        String articleId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getArticle

public static JournalArticle getArticle(long groupId,
                                        String articleId,
                                        double version)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getArticle

public static JournalArticle getArticle(long groupId,
                                        String className,
                                        long classPK)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getArticleByUrlTitle

public static JournalArticle getArticleByUrlTitle(long groupId,
                                                  String urlTitle)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getArticleContent

public static String getArticleContent(JournalArticle article,
                                       String templateId,
                                       String viewMode,
                                       String languageId,
                                       ThemeDisplay themeDisplay)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getArticleContent

public static String getArticleContent(long groupId,
                                       String articleId,
                                       double version,
                                       String viewMode,
                                       String templateId,
                                       String languageId,
                                       ThemeDisplay themeDisplay)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getArticleContent

public static String getArticleContent(long groupId,
                                       String articleId,
                                       double version,
                                       String viewMode,
                                       String languageId,
                                       ThemeDisplay themeDisplay)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getArticleContent

public static String getArticleContent(long groupId,
                                       String articleId,
                                       String viewMode,
                                       String templateId,
                                       String languageId,
                                       ThemeDisplay themeDisplay)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getArticleContent

public static String getArticleContent(long groupId,
                                       String articleId,
                                       String viewMode,
                                       String languageId,
                                       ThemeDisplay themeDisplay)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getArticleDisplay

public static JournalArticleDisplay getArticleDisplay(JournalArticle article,
                                                      String templateId,
                                                      String viewMode,
                                                      String languageId,
                                                      int page,
                                                      String xmlRequest,
                                                      ThemeDisplay themeDisplay)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getArticleDisplay

public static 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

public static JournalArticleDisplay getArticleDisplay(long groupId,
                                                      String articleId,
                                                      double version,
                                                      String templateId,
                                                      String viewMode,
                                                      String languageId,
                                                      ThemeDisplay themeDisplay)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getArticleDisplay

public static JournalArticleDisplay getArticleDisplay(long groupId,
                                                      String articleId,
                                                      String viewMode,
                                                      String languageId,
                                                      int page,
                                                      String xmlRequest,
                                                      ThemeDisplay themeDisplay)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getArticleDisplay

public static 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

public static JournalArticleDisplay getArticleDisplay(long groupId,
                                                      String articleId,
                                                      String templateId,
                                                      String viewMode,
                                                      String languageId,
                                                      ThemeDisplay themeDisplay)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getArticleDisplay

public static JournalArticleDisplay getArticleDisplay(long groupId,
                                                      String articleId,
                                                      String viewMode,
                                                      String languageId,
                                                      ThemeDisplay themeDisplay)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getArticles

public static List<JournalArticle> getArticles()
                                        throws SystemException
Throws:
SystemException

getArticles

public static List<JournalArticle> getArticles(long groupId)
                                        throws SystemException
Throws:
SystemException

getArticles

public static List<JournalArticle> getArticles(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Throws:
SystemException

getArticles

public static List<JournalArticle> getArticles(long groupId,
                                               int start,
                                               int end,
                                               OrderByComparator obc)
                                        throws SystemException
Throws:
SystemException

getArticles

public static List<JournalArticle> getArticles(long groupId,
                                               String articleId)
                                        throws SystemException
Throws:
SystemException

getArticlesBySmallImageId

public static List<JournalArticle> getArticlesBySmallImageId(long smallImageId)
                                                      throws SystemException
Throws:
SystemException

getArticlesCount

public static int getArticlesCount(long groupId)
                            throws SystemException
Throws:
SystemException

getCompanyArticles

public static List<JournalArticle> getCompanyArticles(long companyId,
                                                      double version,
                                                      int status,
                                                      int start,
                                                      int end)
                                               throws SystemException
Throws:
SystemException

getCompanyArticles

public static List<JournalArticle> getCompanyArticles(long companyId,
                                                      int status,
                                                      int start,
                                                      int end)
                                               throws SystemException
Throws:
SystemException

getCompanyArticlesCount

public static int getCompanyArticlesCount(long companyId,
                                          double version,
                                          int status,
                                          int start,
                                          int end)
                                   throws SystemException
Throws:
SystemException

getCompanyArticlesCount

public static int getCompanyArticlesCount(long companyId,
                                          int status)
                                   throws SystemException
Throws:
SystemException

getDisplayArticle

public static JournalArticle getDisplayArticle(long groupId,
                                               String articleId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getDisplayArticleByUrlTitle

public static JournalArticle getDisplayArticleByUrlTitle(long groupId,
                                                         String urlTitle)
                                                  throws PortalException,
                                                         SystemException
Throws:
PortalException
SystemException

getLatestArticle

public static JournalArticle getLatestArticle(long resourcePrimKey)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestArticle

public static JournalArticle getLatestArticle(long resourcePrimKey,
                                              int status)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestArticle

public static JournalArticle getLatestArticle(long resourcePrimKey,
                                              int status,
                                              boolean preferApproved)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestArticle

public static JournalArticle getLatestArticle(long groupId,
                                              String articleId)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestArticle

public static JournalArticle getLatestArticle(long groupId,
                                              String articleId,
                                              int status)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestArticle

public static JournalArticle getLatestArticle(long groupId,
                                              String className,
                                              long classPK)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestArticleByUrlTitle

public static JournalArticle getLatestArticleByUrlTitle(long groupId,
                                                        String urlTitle,
                                                        int status)
                                                 throws PortalException,
                                                        SystemException
Throws:
PortalException
SystemException

getLatestVersion

public static double getLatestVersion(long groupId,
                                      String articleId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getLatestVersion

public static double getLatestVersion(long groupId,
                                      String articleId,
                                      int status)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getStructureArticles

public static List<JournalArticle> getStructureArticles(long groupId,
                                                        String structureId)
                                                 throws SystemException
Throws:
SystemException

getStructureArticles

public static List<JournalArticle> getStructureArticles(long groupId,
                                                        String structureId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator obc)
                                                 throws SystemException
Throws:
SystemException

getStructureArticlesCount

public static int getStructureArticlesCount(long groupId,
                                            String structureId)
                                     throws SystemException
Throws:
SystemException

getTemplateArticles

public static List<JournalArticle> getTemplateArticles(long groupId,
                                                       String templateId)
                                                throws SystemException
Throws:
SystemException

getTemplateArticles

public static List<JournalArticle> getTemplateArticles(long groupId,
                                                       String templateId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator obc)
                                                throws SystemException
Throws:
SystemException

getTemplateArticlesCount

public static int getTemplateArticlesCount(long groupId,
                                           String templateId)
                                    throws SystemException
Throws:
SystemException

hasArticle

public static boolean hasArticle(long groupId,
                                 String articleId)
                          throws SystemException
Throws:
SystemException

isLatestVersion

public static boolean isLatestVersion(long groupId,
                                      String articleId,
                                      double version)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

isLatestVersion

public static boolean isLatestVersion(long groupId,
                                      String articleId,
                                      double version,
                                      int status)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

removeArticleLocale

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

search

public static List<JournalArticle> search(long companyId,
                                          long groupId,
                                          long classNameId,
                                          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

public static List<JournalArticle> search(long companyId,
                                          long groupId,
                                          long classNameId,
                                          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

public static List<JournalArticle> search(long companyId,
                                          long groupId,
                                          long classNameId,
                                          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

search

public static Hits search(long companyId,
                          long groupId,
                          long classNameId,
                          String structureId,
                          String templateId,
                          String keywords,
                          LinkedHashMap<String,Object> params,
                          int start,
                          int end,
                          Sort sort)
                   throws SystemException
Throws:
SystemException

search

public static Hits search(long companyId,
                          long groupId,
                          long classNameId,
                          String articleId,
                          String title,
                          String description,
                          String content,
                          String type,
                          String status,
                          String structureId,
                          String templateId,
                          LinkedHashMap<String,Object> params,
                          boolean andSearch,
                          int start,
                          int end,
                          Sort sort)
                   throws SystemException
Throws:
SystemException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              long classNameId,
                              String keywords,
                              Double version,
                              String type,
                              String structureId,
                              String templateId,
                              Date displayDateGT,
                              Date displayDateLT,
                              int status,
                              Date reviewDate)
                       throws SystemException
Throws:
SystemException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              long classNameId,
                              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

public static int searchCount(long companyId,
                              long groupId,
                              long classNameId,
                              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

subscribe

public static void subscribe(long userId,
                             long groupId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

unsubscribe

public static void unsubscribe(long userId,
                               long groupId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateArticle

public static JournalArticle updateArticle(long userId,
                                           long groupId,
                                           String articleId,
                                           double version,
                                           Map<Locale,String> titleMap,
                                           Map<Locale,String> descriptionMap,
                                           String content,
                                           String layoutUuid,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

updateArticle

public static JournalArticle updateArticle(long userId,
                                           long groupId,
                                           String articleId,
                                           double version,
                                           Map<Locale,String> titleMap,
                                           Map<Locale,String> descriptionMap,
                                           String content,
                                           String type,
                                           String structureId,
                                           String templateId,
                                           String layoutUuid,
                                           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 smallImageFile,
                                           Map<String,byte[]> images,
                                           String articleURL,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

updateArticle

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

updateArticleTranslation

public static JournalArticle updateArticleTranslation(long groupId,
                                                      String articleId,
                                                      double version,
                                                      Locale locale,
                                                      String title,
                                                      String description,
                                                      String content,
                                                      Map<String,byte[]> images)
                                               throws PortalException,
                                                      SystemException
Deprecated. updateArticleTranslation(long, String, double, Locale, String, String, String, Map, ServiceContext)

Throws:
PortalException
SystemException

updateArticleTranslation

public static JournalArticle updateArticleTranslation(long groupId,
                                                      String articleId,
                                                      double version,
                                                      Locale locale,
                                                      String title,
                                                      String description,
                                                      String content,
                                                      Map<String,byte[]> images,
                                                      ServiceContext serviceContext)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

updateAsset

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

updateContent

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

updateStatus

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

updateStatus

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

updateStatus

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

updateTemplateId

public static void updateTemplateId(long groupId,
                                    long classNameId,
                                    String oldTemplateId,
                                    String newTemplateId)
                             throws SystemException
Throws:
SystemException

getService

public static JournalArticleLocalService getService()

setService

public void setService(JournalArticleLocalService service)
Deprecated. 


Liferay 6.1.2-ce-ga3