@ProviderType
public class JournalArticleServiceSoap
extends java.lang.Object
JournalArticleServiceUtil service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it is difficult for SOAP to
support certain types.
ServiceBuilder follows certain rules in translating the methods. For example,
if the method in the service utility returns a List, that
is translated to an array of JournalArticleSoap.
If the method in the service utility returns a
JournalArticle, that is translated to a
JournalArticleSoap. Methods that SOAP cannot
safely wire are skipped.
The benefits of using the SOAP utility is that it is cross platform compatible. SOAP allows different languages like Java, .NET, C++, PHP, and even Perl, to call the generated services. One drawback of SOAP is that it is slow because it needs to serialize all calls into a text format (XML).
You can see a list of services at http://localhost:8080/api/axis. Set the property axis.servlet.hosts.allowed in portal.properties to configure security.
The SOAP utility is only generated for remote services.
JournalArticleServiceHttp,
JournalArticleSoap,
JournalArticleServiceUtil| Constructor and Description |
|---|
JournalArticleServiceSoap() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portlet.journal.model.JournalArticleSoap |
addArticle(long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
java.lang.String[] titleMapLanguageIds,
java.lang.String[] titleMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
java.lang.String content,
java.lang.String type,
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.service.ServiceContext serviceContext)
Adds a web content article without any images.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
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.
|
static void |
deleteArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.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.
|
static void |
deleteArticle(long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
expireArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
Expires the web content article matching the group, article ID, and
version.
|
static void |
expireArticle(long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.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. |
static com.liferay.portlet.journal.model.JournalArticleSoap |
fetchArticle(long groupId,
java.lang.String articleId) |
static com.liferay.portlet.journal.model.JournalArticleSoap |
getArticle(long id)
Returns the web content article with the ID.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
getArticle(long groupId,
java.lang.String articleId)
Returns the latest approved web content article, or the latest unapproved
article if none are approved.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
getArticle(long groupId,
java.lang.String articleId,
double version)
Returns the web content article matching the group, article ID, and
version.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
getArticle(long groupId,
java.lang.String className,
long classPK)
Returns the web content article matching the group, class name, and class
PK.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getArticles(long groupId,
long folderId)
Returns all the web content articles matching the group and folder.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getArticles(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the web content articles matching the
group and folder.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getArticlesByArticleId(long groupId,
java.lang.String articleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the web content articles matching the
group and article ID.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getArticlesByLayoutUuid(long groupId,
java.lang.String layoutUuid)
Returns all the web content articles matching the group and layout UUID.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getArticlesByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the web content articles matching the
group, class name ID, DDM structure key, and workflow status.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
Returns an ordered range of all the web content articles matching the
group, default class name ID, and DDM structure key.
|
static int |
getArticlesCount(long groupId,
long folderId)
Returns the number of web content articles matching the group and folder.
|
static int |
getArticlesCount(long groupId,
long folderId,
int status) |
static int |
getArticlesCountByArticleId(long groupId,
java.lang.String articleId)
Returns the number of web content articles matching the group and article
ID.
|
static 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.
|
static 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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
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.
|
static int |
getFoldersAndArticlesCount(long groupId,
java.lang.Long[] folderIds)
Returns the number of folders containing web content articles belonging
to the group.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getGroupArticles(long groupId,
long userId,
long rootFolderId,
int status,
boolean includeOwner,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the web content articles matching the
group, user, the root folder or any of its subfolders.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getGroupArticles(long groupId,
long userId,
long rootFolderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the web content articles matching the
group, user, the root folder or any of its subfolders.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
getGroupArticles(long groupId,
long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the web content articles matching the
group, user, the root folder or any of its subfolders.
|
static 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.
|
static int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status) |
static 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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
getLatestArticle(long resourcePrimKey)
Returns the latest web content article matching the resource primary key,
preferring articles with approved workflow status.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
getLatestArticle(long groupId,
java.lang.String articleId,
int status)
Returns the latest web content article matching the group, article ID,
and workflow status.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
getLatestArticle(long groupId,
java.lang.String className,
long classPK)
Returns the latest web content article matching the group, class name ID,
and class PK.
|
static void |
moveArticle(long groupId,
java.lang.String articleId,
long newFolderId)
Moves all versions of the the web content article matching the group and
article ID to the folder.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
moveArticleFromTrash(long groupId,
long resourcePrimKey,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to the folder.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
moveArticleFromTrash(long groupId,
java.lang.String articleId,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to the folder.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
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.
|
static void |
removeArticleLocale(long companyId,
java.lang.String languageId)
Removes the web content of all the company's web content articles
matching the language.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
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.
|
static void |
restoreArticleFromTrash(long resourcePrimKey)
Restores the web content article associated with the resource primary key
from the Recycle Bin.
|
static void |
restoreArticleFromTrash(long groupId,
java.lang.String articleId)
Restores the web content article from the Recycle Bin.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
search(long companyId,
long groupId,
java.lang.Long[] folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String type,
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 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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
search(long companyId,
long groupId,
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 type,
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 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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap[] |
search(long companyId,
long groupId,
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 type,
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 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.
|
static int |
searchCount(long companyId,
long groupId,
java.lang.Long[] folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String type,
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.
|
static int |
searchCount(long companyId,
long groupId,
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 type,
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.
|
static int |
searchCount(long companyId,
long groupId,
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 type,
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.
|
static void |
subscribe(long groupId)
Subscribes the user to notifications for the web content article matching
the group, notifying him the instant versions of the article are created,
deleted, or modified.
|
static void |
unsubscribe(long groupId)
Unsubscribes the user from notifications for the web content article
matching the group.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.lang.String[] titleMapLanguageIds,
java.lang.String[] titleMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
java.lang.String content,
java.lang.String layoutUuid,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the web content article matching the version, replacing its
folder, title, description, content, and layout UUID.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
updateArticle(long groupId,
long folderId,
java.lang.String articleId,
double version,
java.lang.String content,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the web content article matching the version, replacing its
folder and content.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
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.
|
static com.liferay.portlet.journal.model.JournalArticleSoap |
updateStatus(long groupId,
java.lang.String articleId,
double version,
int status,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the workflow status of the web content article matching the
group, article ID, and version.
|
public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
java.lang.String[] titleMapLanguageIds,
java.lang.String[] titleMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
java.lang.String content,
java.lang.String type,
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.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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 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 class description for JournalArticleLocalServiceImpl.type - the structure's type, if the web content article is related
to a DDM structure. For more information, see DDMStructureConstants.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
template (optionally null). If the article is
related to a DDM structure, the template's structure must match
it.layoutUuid - 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, the "urlTitle"
attribute, and workflow actions for the web content article. Can
also set whether to add the default guest and group permissions.PortalException - if the user did not have permission to add the
web content article or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(long groupId,
java.lang.String oldArticleId,
java.lang.String newArticleId,
boolean autoArticleId,
double version)
throws java.rmi.RemoteException
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 versionPortalException - if the user did not have permission to add the
copy the web content article, if a matching web content article
could not be found, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void deleteArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to delete the
web content article, if a matching web content article could not
be found, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void deleteArticle(long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to delete the
web content article or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap expireArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to expire the
web content article, if a matching web content article could not
be found, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void expireArticle(long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to expire the
web content article, if a matching web content article could not
be found, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap fetchArticle(long groupId,
java.lang.String articleId)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(long id)
throws java.rmi.RemoteException
id - the primary key of the web content articlePortalException - if a matching web content article could not be
found or if the user did not have permission to view the web
content articleSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(long groupId,
java.lang.String articleId)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's grouparticleId - the primary key of the web content articlePortalException - if the user did not have permission to view the
web content article or if a matching web content article could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(long groupId,
java.lang.String articleId,
double version)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's grouparticleId - the primary key of the web content articleversion - the web content article's versionPortalException - if the user did not have permission to view the
web content article or if a matching web content article could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(long groupId,
java.lang.String className,
long classPK)
throws java.rmi.RemoteException
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 otherwiseclassPK - the primary key of the DDM structure, if the the
DDMStructure class name is given as the className
parameter, the primary key of the class associated with the web
content article, or 0 otherwisePortalException - if a matching web content article could not be
found or if the user did not have permission to view the web
content articleSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getArticleByUrlTitle(long groupId,
java.lang.String urlTitle)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's groupurlTitle - the web content article's accessible URL titlePortalException - if the user did not have permission to view the
web content article or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticles(long groupId,
long folderId)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's groupfolderId - the primary key of the web content article folderSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticles(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws java.rmi.RemoteException
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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByArticleId(long groupId,
java.lang.String articleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws java.rmi.RemoteException
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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByLayoutUuid(long groupId,
java.lang.String layoutUuid)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's grouplayoutUuid - the unique string identifying the web content
article's display pageSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws java.rmi.RemoteException
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 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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws java.rmi.RemoteException
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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getArticlesCount(long groupId,
long folderId)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's groupfolderId - the primary key of the web content article folderSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getArticlesCount(long groupId,
long folderId,
int status)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic static int getArticlesCountByArticleId(long groupId,
java.lang.String articleId)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's grouparticleId - the primary key of the web content articleSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getArticlesCountByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
int status)
throws java.rmi.RemoteException
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 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.SystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getArticlesCountByStructureId(long groupId,
java.lang.String ddmStructureKey)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's groupddmStructureKey - the primary key of the web content article's DDM
structureSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getDisplayArticleByUrlTitle(long groupId,
java.lang.String urlTitle)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's groupurlTitle - the web content article's accessible URL titlePortalException - if the user did not have permission to view the
web content article or if no approved matching web content
articles could be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getFoldersAndArticlesCount(long groupId,
java.lang.Long[] folderIds)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's groupfolderIds - the primary keys of the web content article folders
(optionally Collections.EMPTY_LIST)SystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getGroupArticles(long groupId,
long userId,
long rootFolderId,
int status,
boolean includeOwner,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws java.rmi.RemoteException
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
articlesPortalException - if the root folder could not be found, if the
current user did not have permission to view the root folder, or
if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getGroupArticles(long groupId,
long userId,
long rootFolderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws java.rmi.RemoteException
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
articlesPortalException - if the root folder could not be found, if the
current user did not have permission to view the root folder, or
if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] getGroupArticles(long groupId,
long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws java.rmi.RemoteException
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
articlesPortalException - if the root folder could not be found, if the
current user did not have permission to view the root folder, or
if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getGroupArticlesCount(long groupId,
long userId,
long rootFolderId)
throws java.rmi.RemoteException
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
searchPortalException - if the root folder could not be found, if the
current user did not have permission to view the root folder, or
if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic static int getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status,
boolean includeOwner)
throws java.rmi.RemoteException
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.PortalException - if the root folder could not be found, if the
current user did not have permission to view the root folder, or
if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(long resourcePrimKey)
throws java.rmi.RemoteException
resourcePrimKey - the primary key of the resource instancePortalException - if the user did not have permission to view the
web content article or if a matching web content article could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(long groupId,
java.lang.String articleId,
int status)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to view the
web content article or if a matching web content article could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(long groupId,
java.lang.String className,
long classPK)
throws java.rmi.RemoteException
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
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 otherwisePortalException - if a matching web content article could not be
found or if the user did not have permission to view the web
content articleSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void moveArticle(long groupId,
java.lang.String articleId,
long newFolderId)
throws java.rmi.RemoteException
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
folderPortalException - if the user did not have permission to update any
one of the versions of the web content article or if any one of
the versions of the web content article could not be moved to the
folderSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap moveArticleFromTrash(long groupId,
long resourcePrimKey,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to view or
update the web content article, if a matching trashed web content
article could not be found, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap moveArticleFromTrash(long groupId,
java.lang.String articleId,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to view or
update the web content article, if a trashed web content article
with the primary key could not be found, or if a portal exception
occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap moveArticleToTrash(long groupId,
java.lang.String articleId)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's grouparticleId - the primary key of the web content articlenull if no matching
article was foundPortalException - if the user did not have permission to move the
article to the Recycle Bin or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void removeArticleLocale(long companyId,
java.lang.String languageId)
throws java.rmi.RemoteException
companyId - the primary key of the web content article's companylanguageId - the primary key of the language locale to removePortalException - if the user did not have permission to update any
one of the the web content articles or if web content matching
the language could not be found for any one of the articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(long groupId,
java.lang.String articleId,
double version,
java.lang.String languageId)
throws java.rmi.RemoteException
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 removePortalException - if the user did not have permission to update the
web content article or if a matching web content article could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void restoreArticleFromTrash(long resourcePrimKey)
throws java.rmi.RemoteException
resourcePrimKey - the primary key of the resource instancePortalException - if a matching web content article could not be
found in the Recycle Bin, if the user did not have permission to
view or restore the article, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void restoreArticleFromTrash(long groupId,
java.lang.String articleId)
throws java.rmi.RemoteException
groupId - the primary key of the web content article's grouparticleId - the primary key of the web content articlePortalException - if the web content article with the primary key
could not be found in the Recycle Bin, if the user did not have
permission to restore the article, or if a portal exception
occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] search(long companyId,
long groupId,
java.lang.Long[] folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String type,
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 obc)
throws java.rmi.RemoteException
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 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)type - the web content article's type (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
template (optionally null). If the article is
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)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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] search(long companyId,
long groupId,
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 type,
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 obc)
throws java.rmi.RemoteException
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 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)type - the web content article's type (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
template (optionally null). If the article is
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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap[] search(long companyId,
long groupId,
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 type,
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 obc)
throws java.rmi.RemoteException
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 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)type - the web content article's type (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 articlesSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int searchCount(long companyId,
long groupId,
java.lang.Long[] folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String type,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate)
throws java.rmi.RemoteException
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 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)type - the web content article's type (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
template (optionally null). If the article is
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)SystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int searchCount(long companyId,
long groupId,
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 type,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
boolean andOperator)
throws java.rmi.RemoteException
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 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)type - the web content article's type (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
template (optionally null). If the article is
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.SystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static int searchCount(long companyId,
long groupId,
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 type,
java.lang.String[] ddmStructureKeys,
java.lang.String[] ddmTemplateKeys,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
int status,
java.util.Date reviewDate,
boolean andOperator)
throws java.rmi.RemoteException
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 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)type - the web content article's type (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.SystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void subscribe(long groupId)
throws java.rmi.RemoteException
groupId - the primary key of the groupPortalException - if the user did not have permission to subscribe
to the web content article or if a matching user or group could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static void unsubscribe(long groupId)
throws java.rmi.RemoteException
groupId - the primary key of the groupPortalException - if the user did not have permission to subscribe
to the web content article or if a matching user or subscription
could not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.lang.String[] titleMapLanguageIds,
java.lang.String[] titleMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
java.lang.String content,
java.lang.String layoutUuid,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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 class description for JournalArticleLocalServiceImpl.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, workflow actions, the
"defaultLanguageId" and "urlTitle" attributes, 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.PortalException - if a user with the primary key or a matching web
content article could not be found, or if a portal exception
occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(long groupId,
long folderId,
java.lang.String articleId,
double version,
java.lang.String content,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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. For more information,
see the content example in the class description for JournalArticleLocalServiceImpl.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, workflow actions, the
"defaultLanguageId" and "urlTitle" attributes, 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.PortalException - if the user did not have permission to update the
web content article, if a user with the primary key or a matching
web content article could not be found, or if a portal exception
occurredSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(long groupId,
java.lang.String articleId,
double version,
java.lang.String content)
throws java.rmi.RemoteException
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 class description for JournalArticleLocalServiceImpl.PortalException - if the user did not have permission to update the
web content article or if a matching web content article could
not be foundSystemException - if a system exception occurredjava.rmi.RemoteExceptionpublic static com.liferay.portlet.journal.model.JournalArticleSoap updateStatus(long groupId,
java.lang.String articleId,
double version,
int status,
java.lang.String articleURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.rmi.RemoteException
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.PortalException - if the user did not have permission to update the
web content article, if a matching web content article could not
be found, or if a portal exception occurredSystemException - if a system exception occurredjava.rmi.RemoteException