public class JournalArticleServiceImpl
extends com.liferay.journal.service.base.JournalArticleServiceBaseImpl
JournalArticleLocalServiceImpl
assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagLocalService, assetTagPersistence, assetTagService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, counterLocalService, dlAppLocalService, dlAppService, expandoRowLocalService, expandoRowPersistence, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, journalArticleFinder, journalArticleImageLocalService, journalArticleImagePersistence, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, journalContentSearchLocalService, journalContentSearchPersistence, journalFolderFinder, journalFolderLocalService, journalFolderPersistence, journalFolderService, mailService, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userLocalService, userPersistence, userService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
Constructor and Description |
---|
JournalArticleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
JournalArticle |
addArticle(long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.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,
java.lang.String smallImageURL,
java.io.File smallFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a web content article with additional parameters.
|
JournalArticle |
addArticle(long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.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,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a web content article without any images.
|
JournalArticle |
copyArticle(long groupId,
java.lang.String oldArticleId,
java.lang.String newArticleId,
boolean autoArticleId,
double version)
Copies the web content article matching the group, article ID, and
version.
|
void |
deleteArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes the web content article and its resources matching the group,
article ID, and version, optionally sending email notifying denial of the
web content article if it had not yet been approved.
|
void |
deleteArticle(long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes all web content articles and their resources matching the group
and article ID, optionally sending email notifying denial of article if
it had not yet been approved.
|
JournalArticle |
expireArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Expires the web content article matching the group, article ID, and
version.
|
void |
expireArticle(long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Expires the web content article matching the group and article ID,
expiring all of its versions if the
journal.article.expire.all.versions portal property is
true , otherwise expiring only its latest approved version. |
JournalArticle |
fetchArticle(long groupId,
java.lang.String articleId) |
JournalArticle |
getArticle(long id)
Returns the web content article with the ID.
|
JournalArticle |
getArticle(long groupId,
java.lang.String articleId)
Returns the latest approved web content article, or the latest unapproved
article if none are approved.
|
JournalArticle |
getArticle(long groupId,
java.lang.String articleId,
double version)
Returns the web content article matching the group, article ID, and
version.
|
JournalArticle |
getArticle(long groupId,
java.lang.String className,
long classPK)
Returns the web content article matching the group, class name, and class
PK.
|
JournalArticle |
getArticleByUrlTitle(long groupId,
java.lang.String urlTitle)
Returns the latest web content article that is approved, or the latest
unapproved article if none are approved.
|
java.lang.String |
getArticleContent(long groupId,
java.lang.String articleId,
double version,
java.lang.String languageId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns the web content from the web content article matching the group,
article ID, and version.
|
java.lang.String |
getArticleContent(long groupId,
java.lang.String articleId,
double version,
java.lang.String languageId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getArticleContent(long, String, double, String,
PortletRequestModel, ThemeDisplay) |
java.lang.String |
getArticleContent(long groupId,
java.lang.String articleId,
java.lang.String languageId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns the latest web content from the web content article matching the
group and article ID.
|
java.lang.String |
getArticleContent(long groupId,
java.lang.String articleId,
java.lang.String languageId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getArticleContent(long, String, String, PortletRequestModel,
ThemeDisplay) |
java.util.List<JournalArticle> |
getArticles(long groupId,
long folderId)
Returns all the web content articles matching the group and folder.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
group and folder.
|
java.util.List<JournalArticle> |
getArticlesByArticleId(long groupId,
java.lang.String articleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
group and article ID.
|
java.util.List<JournalArticle> |
getArticlesByLayoutUuid(long groupId,
java.lang.String layoutUuid)
Returns all the web content articles matching the group and layout UUID.
|
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
group, class name ID, DDM structure key, and workflow status.
|
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
group, default class name ID, and DDM structure key.
|
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
group, default class name ID, and DDM structure key.
|
int |
getArticlesCount(long groupId,
long folderId)
Returns the number of web content articles matching the group and folder.
|
int |
getArticlesCount(long groupId,
long folderId,
int status)
Returns the number of web content articles matching the group, folder,
and status.
|
int |
getArticlesCountByArticleId(long groupId,
java.lang.String articleId)
Returns the number of web content articles matching the group and article
ID.
|
int |
getArticlesCountByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
int status)
Returns the number of web content articles matching the group, class name
ID, DDM structure key, and workflow status.
|
int |
getArticlesCountByStructureId(long groupId,
java.lang.String ddmStructureKey)
Returns the number of web content articles matching the group, default
class name ID, and DDM structure key.
|
int |
getArticlesCountByStructureId(long groupId,
java.lang.String ddmStructureKey,
int status)
Returns the number of web content articles matching the group, default
class name ID, and DDM structure key.
|
JournalArticle |
getDisplayArticleByUrlTitle(long groupId,
java.lang.String urlTitle)
Returns the web content article matching the URL title that is currently
displayed or next to be displayed if no article is currently displayed.
|
int |
getFoldersAndArticlesCount(long groupId,
java.util.List<java.lang.Long> folderIds)
Returns the number of folders containing web content articles belonging
to the group.
|
java.util.List<JournalArticle> |
getGroupArticles(long groupId,
long userId,
long rootFolderId,
int status,
boolean includeOwner,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
group, user, the root folder or any of its subfolders.
|
java.util.List<JournalArticle> |
getGroupArticles(long groupId,
long userId,
long rootFolderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
group, user, the root folder or any of its subfolders.
|
java.util.List<JournalArticle> |
getGroupArticles(long groupId,
long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
group, user, the root folder or any of its subfolders.
|
int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId)
Returns the number of web content articles matching the group, user, and
the root folder or any of its subfolders.
|
int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status)
Returns the number of web content articles matching the group, user, and
the root folder or any of its subfolders.
|
int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status,
boolean includeOwner)
Returns the number of web content articles matching the group, user, the
root folder or any of its subfolders.
|
JournalArticle |
getLatestArticle(long resourcePrimKey)
Returns the latest web content article matching the resource primary key,
preferring articles with approved workflow status.
|
JournalArticle |
getLatestArticle(long groupId,
java.lang.String articleId,
int status)
Returns the latest web content article matching the group, article ID,
and workflow status.
|
JournalArticle |
getLatestArticle(long groupId,
java.lang.String className,
long classPK)
Returns the latest web content article matching the group, class name ID,
and class PK.
|
java.util.List<JournalArticle> |
getLayoutArticles(long groupId) |
void |
moveArticle(long groupId,
java.lang.String articleId,
long newFolderId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
moveArticle(long, String, long, ServiceContext) |
void |
moveArticle(long groupId,
java.lang.String articleId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves all versions of the web content article matching the group and
article ID to the folder.
|
JournalArticle |
moveArticleFromTrash(long groupId,
long resourcePrimKey,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to the folder.
|
JournalArticle |
moveArticleFromTrash(long groupId,
java.lang.String articleId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to the folder.
|
JournalArticle |
moveArticleToTrash(long groupId,
java.lang.String articleId)
Moves the latest version of the web content article matching the group
and article ID to the recycle bin.
|
void |
removeArticleLocale(long companyId,
java.lang.String languageId)
Removes the web content of all the company's web content articles
matching the language.
|
JournalArticle |
removeArticleLocale(long groupId,
java.lang.String articleId,
double version,
java.lang.String languageId)
Removes the web content of the web content article matching the group,
article ID, and version, and language.
|
void |
restoreArticleFromTrash(long resourcePrimKey)
Restores the web content article associated with the resource primary key
from the Recycle Bin.
|
void |
restoreArticleFromTrash(long groupId,
java.lang.String articleId)
Restores the web content article from the Recycle Bin.
|
com.liferay.portal.kernel.search.Hits |
search(long groupId,
long creatorUserId,
int status,
int start,
int end)
Returns a range of all the web content articles matching the group,
creator, creator, and workflow status using the indexer.
|
java.util.List<JournalArticle> |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
parameters, including a keywords parameter for matching with the
article's ID, title, description, and content, a DDM structure key
parameter, and a DDM template key parameter.
|
java.util.List<JournalArticle> |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String[] ddmStructureKeys,
java.lang.String[] ddmTemplateKeys,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
parameters, including keyword parameters for article ID, title,
description, and content, a DDM structure keys (plural) parameter, a DDM
template keys (plural) parameter, and an AND operator switch.
|
java.util.List<JournalArticle> |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
Returns an ordered range of all the web content articles matching the
parameters, including keyword parameters for article ID, title,
description, and content, a DDM structure key parameter, a DDM template
key parameter, and an AND operator switch.
|
int |
searchCount(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate)
Returns the number of web content articles matching the parameters,
including a keywords parameter for matching with the article's ID, title,
description, and content, a DDM structure key parameter, and a DDM
template key parameter.
|
int |
searchCount(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String[] ddmStructureKeys,
java.lang.String[] ddmTemplateKeys,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
boolean andOperator)
Returns the number of web content articles matching the parameters,
including keyword parameters for article ID, title, description, and
content, a DDM structure keys (plural) parameter, a DDM template keys
(plural) parameter, and an AND operator switch.
|
int |
searchCount(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
boolean andOperator)
Returns the number of web content articles matching the parameters,
including keyword parameters for article ID, title, description, and
content, a DDM structure key parameter, a DDM template key parameter, and
an AND operator switch.
|
void |
subscribeStructure(long groupId,
long userId,
long ddmStructureId)
Subscribes the user to changes in elements that belong to the web content
article's DDM structure.
|
void |
unsubscribeStructure(long groupId,
long userId,
long ddmStructureId)
Unsubscribes the user from changes in elements that belong to the web
content article's DDM structure.
|
JournalArticle |
updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String layoutUuid,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article matching the version, replacing its
folder, title, description, content, and layout UUID.
|
JournalArticle |
updateArticle(long groupId,
long folderId,
java.lang.String articleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.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,
java.lang.String smallImageURL,
java.io.File smallFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article with additional parameters.
|
JournalArticle |
updateArticle(long groupId,
long folderId,
java.lang.String articleId,
double version,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article matching the version, replacing its
folder and content.
|
JournalArticle |
updateArticleTranslation(long groupId,
java.lang.String articleId,
double version,
java.util.Locale locale,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.util.Map<java.lang.String,byte[]> images,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the translation of the web content article.
|
JournalArticle |
updateContent(long groupId,
java.lang.String articleId,
double version,
java.lang.String content)
Updates the web content article matching the group, article ID, and
version, replacing its content.
|
JournalArticle |
updateStatus(long groupId,
java.lang.String articleId,
double version,
int status,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the workflow status of the web content article matching the
group, article ID, and version.
|
afterPropertiesSet, destroy, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getDLAppLocalService, getDLAppService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getJournalArticleFinder, getJournalArticleImageLocalService, getJournalArticleImagePersistence, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticleService, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getJournalFolderFinder, getJournalFolderLocalService, getJournalFolderPersistence, getJournalFolderService, getMailService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserLocalService, getUserPersistence, getUserService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setDLAppLocalService, setDLAppService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setJournalArticleFinder, setJournalArticleImageLocalService, setJournalArticleImagePersistence, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setJournalFolderFinder, setJournalFolderLocalService, setJournalFolderPersistence, setJournalFolderService, setMailService, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserLocalService, setUserPersistence, setUserService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
public JournalArticle addArticle(long groupId, long folderId, long classNameId, long classPK, java.lang.String articleId, boolean autoArticleId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.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, java.lang.String smallImageURL, java.io.File smallFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderclassNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwiseclassPK
- the primary key of the DDM structure, if the primary key
of the DDMStructure class is given as the
classNameId
parameter, the primary key of the class
associated with the web content article, or 0
otherwisearticleId
- the primary key of the web content articleautoArticleId
- whether to auto generate the web content article IDtitleMap
- the web content article's locales and localized titlesdescriptionMap
- the web content article's locales and localized
descriptionscontent
- the HTML content wrapped in XML. For more information,
see the content example in the updateArticle(long, long,
String, double, String, ServiceContext)
description.ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatelayoutUuid
- the unique string identifying the web content
article's display pagedisplayDateMonth
- the month the web content article is set to
displaydisplayDateDay
- the calendar day the web content article is set to
displaydisplayDateYear
- the year the web content article is set to
displaydisplayDateHour
- the hour the web content article is set to
displaydisplayDateMinute
- the minute the web content article is set to
displayexpirationDateMonth
- the month the web content article is set to
expireexpirationDateDay
- the calendar day the web content article is set
to expireexpirationDateYear
- the year the web content article is set to
expireexpirationDateHour
- the hour the web content article is set to
expireexpirationDateMinute
- the minute the web content article is set to
expireneverExpire
- whether the web content article is not set to auto
expirereviewDateMonth
- the month the web content article is set for
reviewreviewDateDay
- the calendar day the web content article is set for
reviewreviewDateYear
- the year the web content article is set for reviewreviewDateHour
- the hour the web content article is set for reviewreviewDateMinute
- the minute the web content article is set for
reviewneverReview
- whether the web content article is not set for reviewindexable
- whether the web content article is searchablesmallImage
- whether the web content article has a small imagesmallImageURL
- the web content article's small image URLsmallFile
- the web content article's small image fileimages
- the web content's imagesarticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, expando bridge
attributes, guest permissions, group permissions, asset category
IDs, asset tag names, asset link entry IDs, asset priority, URL
title, and workflow actions for the web content article. Can also
set whether to add the default guest and group permissions.com.liferay.portal.kernel.exception.PortalException
public JournalArticle addArticle(long groupId, long folderId, long classNameId, long classPK, java.lang.String articleId, boolean autoArticleId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.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, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderclassNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwiseclassPK
- the primary key of the DDM structure, if the primary key
of the DDMStructure class is given as the
classNameId
parameter, the primary key of the class
associated with the web content article, or 0
otherwisearticleId
- the primary key of the web content articleautoArticleId
- whether to auto generate the web content article IDtitleMap
- the web content article's locales and localized titlesdescriptionMap
- the web content article's locales and localized
descriptionscontent
- the HTML content wrapped in XMLddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatelayoutUuid
- the unique string identifying the web content
article's display pagedisplayDateMonth
- the month the web content article is set to
displaydisplayDateDay
- the calendar day the web content article is set to
displaydisplayDateYear
- the year the web content article is set to
displaydisplayDateHour
- the hour the web content article is set to
displaydisplayDateMinute
- the minute the web content article is set to
displayexpirationDateMonth
- the month the web content article is set to
expireexpirationDateDay
- the calendar day the web content article is set
to expireexpirationDateYear
- the year the web content article is set to
expireexpirationDateHour
- the hour the web content article is set to
expireexpirationDateMinute
- the minute the web content article is set to
expireneverExpire
- whether the web content article is not set to auto
expirereviewDateMonth
- the month the web content article is set for
reviewreviewDateDay
- the calendar day the web content article is set for
reviewreviewDateYear
- the year the web content article is set for reviewreviewDateHour
- the hour the web content article is set for reviewreviewDateMinute
- the minute the web content article is set for
reviewneverReview
- whether the web content article is not set for reviewindexable
- whether the web content article is searchablearticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, expando bridge
attributes, guest permissions, group permissions, asset category
IDs, asset tag names, asset link entry IDs, asset priority, URL
title, and workflow actions for the web content article. Can also
set whether to add the default guest and group permissions.com.liferay.portal.kernel.exception.PortalException
public JournalArticle copyArticle(long groupId, java.lang.String oldArticleId, java.lang.String newArticleId, boolean autoArticleId, double version) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupoldArticleId
- the primary key of the old web content articlenewArticleId
- the primary key of the new web content articleautoArticleId
- whether to auto-generate the web content article IDversion
- the web content article's versioncom.liferay.portal.kernel.exception.PortalException
public void deleteArticle(long groupId, java.lang.String articleId, double version, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionarticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
portlet preferences that include email information to notify
recipients of the unapproved web content article's denial.com.liferay.portal.kernel.exception.PortalException
public void deleteArticle(long groupId, java.lang.String articleId, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlearticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
portlet preferences that include email information to notify
recipients of the unapproved web content article's denial.com.liferay.portal.kernel.exception.PortalException
public JournalArticle expireArticle(long groupId, java.lang.String articleId, double version, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionarticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
modification date, status date, portlet preferences, and can set
whether to add the default command update for the web content
article. With respect to social activities, by setting the
service context's command to Constants.UPDATE
, the invocation
is considered a web content update activity; otherwise it is
considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public void expireArticle(long groupId, java.lang.String articleId, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
journal.article.expire.all.versions
portal property is
true
, otherwise expiring only its latest approved version.groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlearticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
modification date, status date, portlet preferences, and can set
whether to add the default command update for the web content
article. With respect to social activities, by setting the service
context's command to Constants.UPDATE
, the invocation
is considered a web content update activity; otherwise it is
considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle fetchArticle(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public JournalArticle getArticle(long id) throws com.liferay.portal.kernel.exception.PortalException
id
- the primary key of the web content articlecom.liferay.portal.kernel.exception.PortalException
public JournalArticle getArticle(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlecom.liferay.portal.kernel.exception.PortalException
public JournalArticle getArticle(long groupId, java.lang.String articleId, double version) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versioncom.liferay.portal.kernel.exception.PortalException
public JournalArticle getArticle(long groupId, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupclassName
- the DDMStructure class name if the web content article
is related to a DDM structure, the primary key of the class name
associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwiseclassPK
- the primary key of the DDM structure, if the DDMStructure
class name is given as the className
parameter, the
primary key of the class associated with the web content article,
or 0
otherwisecom.liferay.portal.kernel.exception.PortalException
public JournalArticle getArticleByUrlTitle(long groupId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL titlecom.liferay.portal.kernel.exception.PortalException
public java.lang.String getArticleContent(long groupId, java.lang.String articleId, double version, java.lang.String languageId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlanguageId
- the primary key of the language translation to getportletRequestModel
- the portlet request modelthemeDisplay
- the theme displaycom.liferay.portal.kernel.exception.PortalException
@Deprecated public java.lang.String getArticleContent(long groupId, java.lang.String articleId, double version, java.lang.String languageId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleContent(long, String, double, String,
PortletRequestModel, ThemeDisplay)
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlanguageId
- the primary key of the language translation to getthemeDisplay
- the theme displaycom.liferay.portal.kernel.exception.PortalException
public java.lang.String getArticleContent(long groupId, java.lang.String articleId, java.lang.String languageId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlelanguageId
- the primary key of the language translation to getportletRequestModel
- the portlet request modelthemeDisplay
- the theme displaycom.liferay.portal.kernel.exception.PortalException
@Deprecated public java.lang.String getArticleContent(long groupId, java.lang.String articleId, java.lang.String languageId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleContent(long, String, String, PortletRequestModel,
ThemeDisplay)
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlelanguageId
- the primary key of the language translation to getthemeDisplay
- the theme displaycom.liferay.portal.kernel.exception.PortalException
public java.util.List<JournalArticle> getArticles(long groupId, long folderId)
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderpublic java.util.List<JournalArticle> getArticles(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderstart
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic java.util.List<JournalArticle> getArticlesByArticleId(long groupId, java.lang.String articleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlestart
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic java.util.List<JournalArticle> getArticlesByLayoutUuid(long groupId, java.lang.String layoutUuid)
groupId
- the primary key of the web content article's grouplayoutUuid
- the unique string identifying the web content
article's display pagepublic java.util.List<JournalArticle> getArticlesByStructureId(long groupId, long classNameId, java.lang.String ddmStructureKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
groupId
- the primary key of the web content article's groupclassNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwiseddmStructureKey
- the primary key of the web content article's DDM
structurestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic java.util.List<JournalArticle> getArticlesByStructureId(long groupId, java.lang.String ddmStructureKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structurestart
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic java.util.List<JournalArticle> getArticlesByStructureId(long groupId, java.lang.String ddmStructureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structurestart
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic int getArticlesCount(long groupId, long folderId)
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderpublic int getArticlesCount(long groupId, long folderId, int status)
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article's folderstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public int getArticlesCountByArticleId(long groupId, java.lang.String articleId)
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlepublic int getArticlesCountByStructureId(long groupId, long classNameId, java.lang.String ddmStructureKey, int status)
groupId
- the primary key of the web content article's groupclassNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwiseddmStructureKey
- the primary key of the web content article's DDM
structurestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public int getArticlesCountByStructureId(long groupId, java.lang.String ddmStructureKey)
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structurepublic int getArticlesCountByStructureId(long groupId, java.lang.String ddmStructureKey, int status)
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structurestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public JournalArticle getDisplayArticleByUrlTitle(long groupId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL titlecom.liferay.portal.kernel.exception.PortalException
public int getFoldersAndArticlesCount(long groupId, java.util.List<java.lang.Long> folderIds)
groupId
- the primary key of the web content article's groupfolderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)public java.util.List<JournalArticle> getGroupArticles(long groupId, long userId, long rootFolderId, int status, boolean includeOwner, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupuserId
- the primary key of the user (optionally 0
)rootFolderId
- the primary key of the root folder to begin the
searchstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)orderByComparator
- the comparator to order the web content
articlescom.liferay.portal.kernel.exception.PortalException
public java.util.List<JournalArticle> getGroupArticles(long groupId, long userId, long rootFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
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.
groupId
- the primary key of the web content article's groupuserId
- the primary key of the user (optionally 0
)rootFolderId
- the primary key of the root folder to begin the
searchstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)orderByComparator
- the comparator to order the web content
articlescom.liferay.portal.kernel.exception.PortalException
public java.util.List<JournalArticle> getGroupArticles(long groupId, long userId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
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.
groupId
- the primary key of the web content article's groupuserId
- the primary key of the user (optionally 0
)rootFolderId
- the primary key of the root folder to begin the
searchstart
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)orderByComparator
- the comparator to order the web content
articlescom.liferay.portal.kernel.exception.PortalException
public int getGroupArticlesCount(long groupId, long userId, long rootFolderId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupuserId
- the primary key of the user (optionally 0
)rootFolderId
- the primary key of the root folder to begin the
searchcom.liferay.portal.kernel.exception.PortalException
public int getGroupArticlesCount(long groupId, long userId, long rootFolderId, int status) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupuserId
- the primary key of the user (optionally 0
)rootFolderId
- the primary key of the root folder to begin the
searchstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.com.liferay.portal.kernel.exception.PortalException
public int getGroupArticlesCount(long groupId, long userId, long rootFolderId, int status, boolean includeOwner) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupuserId
- the primary key of the user (optionally 0
)rootFolderId
- the primary key of the root folder to begin the
searchstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.com.liferay.portal.kernel.exception.PortalException
public JournalArticle getLatestArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
resourcePrimKey
- the primary key of the resource instancecom.liferay.portal.kernel.exception.PortalException
public JournalArticle getLatestArticle(long groupId, java.lang.String articleId, int status) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.com.liferay.portal.kernel.exception.PortalException
public JournalArticle getLatestArticle(long groupId, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupclassName
- the DDMStructure class name if the web content article
is related to a DDM structure, the class name associated with the
article, or JournalArticleConstants.CLASSNAME_ID_DEFAULT in the
journal-api module otherwiseclassPK
- the primary key of the DDM structure, if the DDMStructure
class name is given as the className
parameter, the
primary key of the class associated with the web content article,
or 0
otherwisecom.liferay.portal.kernel.exception.PortalException
public java.util.List<JournalArticle> getLayoutArticles(long groupId)
@Deprecated public void moveArticle(long groupId, java.lang.String articleId, long newFolderId) throws com.liferay.portal.kernel.exception.PortalException
moveArticle(long, String, long, ServiceContext)
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlenewFolderId
- the primary key of the web content article's new
foldercom.liferay.portal.kernel.exception.PortalException
public void moveArticle(long groupId, java.lang.String articleId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlenewFolderId
- the primary key of the web content article's new
folderserviceContext
- the service context to be applied. Can set the user
ID, language ID, portlet preferences, portlet request, portlet
response, theme display, and can set whether to add the default
command update for the web content article. With respect to social
activities, by setting the service context's command to Constants.UPDATE
, the invocation
is considered a web content update activity; otherwise it is
considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle moveArticleFromTrash(long groupId, long resourcePrimKey, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupresourcePrimKey
- the primary key of the resource instancenewFolderId
- the primary key of the web content article's new
folderserviceContext
- the service context to be applied. Can set the
modification date, portlet preferences, and can set whether to
add the default command update for the web content article. With
respect to social activities, by setting the service context's
command to Constants.UPDATE
, the invocation
is considered a web content update activity; otherwise it is
considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle moveArticleFromTrash(long groupId, java.lang.String articleId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlenewFolderId
- the primary key of the web content article's new
folderserviceContext
- the service context to be applied. Can set the
modification date, portlet preferences, and can set whether to
add the default command update for the web content article. With
respect to social activities, by setting the service context's
command to Constants.UPDATE
, the invocation
is considered a web content update activity; otherwise it is
considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle moveArticleToTrash(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlenull
if no matching
article was foundcom.liferay.portal.kernel.exception.PortalException
public void removeArticleLocale(long companyId, java.lang.String languageId) throws com.liferay.portal.kernel.exception.PortalException
companyId
- the primary key of the web content article's companylanguageId
- the primary key of the language locale to removecom.liferay.portal.kernel.exception.PortalException
public JournalArticle removeArticleLocale(long groupId, java.lang.String articleId, double version, java.lang.String languageId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlanguageId
- the primary key of the language locale to removecom.liferay.portal.kernel.exception.PortalException
public void restoreArticleFromTrash(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
resourcePrimKey
- the primary key of the resource instancecom.liferay.portal.kernel.exception.PortalException
public void restoreArticleFromTrash(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlecom.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.Hits search(long groupId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
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.
groupId
- the primary key of the web content article's groupcreatorUserId
- the primary key of the web content article's
creatorstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)com.liferay.portal.kernel.exception.PortalException
public java.util.List<JournalArticle> search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String keywords, java.lang.Double version, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, int status, java.util.Date reviewDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
companyId
- the primary key of the web content article's companygroupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)classNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwisekeywords
- the keywords (space separated), which may occur in the
web content article ID, title, description, or content
(optionally null
). If the keywords value is not
null
, the search uses the OR operator in connecting
query criteria; otherwise it uses the AND operator.version
- the web content article's version (optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.reviewDate
- the web content article's scheduled review date
(optionally null
)start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic java.util.List<JournalArticle> search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, int status, java.util.Date reviewDate, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
companyId
- the primary key of the web content article's companygroupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)classNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.reviewDate
- the web content article's scheduled review date
(optionally null
)andOperator
- whether every field must match its value or keywords,
or just one field must match. Company, group, folder IDs, class
name ID, and status must all match their values.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic java.util.List<JournalArticle> search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String[] ddmStructureKeys, java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, java.util.Date displayDateLT, int status, java.util.Date reviewDate, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> obc)
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.
companyId
- the primary key of the web content article's companygroupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)classNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKeys
- the primary keys of the web content article's
DDM structures, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKeys
- the primary keys of the web content article's DDM
templates (originally null
). If the articles are
related to a DDM structure, the template's structure must match
it.displayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.reviewDate
- the web content article's scheduled review date
(optionally null
)andOperator
- whether every field must match its value or keywords,
or just one field must match. Company, group, folder IDs, class
name ID, and status must all match their values.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)obc
- the comparator to order the web content articlespublic int searchCount(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String keywords, java.lang.Double version, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, int status, java.util.Date reviewDate)
companyId
- the primary key of the web content article's companygroupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)classNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwisekeywords
- the keywords (space separated), which may occur in the
web content article ID, title, description, or content
(optionally null
). If the keywords value is not
null
, the search uses the OR operator in connecting
query criteria; otherwise it uses the AND operator.version
- the web content article's version (optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.reviewDate
- the web content article's scheduled review date
(optionally null
)public int searchCount(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, int status, java.util.Date reviewDate, boolean andOperator)
companyId
- the primary key of the web content article's companygroupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)classNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.reviewDate
- the web content article's scheduled review date
(optionally null
)andOperator
- whether every field must match its value or keywords,
or just one field must match. Group, folder IDs, class name ID,
and status must all match their values.public int searchCount(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String[] ddmStructureKeys, java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, java.util.Date displayDateLT, int status, java.util.Date reviewDate, boolean andOperator)
companyId
- the primary key of the web content article's companygroupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST
)classNameId
- the primary key of the DDMStructure class if the web
content article is related to a DDM structure, the primary key of
the class name associated with the article, or
JournalArticleConstants.CLASSNAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKeys
- the primary keys of the web content article's
DDM structures, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKeys
- the primary keys of the web content article's DDM
templates (originally null
). If the articles are
related to a DDM structure, the template's structure must match
it.displayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.reviewDate
- the web content article's scheduled review date
(optionally null
)andOperator
- whether every field must match its value or keywords,
or just one field must match. Group, folder IDs, class name ID,
and status must all match their values.public void subscribeStructure(long groupId, long userId, long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the folder's groupuserId
- the primary key of the user to be subscribedddmStructureId
- the primary key of the structure to subscribe tocom.liferay.portal.kernel.exception.PortalException
public void unsubscribeStructure(long groupId, long userId, long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the folder's groupuserId
- the primary key of the user to be subscribedddmStructureId
- the primary key of the structure to subscribe tocom.liferay.portal.kernel.exception.PortalException
public JournalArticle updateArticle(long userId, long groupId, long folderId, java.lang.String articleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String layoutUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
userId
- the primary key of the user updating the web content
articlegroupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderarticleId
- the primary key of the web content articleversion
- the web content article's versiontitleMap
- the web content article's locales and localized titlesdescriptionMap
- the web content article's locales and localized
descriptionscontent
- the HTML content wrapped in XML. For more information,
see the content example in the updateArticle(long, long,
String, double, String, ServiceContext)
description.layoutUuid
- the unique string identifying the web content
article's display pageserviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title, and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants.UPDATE
, the
invocation is considered a web content update activity; otherwise
it is considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle updateArticle(long groupId, long folderId, java.lang.String articleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.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, java.lang.String smallImageURL, java.io.File smallFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderarticleId
- the primary key of the web content articleversion
- the web content article's versiontitleMap
- the web content article's locales and localized titlesdescriptionMap
- the web content article's locales and localized
descriptionscontent
- the HTML content wrapped in XML. For more information,
see the content example in the updateArticle(long, long,
String, double, String, ServiceContext)
description.ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatelayoutUuid
- the unique string identifying the web content
article's display pagedisplayDateMonth
- the month the web content article is set to
displaydisplayDateDay
- the calendar day the web content article is set to
displaydisplayDateYear
- the year the web content article is set to
displaydisplayDateHour
- the hour the web content article is set to
displaydisplayDateMinute
- the minute the web content article is set to
displayexpirationDateMonth
- the month the web content article is set to
expireexpirationDateDay
- the calendar day the web content article is set
to expireexpirationDateYear
- the year the web content article is set to
expireexpirationDateHour
- the hour the web content article is set to
expireexpirationDateMinute
- the minute the web content article is set to
expireneverExpire
- whether the web content article is not set to auto
expirereviewDateMonth
- the month the web content article is set for
reviewreviewDateDay
- the calendar day the web content article is set for
reviewreviewDateYear
- the year the web content article is set for reviewreviewDateHour
- the hour the web content article is set for reviewreviewDateMinute
- the minute the web content article is set for
reviewneverReview
- whether the web content article is not set for reviewindexable
- whether the web content is searchablesmallImage
- whether to update web content article's a small image.
A file must be passed in as smallImageFile
value,
otherwise the current small image is deleted.smallImageURL
- the web content article's small image URL
(optionally null
)smallFile
- the web content article's new small image file
(optionally null
). Must pass in
smallImage
value of true
to replace the
article's small image file.images
- the web content's images (optionally null
)articleURL
- the web content article's accessible URL (optionally
null
)serviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title, and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants.UPDATE
, the
invocation is considered a web content update activity; otherwise
it is considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle updateArticle(long groupId, long folderId, java.lang.String articleId, double version, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
The web content articles hold HTML content wrapped in XML. The XML lets you specify the article's default locale and available locales. Here is a content example:
<?xml version='1.0' encoding='UTF-8'?>
<root default-locale="en_US" available-locales="en_US">
<static-content language-id="en_US">
<![CDATA[<p><b><i>test<i> content<b></p>]]>
</static-content>
</root>
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderarticleId
- the primary key of the web content articleversion
- the web content article's versioncontent
- the HTML content wrapped in XML.serviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title, and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants.UPDATE
, the
invocation is considered a web content update activity; otherwise
it is considered a web content add activity.com.liferay.portal.kernel.exception.PortalException
public JournalArticle updateArticleTranslation(long groupId, java.lang.String articleId, double version, java.util.Locale locale, java.lang.String title, java.lang.String description, java.lang.String content, java.util.Map<java.lang.String,byte[]> images, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlocale
- the locale of the web content article's display templatetitle
- the translated web content article titledescription
- the translated web content article descriptioncontent
- the HTML content wrapped in XML. For more information,
see the content example in the updateArticle(long, long,
String, double, String, ServiceContext)
description.images
- the web content's imagesserviceContext
- the service context to be applied. Can set the
modification date and URL title for the web content article.com.liferay.portal.kernel.exception.PortalException
public JournalArticle updateContent(long groupId, java.lang.String articleId, double version, java.lang.String content) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versioncontent
- the HTML content wrapped in XML. For more information,
see the content example in the updateArticle(long, long,
String, double, String, ServiceContext)
description.com.liferay.portal.kernel.exception.PortalException
public JournalArticle updateStatus(long groupId, java.lang.String articleId, double version, int status, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.articleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
modification date, portlet preferences, and can set whether to
add the default command update for the web content article.com.liferay.portal.kernel.exception.PortalException