Liferay 6.2-ce-ga5

com.liferay.portlet.journal.service.http
Class JournalArticleServiceSoap

java.lang.Object
  extended by com.liferay.portlet.journal.service.http.JournalArticleServiceSoap

@ProviderType
public class JournalArticleServiceSoap
extends Object

Provides the SOAP utility for the 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.

See Also:
JournalArticleServiceHttp, JournalArticleSoap, JournalArticleServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
JournalArticleServiceSoap()
           
 
Method Summary
static JournalArticleSoap addArticle(long groupId, long folderId, long classNameId, long classPK, String articleId, boolean autoArticleId, String[] titleMapLanguageIds, String[] titleMapValues, String[] descriptionMapLanguageIds, String[] descriptionMapValues, String content, String type, String ddmStructureKey, String ddmTemplateKey, 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, String articleURL, ServiceContext serviceContext)
          Adds a web content article without any images.
static JournalArticleSoap copyArticle(long groupId, String oldArticleId, String newArticleId, boolean autoArticleId, double version)
          Copies the web content article matching the group, article ID, and version.
static void deleteArticle(long groupId, String articleId, double version, String articleURL, 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, String articleId, String articleURL, 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 JournalArticleSoap expireArticle(long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext)
          Expires the web content article matching the group, article ID, and version.
static void expireArticle(long groupId, String articleId, String articleURL, 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 JournalArticleSoap fetchArticle(long groupId, String articleId)
           
static JournalArticleSoap getArticle(long id)
          Returns the web content article with the ID.
static JournalArticleSoap getArticle(long groupId, String articleId)
          Returns the latest approved web content article, or the latest unapproved article if none are approved.
static JournalArticleSoap getArticle(long groupId, String articleId, double version)
          Returns the web content article matching the group, article ID, and version.
static JournalArticleSoap getArticle(long groupId, String className, long classPK)
          Returns the web content article matching the group, class name, and class PK.
static JournalArticleSoap getArticleByUrlTitle(long groupId, String urlTitle)
          Returns the latest web content article that is approved, or the latest unapproved article if none are approved.
static JournalArticleSoap[] getArticles(long groupId, long folderId)
          Returns all the web content articles matching the group and folder.
static JournalArticleSoap[] getArticles(long groupId, long folderId, int start, int end, OrderByComparator obc)
          Returns an ordered range of all the web content articles matching the group and folder.
static JournalArticleSoap[] getArticlesByArticleId(long groupId, String articleId, int start, int end, OrderByComparator obc)
          Returns an ordered range of all the web content articles matching the group and article ID.
static JournalArticleSoap[] getArticlesByLayoutUuid(long groupId, String layoutUuid)
          Returns all the web content articles matching the group and layout UUID.
static JournalArticleSoap[] getArticlesByStructureId(long groupId, long classNameId, String ddmStructureKey, int status, int start, int end, 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 JournalArticleSoap[] getArticlesByStructureId(long groupId, String ddmStructureKey, int start, int end, 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, String articleId)
          Returns the number of web content articles matching the group and article ID.
static int getArticlesCountByStructureId(long groupId, long classNameId, 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, String ddmStructureKey)
          Returns the number of web content articles matching the group, default class name ID, and DDM structure key.
static JournalArticleSoap getDisplayArticleByUrlTitle(long groupId, 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, Long[] folderIds)
          Returns the number of folders containing web content articles belonging to the group.
static JournalArticleSoap[] getGroupArticles(long groupId, long userId, long rootFolderId, int status, boolean includeOwner, int start, int end, 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 JournalArticleSoap[] getGroupArticles(long groupId, long userId, long rootFolderId, int status, int start, int end, 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 JournalArticleSoap[] getGroupArticles(long groupId, long userId, long rootFolderId, int start, int end, 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 JournalArticleSoap getLatestArticle(long resourcePrimKey)
          Returns the latest web content article matching the resource primary key, preferring articles with approved workflow status.
static JournalArticleSoap getLatestArticle(long groupId, String articleId, int status)
          Returns the latest web content article matching the group, article ID, and workflow status.
static JournalArticleSoap getLatestArticle(long groupId, String className, long classPK)
          Returns the latest web content article matching the group, class name ID, and class PK.
static void moveArticle(long groupId, String articleId, long newFolderId)
          Moves all versions of the the web content article matching the group and article ID to the folder.
static JournalArticleSoap moveArticleFromTrash(long groupId, long resourcePrimKey, long newFolderId, ServiceContext serviceContext)
          Moves the web content article from the Recycle Bin to the folder.
static JournalArticleSoap moveArticleFromTrash(long groupId, String articleId, long newFolderId, ServiceContext serviceContext)
          Moves the web content article from the Recycle Bin to the folder.
static JournalArticleSoap moveArticleToTrash(long groupId, 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, String languageId)
          Removes the web content of all the company's web content articles matching the language.
static JournalArticleSoap removeArticleLocale(long groupId, String articleId, double version, 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, String articleId)
          Restores the web content article from the Recycle Bin.
static JournalArticleSoap[] search(long companyId, long groupId, Long[] folderIds, long classNameId, String keywords, Double version, String type, String ddmStructureKey, String ddmTemplateKey, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, int start, int end, 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 JournalArticleSoap[] search(long companyId, long groupId, Long[] folderIds, long classNameId, String articleId, Double version, String title, String description, String content, String type, String[] ddmStructureKeys, String[] ddmTemplateKeys, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, boolean andOperator, int start, int end, 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 JournalArticleSoap[] search(long companyId, long groupId, Long[] folderIds, long classNameId, String articleId, Double version, String title, String description, String content, String type, String ddmStructureKey, String ddmTemplateKey, Date displayDateGT, Date displayDateLT, int status, Date reviewDate, boolean andOperator, int start, int end, 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, Long[] folderIds, long classNameId, String keywords, Double version, String type, String ddmStructureKey, String ddmTemplateKey, Date displayDateGT, Date displayDateLT, int status, 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, Long[] folderIds, long classNameId, String articleId, Double version, String title, String description, String content, String type, String[] ddmStructureKeys, String[] ddmTemplateKeys, Date displayDateGT, Date displayDateLT, int status, 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, Long[] folderIds, long classNameId, String articleId, Double version, String title, String description, String content, String type, String ddmStructureKey, String ddmTemplateKey, Date displayDateGT, Date displayDateLT, int status, 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 JournalArticleSoap updateArticle(long userId, long groupId, long folderId, String articleId, double version, String[] titleMapLanguageIds, String[] titleMapValues, String[] descriptionMapLanguageIds, String[] descriptionMapValues, String content, String layoutUuid, ServiceContext serviceContext)
          Updates the web content article matching the version, replacing its folder, title, description, content, and layout UUID.
static JournalArticleSoap updateArticle(long groupId, long folderId, String articleId, double version, String content, ServiceContext serviceContext)
          Updates the web content article matching the version, replacing its folder and content.
static JournalArticleSoap updateContent(long groupId, String articleId, double version, String content)
          Updates the web content article matching the group, article ID, and version, replacing its content.
static JournalArticleSoap updateStatus(long groupId, String articleId, double version, int status, String articleURL, ServiceContext serviceContext)
          Updates the workflow status of the web content article matching the group, article ID, and version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalArticleServiceSoap

public JournalArticleServiceSoap()
Method Detail

addArticle

public static JournalArticleSoap addArticle(long groupId,
                                            long folderId,
                                            long classNameId,
                                            long classPK,
                                            String articleId,
                                            boolean autoArticleId,
                                            String[] titleMapLanguageIds,
                                            String[] titleMapValues,
                                            String[] descriptionMapLanguageIds,
                                            String[] descriptionMapValues,
                                            String content,
                                            String type,
                                            String ddmStructureKey,
                                            String ddmTemplateKey,
                                            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,
                                            String articleURL,
                                            ServiceContext serviceContext)
                                     throws RemoteException
Adds a web content article without any images.

Parameters:
groupId - the primary key of the web content article's group
folderId - the primary key of the web content article folder
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 otherwise
classPK - 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 otherwise
articleId - the primary key of the web content article
autoArticleId - whether to auto generate the web content article ID
titleMap - the web content article's locales and localized titles
descriptionMap - the web content article's locales and localized descriptions
content - 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 otherwise
ddmTemplateKey - 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 page
displayDateMonth - the month the web content article is set to display
displayDateDay - the calendar day the web content article is set to display
displayDateYear - the year the web content article is set to display
displayDateHour - the hour the web content article is set to display
displayDateMinute - the minute the web content article is set to display
expirationDateMonth - the month the web content article is set to expire
expirationDateDay - the calendar day the web content article is set to expire
expirationDateYear - the year the web content article is set to expire
expirationDateHour - the hour the web content article is set to expire
expirationDateMinute - the minute the web content article is set to expire
neverExpire - whether the web content article is not set to auto expire
reviewDateMonth - the month the web content article is set for review
reviewDateDay - the calendar day the web content article is set for review
reviewDateYear - the year the web content article is set for review
reviewDateHour - the hour the web content article is set for review
reviewDateMinute - the minute the web content article is set for review
neverReview - whether the web content article is not set for review
indexable - whether the web content article is searchable
articleURL - the web content article's accessible URL
serviceContext - 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.
Returns:
the web content article
Throws:
PortalException - if the user did not have permission to add the web content article or if a portal exception occurred
SystemException - if a system exception occurred
RemoteException

copyArticle

public static JournalArticleSoap copyArticle(long groupId,
                                             String oldArticleId,
                                             String newArticleId,
                                             boolean autoArticleId,
                                             double version)
                                      throws RemoteException
Copies the web content article matching the group, article ID, and version. This method creates a new article, extracting all the values from the old one and updating its article ID.

Parameters:
groupId - the primary key of the web content article's group
oldArticleId - the primary key of the old web content article
newArticleId - the primary key of the new web content article
autoArticleId - whether to auto-generate the web content article ID
version - the web content article's version
Returns:
the new web content article
Throws:
PortalException - 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 occurred
SystemException - if a system exception occurred
RemoteException

deleteArticle

public static void deleteArticle(long groupId,
                                 String articleId,
                                 double version,
                                 String articleURL,
                                 ServiceContext serviceContext)
                          throws RemoteException
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.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
version - the web content article's version
articleURL - the web content article's accessible URL
serviceContext - 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.
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

deleteArticle

public static void deleteArticle(long groupId,
                                 String articleId,
                                 String articleURL,
                                 ServiceContext serviceContext)
                          throws RemoteException
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.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
articleURL - the web content article's accessible URL
serviceContext - 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.
Throws:
PortalException - if the user did not have permission to delete the web content article or if a portal exception occurred
SystemException - if a system exception occurred
RemoteException

expireArticle

public static JournalArticleSoap expireArticle(long groupId,
                                               String articleId,
                                               double version,
                                               String articleURL,
                                               ServiceContext serviceContext)
                                        throws RemoteException
Expires the web content article matching the group, article ID, and version.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
version - the web content article's version
articleURL - the web content article's accessible URL
serviceContext - 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.
Returns:
the web content article
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

expireArticle

public static void expireArticle(long groupId,
                                 String articleId,
                                 String articleURL,
                                 ServiceContext serviceContext)
                          throws RemoteException
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.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
articleURL - the web content article's accessible URL
serviceContext - 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.
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

fetchArticle

public static JournalArticleSoap fetchArticle(long groupId,
                                              String articleId)
                                       throws RemoteException
Throws:
RemoteException

getArticle

public static JournalArticleSoap getArticle(long id)
                                     throws RemoteException
Returns the web content article with the ID.

Parameters:
id - the primary key of the web content article
Returns:
the web content article with the ID
Throws:
PortalException - if a matching web content article could not be found or if the user did not have permission to view the web content article
SystemException - if a system exception occurred
RemoteException

getArticle

public static JournalArticleSoap getArticle(long groupId,
                                            String articleId)
                                     throws RemoteException
Returns the latest approved web content article, or the latest unapproved article if none are approved. Both approved and unapproved articles must match the group and article ID.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
Returns:
the matching web content article
Throws:
PortalException - if the user did not have permission to view the web content article or if a matching web content article could not be found
SystemException - if a system exception occurred
RemoteException

getArticle

public static JournalArticleSoap getArticle(long groupId,
                                            String articleId,
                                            double version)
                                     throws RemoteException
Returns the web content article matching the group, article ID, and version.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
version - the web content article's version
Returns:
the matching web content article
Throws:
PortalException - if the user did not have permission to view the web content article or if a matching web content article could not be found
SystemException - if a system exception occurred
RemoteException

getArticle

public static JournalArticleSoap getArticle(long groupId,
                                            String className,
                                            long classPK)
                                     throws RemoteException
Returns the web content article matching the group, class name, and class PK.

Parameters:
groupId - the primary key of the web content article's group
className - 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 otherwise
classPK - 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 otherwise
Returns:
the matching web content article
Throws:
PortalException - if a matching web content article could not be found or if the user did not have permission to view the web content article
SystemException - if a system exception occurred
RemoteException

getArticleByUrlTitle

public static JournalArticleSoap getArticleByUrlTitle(long groupId,
                                                      String urlTitle)
                                               throws RemoteException
Returns the latest web content article that is approved, or the latest unapproved article if none are approved. Both approved and unapproved articles must match the group and URL title.

Parameters:
groupId - the primary key of the web content article's group
urlTitle - the web content article's accessible URL title
Returns:
the matching web content article
Throws:
PortalException - if the user did not have permission to view the web content article or if a portal exception occurred
SystemException - if a system exception occurred
RemoteException

getArticles

public static JournalArticleSoap[] getArticles(long groupId,
                                               long folderId)
                                        throws RemoteException
Returns all the web content articles matching the group and folder.

Parameters:
groupId - the primary key of the web content article's group
folderId - the primary key of the web content article folder
Returns:
the matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getArticles

public static JournalArticleSoap[] getArticles(long groupId,
                                               long folderId,
                                               int start,
                                               int end,
                                               OrderByComparator obc)
                                        throws RemoteException
Returns an ordered range of all the web content articles matching the group and folder.

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

Parameters:
groupId - the primary key of the web content article's group
folderId - the primary key of the web content article folder
start - the lower bound of the range of web content articles to return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesByArticleId

public static JournalArticleSoap[] getArticlesByArticleId(long groupId,
                                                          String articleId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator obc)
                                                   throws RemoteException
Returns an ordered range of all the web content articles matching the group and article ID.

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

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
start - the lower bound of the range of web content articles to return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesByLayoutUuid

public static JournalArticleSoap[] getArticlesByLayoutUuid(long groupId,
                                                           String layoutUuid)
                                                    throws RemoteException
Returns all the web content articles matching the group and layout UUID.

Parameters:
groupId - the primary key of the web content article's group
layoutUuid - the unique string identifying the web content article's display page
Returns:
the matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesByStructureId

public static JournalArticleSoap[] getArticlesByStructureId(long groupId,
                                                            long classNameId,
                                                            String ddmStructureKey,
                                                            int status,
                                                            int start,
                                                            int end,
                                                            OrderByComparator obc)
                                                     throws RemoteException
Returns an ordered range of all the web content articles matching the group, class name ID, DDM structure key, and workflow status.

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

Parameters:
groupId - the primary key of the web content article's group
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 otherwise
ddmStructureKey - the primary key of the web content article's DDM structure
status - 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 return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesByStructureId

public static JournalArticleSoap[] getArticlesByStructureId(long groupId,
                                                            String ddmStructureKey,
                                                            int start,
                                                            int end,
                                                            OrderByComparator obc)
                                                     throws RemoteException
Returns an ordered range of all the web content articles matching the group, default class name ID, and DDM structure key.

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

Parameters:
groupId - the primary key of the web content article's group
ddmStructureKey - the primary key of the web content article's DDM structure
start - the lower bound of the range of web content articles to return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesCount

public static int getArticlesCount(long groupId,
                                   long folderId)
                            throws RemoteException
Returns the number of web content articles matching the group and folder.

Parameters:
groupId - the primary key of the web content article's group
folderId - the primary key of the web content article folder
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesCount

public static int getArticlesCount(long groupId,
                                   long folderId,
                                   int status)
                            throws RemoteException
Throws:
RemoteException

getArticlesCountByArticleId

public static int getArticlesCountByArticleId(long groupId,
                                              String articleId)
                                       throws RemoteException
Returns the number of web content articles matching the group and article ID.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesCountByStructureId

public static int getArticlesCountByStructureId(long groupId,
                                                long classNameId,
                                                String ddmStructureKey,
                                                int status)
                                         throws RemoteException
Returns the number of web content articles matching the group, class name ID, DDM structure key, and workflow status.

Parameters:
groupId - the primary key of the web content article's group
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 otherwise
ddmStructureKey - the primary key of the web content article's DDM structure
status - the web content article's workflow status. For more information see WorkflowConstants for constants starting with the "STATUS_" prefix.
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getArticlesCountByStructureId

public static int getArticlesCountByStructureId(long groupId,
                                                String ddmStructureKey)
                                         throws RemoteException
Returns the number of web content articles matching the group, default class name ID, and DDM structure key.

Parameters:
groupId - the primary key of the web content article's group
ddmStructureKey - the primary key of the web content article's DDM structure
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getDisplayArticleByUrlTitle

public static JournalArticleSoap getDisplayArticleByUrlTitle(long groupId,
                                                             String urlTitle)
                                                      throws RemoteException
Returns the web content article matching the URL title that is currently displayed or next to be displayed if no article is currently displayed.

Parameters:
groupId - the primary key of the web content article's group
urlTitle - the web content article's accessible URL title
Returns:
the web content article matching the URL title that is currently displayed, or next one to be displayed if no version of the article is currently displayed
Throws:
PortalException - if the user did not have permission to view the web content article or if no approved matching web content articles could be found
SystemException - if a system exception occurred
RemoteException

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(long groupId,
                                             Long[] folderIds)
                                      throws RemoteException
Returns the number of folders containing web content articles belonging to the group.

Parameters:
groupId - the primary key of the web content article's group
folderIds - the primary keys of the web content article folders (optionally Collections.EMPTY_LIST)
Returns:
the number of matching folders containing web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

getGroupArticles

public static JournalArticleSoap[] getGroupArticles(long groupId,
                                                    long userId,
                                                    long rootFolderId,
                                                    int status,
                                                    boolean includeOwner,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws RemoteException
Returns an ordered range of all the web content articles matching the group, user, the root folder or any of its subfolders.

Parameters:
groupId - the primary key of the web content article's group
userId - the primary key of the user (optionally 0)
rootFolderId - the primary key of the root folder to begin the search
status - 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 return
end - the upper bound of the range of web content articles to return (not inclusive)
orderByComparator - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

getGroupArticles

public static JournalArticleSoap[] getGroupArticles(long groupId,
                                                    long userId,
                                                    long rootFolderId,
                                                    int status,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws RemoteException
Returns an ordered range of all the web content articles matching the group, user, the root folder or any of its subfolders.

Parameters:
groupId - the primary key of the web content article's group
userId - the primary key of the user (optionally 0)
rootFolderId - the primary key of the root folder to begin the search
status - 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 return
end - the upper bound of the range of web content articles to return (not inclusive)
orderByComparator - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

getGroupArticles

public static JournalArticleSoap[] getGroupArticles(long groupId,
                                                    long userId,
                                                    long rootFolderId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws RemoteException
Returns an ordered range of all the web content articles matching the group, user, the root folder or any of its subfolders.

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

Parameters:
groupId - the primary key of the web content article's group
userId - the primary key of the user (optionally 0)
rootFolderId - the primary key of the root folder to begin the search
start - the lower bound of the range of web content articles to return
end - the upper bound of the range of web content articles to return (not inclusive)
orderByComparator - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

getGroupArticlesCount

public static int getGroupArticlesCount(long groupId,
                                        long userId,
                                        long rootFolderId)
                                 throws RemoteException
Returns the number of web content articles matching the group, user, and the root folder or any of its subfolders.

Parameters:
groupId - the primary key of the web content article's group
userId - the primary key of the user (optionally 0)
rootFolderId - the primary key of the root folder to begin the search
Returns:
the number of matching web content articles
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

getGroupArticlesCount

public static int getGroupArticlesCount(long groupId,
                                        long userId,
                                        long rootFolderId,
                                        int status)
                                 throws RemoteException
Throws:
RemoteException

getGroupArticlesCount

public static int getGroupArticlesCount(long groupId,
                                        long userId,
                                        long rootFolderId,
                                        int status,
                                        boolean includeOwner)
                                 throws RemoteException
Returns the number of web content articles matching the group, user, the root folder or any of its subfolders.

Parameters:
groupId - the primary key of the web content article's group
userId - the primary key of the user (optionally 0)
rootFolderId - the primary key of the root folder to begin the search
status - the web content article's workflow status. For more information see WorkflowConstants for constants starting with the "STATUS_" prefix.
Returns:
the range of matching web content articles ordered by the comparator
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

getLatestArticle

public static JournalArticleSoap getLatestArticle(long resourcePrimKey)
                                           throws RemoteException
Returns the latest web content article matching the resource primary key, preferring articles with approved workflow status.

Parameters:
resourcePrimKey - the primary key of the resource instance
Returns:
the latest web content article matching the resource primary key, preferring articles with approved workflow status
Throws:
PortalException - if the user did not have permission to view the web content article or if a matching web content article could not be found
SystemException - if a system exception occurred
RemoteException

getLatestArticle

public static JournalArticleSoap getLatestArticle(long groupId,
                                                  String articleId,
                                                  int status)
                                           throws RemoteException
Returns the latest web content article matching the group, article ID, and workflow status.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
status - the web content article's workflow status. For more information see WorkflowConstants for constants starting with the "STATUS_" prefix.
Returns:
the latest matching web content article
Throws:
PortalException - if the user did not have permission to view the web content article or if a matching web content article could not be found
SystemException - if a system exception occurred
RemoteException

getLatestArticle

public static JournalArticleSoap getLatestArticle(long groupId,
                                                  String className,
                                                  long classPK)
                                           throws RemoteException
Returns the latest web content article matching the group, class name ID, and class PK.

Parameters:
groupId - the primary key of the web content article's group
className - 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 otherwise
classPK - 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 otherwise
Returns:
the latest matching web content article
Throws:
PortalException - if a matching web content article could not be found or if the user did not have permission to view the web content article
SystemException - if a system exception occurred
RemoteException

moveArticle

public static void moveArticle(long groupId,
                               String articleId,
                               long newFolderId)
                        throws RemoteException
Moves all versions of the the web content article matching the group and article ID to the folder.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
newFolderId - the primary key of the web content article's new folder
Throws:
PortalException - 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 folder
SystemException - if a system exception occurred
RemoteException

moveArticleFromTrash

public static JournalArticleSoap moveArticleFromTrash(long groupId,
                                                      long resourcePrimKey,
                                                      long newFolderId,
                                                      ServiceContext serviceContext)
                                               throws RemoteException
Moves the web content article from the Recycle Bin to the folder.

Parameters:
groupId - the primary key of the web content article's group
resourcePrimKey - the primary key of the resource instance
newFolderId - the primary key of the web content article's new folder
serviceContext - 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.
Returns:
the updated web content article, which was moved from the Recycle Bin to the folder
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

moveArticleFromTrash

public static JournalArticleSoap moveArticleFromTrash(long groupId,
                                                      String articleId,
                                                      long newFolderId,
                                                      ServiceContext serviceContext)
                                               throws RemoteException
Moves the web content article from the Recycle Bin to the folder.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
newFolderId - the primary key of the web content article's new folder
serviceContext - 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.
Returns:
the updated web content article, which was moved from the Recycle Bin to the folder
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

moveArticleToTrash

public static JournalArticleSoap moveArticleToTrash(long groupId,
                                                    String articleId)
                                             throws RemoteException
Moves the latest version of the web content article matching the group and article ID to the recycle bin.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
Returns:
the moved web content article or null if no matching article was found
Throws:
PortalException - if the user did not have permission to move the article to the Recycle Bin or if a portal exception occurred
SystemException - if a system exception occurred
RemoteException

removeArticleLocale

public static void removeArticleLocale(long companyId,
                                       String languageId)
                                throws RemoteException
Removes the web content of all the company's web content articles matching the language.

Parameters:
companyId - the primary key of the web content article's company
languageId - the primary key of the language locale to remove
Throws:
PortalException - 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 articles
SystemException - if a system exception occurred
RemoteException

removeArticleLocale

public static JournalArticleSoap removeArticleLocale(long groupId,
                                                     String articleId,
                                                     double version,
                                                     String languageId)
                                              throws RemoteException
Removes the web content of the web content article matching the group, article ID, and version, and language.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
version - the web content article's version
languageId - the primary key of the language locale to remove
Returns:
the updated web content article with the locale removed
Throws:
PortalException - if the user did not have permission to update the web content article or if a matching web content article could not be found
SystemException - if a system exception occurred
RemoteException

restoreArticleFromTrash

public static void restoreArticleFromTrash(long resourcePrimKey)
                                    throws RemoteException
Restores the web content article associated with the resource primary key from the Recycle Bin.

Parameters:
resourcePrimKey - the primary key of the resource instance
Throws:
PortalException - 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 occurred
SystemException - if a system exception occurred
RemoteException

restoreArticleFromTrash

public static void restoreArticleFromTrash(long groupId,
                                           String articleId)
                                    throws RemoteException
Restores the web content article from the Recycle Bin.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
Throws:
PortalException - 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 occurred
SystemException - if a system exception occurred
RemoteException

search

public static JournalArticleSoap[] search(long companyId,
                                          long groupId,
                                          Long[] folderIds,
                                          long classNameId,
                                          String keywords,
                                          Double version,
                                          String type,
                                          String ddmStructureKey,
                                          String ddmTemplateKey,
                                          Date displayDateGT,
                                          Date displayDateLT,
                                          int status,
                                          Date reviewDate,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws RemoteException
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.

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

Parameters:
companyId - the primary key of the web content article's company
groupId - 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 otherwise
keywords - 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 otherwise
ddmTemplateKey - 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 return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
SystemException - if a system exception occurred
RemoteException

search

public static JournalArticleSoap[] search(long companyId,
                                          long groupId,
                                          Long[] folderIds,
                                          long classNameId,
                                          String articleId,
                                          Double version,
                                          String title,
                                          String description,
                                          String content,
                                          String type,
                                          String ddmStructureKey,
                                          String ddmTemplateKey,
                                          Date displayDateGT,
                                          Date displayDateLT,
                                          int status,
                                          Date reviewDate,
                                          boolean andOperator,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws RemoteException
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.

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

Parameters:
companyId - the primary key of the web content article's company
groupId - 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 otherwise
articleId - 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 otherwise
ddmTemplateKey - 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 return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
SystemException - if a system exception occurred
RemoteException

search

public static JournalArticleSoap[] search(long companyId,
                                          long groupId,
                                          Long[] folderIds,
                                          long classNameId,
                                          String articleId,
                                          Double version,
                                          String title,
                                          String description,
                                          String content,
                                          String type,
                                          String[] ddmStructureKeys,
                                          String[] ddmTemplateKeys,
                                          Date displayDateGT,
                                          Date displayDateLT,
                                          int status,
                                          Date reviewDate,
                                          boolean andOperator,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws RemoteException
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.

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

Parameters:
companyId - the primary key of the web content article's company
groupId - 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 otherwise
articleId - 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 otherwise
ddmTemplateKeys - 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 return
end - the upper bound of the range of web content articles to return (not inclusive)
obc - the comparator to order the web content articles
Returns:
the range of matching web content articles ordered by the comparator
Throws:
SystemException - if a system exception occurred
RemoteException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              Long[] folderIds,
                              long classNameId,
                              String keywords,
                              Double version,
                              String type,
                              String ddmStructureKey,
                              String ddmTemplateKey,
                              Date displayDateGT,
                              Date displayDateLT,
                              int status,
                              Date reviewDate)
                       throws RemoteException
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.

Parameters:
companyId - the primary key of the web content article's company
groupId - 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 otherwise
keywords - 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 otherwise
ddmTemplateKey - 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)
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              Long[] folderIds,
                              long classNameId,
                              String articleId,
                              Double version,
                              String title,
                              String description,
                              String content,
                              String type,
                              String ddmStructureKey,
                              String ddmTemplateKey,
                              Date displayDateGT,
                              Date displayDateLT,
                              int status,
                              Date reviewDate,
                              boolean andOperator)
                       throws RemoteException
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.

Parameters:
companyId - the primary key of the web content article's company
groupId - 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 otherwise
articleId - 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 otherwise
ddmTemplateKey - 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.
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

searchCount

public static int searchCount(long companyId,
                              long groupId,
                              Long[] folderIds,
                              long classNameId,
                              String articleId,
                              Double version,
                              String title,
                              String description,
                              String content,
                              String type,
                              String[] ddmStructureKeys,
                              String[] ddmTemplateKeys,
                              Date displayDateGT,
                              Date displayDateLT,
                              int status,
                              Date reviewDate,
                              boolean andOperator)
                       throws RemoteException
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.

Parameters:
companyId - the primary key of the web content article's company
groupId - 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 otherwise
articleId - 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 otherwise
ddmTemplateKeys - 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.
Returns:
the number of matching web content articles
Throws:
SystemException - if a system exception occurred
RemoteException

subscribe

public static void subscribe(long groupId)
                      throws RemoteException
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.

Parameters:
groupId - the primary key of the group
Throws:
PortalException - if the user did not have permission to subscribe to the web content article or if a matching user or group could not be found
SystemException - if a system exception occurred
RemoteException

unsubscribe

public static void unsubscribe(long groupId)
                        throws RemoteException
Unsubscribes the user from notifications for the web content article matching the group.

Parameters:
groupId - the primary key of the group
Throws:
PortalException - if the user did not have permission to subscribe to the web content article or if a matching user or subscription could not be found
SystemException - if a system exception occurred
RemoteException

updateArticle

public static JournalArticleSoap updateArticle(long userId,
                                               long groupId,
                                               long folderId,
                                               String articleId,
                                               double version,
                                               String[] titleMapLanguageIds,
                                               String[] titleMapValues,
                                               String[] descriptionMapLanguageIds,
                                               String[] descriptionMapValues,
                                               String content,
                                               String layoutUuid,
                                               ServiceContext serviceContext)
                                        throws RemoteException
Updates the web content article matching the version, replacing its folder, title, description, content, and layout UUID.

Parameters:
userId - the primary key of the user updating the web content article
groupId - the primary key of the web content article's group
folderId - the primary key of the web content article folder
articleId - the primary key of the web content article
version - the web content article's version
titleMap - the web content article's locales and localized titles
descriptionMap - the web content article's locales and localized descriptions
content - 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 page
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.
Returns:
the updated web content article
Throws:
PortalException - if a user with the primary key or a matching web content article could not be found, or if a portal exception occurred
SystemException - if a system exception occurred
RemoteException

updateArticle

public static JournalArticleSoap updateArticle(long groupId,
                                               long folderId,
                                               String articleId,
                                               double version,
                                               String content,
                                               ServiceContext serviceContext)
                                        throws RemoteException
Updates the web content article matching the version, replacing its folder and content.

Parameters:
groupId - the primary key of the web content article's group
folderId - the primary key of the web content article folder
articleId - the primary key of the web content article
version - the web content article's version
content - 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.
Returns:
the updated web content article
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

updateContent

public static JournalArticleSoap updateContent(long groupId,
                                               String articleId,
                                               double version,
                                               String content)
                                        throws RemoteException
Updates the web content article matching the group, article ID, and version, replacing its content.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
version - the web content article's version
content - the HTML content wrapped in XML. For more information, see the content example in the class description for JournalArticleLocalServiceImpl.
Returns:
the updated web content article
Throws:
PortalException - if the user did not have permission to update the web content article or if a matching web content article could not be found
SystemException - if a system exception occurred
RemoteException

updateStatus

public static JournalArticleSoap updateStatus(long groupId,
                                              String articleId,
                                              double version,
                                              int status,
                                              String articleURL,
                                              ServiceContext serviceContext)
                                       throws RemoteException
Updates the workflow status of the web content article matching the group, article ID, and version.

Parameters:
groupId - the primary key of the web content article's group
articleId - the primary key of the web content article
version - the web content article's version
status - 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 URL
serviceContext - 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.
Returns:
the updated web content article
Throws:
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 occurred
SystemException - if a system exception occurred
RemoteException

Liferay 6.2-ce-ga5