|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.journal.service.JournalArticleServiceWrapper
@ProviderType public class JournalArticleServiceWrapper
Provides a wrapper for JournalArticleService
.
JournalArticleService
Constructor Summary | |
---|---|
JournalArticleServiceWrapper(JournalArticleService journalArticleService)
|
Method Summary | |
---|---|
JournalArticle |
addArticle(long groupId,
long folderId,
long classNameId,
long classPK,
String articleId,
boolean autoArticleId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
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,
boolean smallImage,
String smallImageURL,
File smallFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
Adds a web content article with additional parameters. |
JournalArticle |
addArticle(long groupId,
long folderId,
long classNameId,
long classPK,
String articleId,
boolean autoArticleId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
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. |
JournalArticle |
copyArticle(long groupId,
String oldArticleId,
String newArticleId,
boolean autoArticleId,
double version)
Copies the web content article matching the group, article ID, and version. |
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. |
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. |
JournalArticle |
expireArticle(long groupId,
String articleId,
double version,
String articleURL,
ServiceContext serviceContext)
Expires the web content article matching the group, article ID, and version. |
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. |
JournalArticle |
fetchArticle(long groupId,
String articleId)
|
JournalArticle |
getArticle(long id)
Returns the web content article with the ID. |
JournalArticle |
getArticle(long groupId,
String articleId)
Returns the latest approved web content article, or the latest unapproved article if none are approved. |
JournalArticle |
getArticle(long groupId,
String articleId,
double version)
Returns the web content article matching the group, article ID, and version. |
JournalArticle |
getArticle(long groupId,
String className,
long classPK)
Returns the web content article matching the group, class name, and class PK. |
JournalArticle |
getArticleByUrlTitle(long groupId,
String urlTitle)
Returns the latest web content article that is approved, or the latest unapproved article if none are approved. |
String |
getArticleContent(long groupId,
String articleId,
double version,
String languageId,
ThemeDisplay themeDisplay)
Returns the web content matching the group, article ID, and version. |
String |
getArticleContent(long groupId,
String articleId,
String languageId,
ThemeDisplay themeDisplay)
Returns the latest web content matching the group and article ID. |
List<JournalArticle> |
getArticles(long groupId,
long folderId)
Returns all the web content articles matching the group and folder. |
List<JournalArticle> |
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. |
List<JournalArticle> |
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. |
List<JournalArticle> |
getArticlesByLayoutUuid(long groupId,
String layoutUuid)
Returns all the web content articles matching the group and layout UUID. |
List<JournalArticle> |
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. |
List<JournalArticle> |
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. |
int |
getArticlesCount(long groupId,
long folderId)
Returns the number of web content articles matching the group and folder. |
int |
getArticlesCount(long groupId,
long folderId,
int status)
|
int |
getArticlesCountByArticleId(long groupId,
String articleId)
Returns the number of web content articles matching the group and article ID. |
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. |
int |
getArticlesCountByStructureId(long groupId,
String ddmStructureKey)
Returns the number of web content articles matching the group, default class name ID, and DDM structure key. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
JournalArticle |
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. |
int |
getFoldersAndArticlesCount(long groupId,
List<Long> folderIds)
Returns the number of folders containing web content articles belonging to the group. |
List<JournalArticle> |
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. |
List<JournalArticle> |
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. |
List<JournalArticle> |
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. |
int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId)
Returns the number of web content articles matching the group, user, and the root folder or any of its subfolders. |
int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status)
|
int |
getGroupArticlesCount(long groupId,
long userId,
long rootFolderId,
int status,
boolean includeOwner)
Returns the number of web content articles matching the group, user, the root folder or any of its subfolders. |
JournalArticle |
getLatestArticle(long resourcePrimKey)
Returns the latest web content article matching the resource primary key, preferring articles with approved workflow status. |
JournalArticle |
getLatestArticle(long groupId,
String articleId,
int status)
Returns the latest web content article matching the group, article ID, and workflow status. |
JournalArticle |
getLatestArticle(long groupId,
String className,
long classPK)
Returns the latest web content article matching the group, class name ID, and class PK. |
JournalArticleService |
getWrappedJournalArticleService()
Deprecated. As of 6.1.0, replaced by getWrappedService() |
JournalArticleService |
getWrappedService()
|
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. |
JournalArticle |
moveArticleFromTrash(long groupId,
long resourcePrimKey,
long newFolderId,
ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to the folder. |
JournalArticle |
moveArticleFromTrash(long groupId,
String articleId,
long newFolderId,
ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to the folder. |
JournalArticle |
moveArticleToTrash(long groupId,
String articleId)
Moves the latest version of the web content article matching the group and article ID to the recycle bin. |
void |
removeArticleLocale(long companyId,
String languageId)
Removes the web content of all the company's web content articles matching the language. |
JournalArticle |
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. |
void |
restoreArticleFromTrash(long resourcePrimKey)
Restores the web content article associated with the resource primary key from the Recycle Bin. |
void |
restoreArticleFromTrash(long groupId,
String articleId)
Restores the web content article from the Recycle Bin. |
Hits |
search(long groupId,
long creatorUserId,
int status,
int start,
int end)
|
List<JournalArticle> |
search(long companyId,
long groupId,
List<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. |
List<JournalArticle> |
search(long companyId,
long groupId,
List<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. |
List<JournalArticle> |
search(long companyId,
long groupId,
List<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. |
int |
searchCount(long companyId,
long groupId,
List<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. |
int |
searchCount(long companyId,
long groupId,
List<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. |
int |
searchCount(long companyId,
long groupId,
List<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. |
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setWrappedJournalArticleService(JournalArticleService journalArticleService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.journal.service.JournalArticleService) |
void |
setWrappedService(JournalArticleService journalArticleService)
|
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. |
void |
unsubscribe(long groupId)
Unsubscribes the user from notifications for the web content article matching the group. |
JournalArticle |
updateArticle(long userId,
long groupId,
long folderId,
String articleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String layoutUuid,
ServiceContext serviceContext)
Updates the web content article matching the version, replacing its folder, title, description, content, and layout UUID. |
JournalArticle |
updateArticle(long groupId,
long folderId,
String articleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
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,
boolean smallImage,
String smallImageURL,
File smallFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
Updates the web content article with additional parameters. |
JournalArticle |
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. |
JournalArticle |
updateArticleTranslation(long groupId,
String articleId,
double version,
Locale locale,
String title,
String description,
String content,
Map<String,byte[]> images)
Deprecated. As of 6.2.0, replaced by updateArticleTranslation(long, String, double, Locale,
String, String, String, Map, ServiceContext) |
JournalArticle |
updateArticleTranslation(long groupId,
String articleId,
double version,
Locale locale,
String title,
String description,
String content,
Map<String,byte[]> images,
ServiceContext serviceContext)
Updates the translation of the web content article. |
JournalArticle |
updateContent(long groupId,
String articleId,
double version,
String content)
Updates the web content article matching the group, article ID, and version, replacing its content. |
JournalArticle |
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 |
---|
public JournalArticleServiceWrapper(JournalArticleService journalArticleService)
Method Detail |
---|
public String getBeanIdentifier()
getBeanIdentifier
in interface JournalArticleService
public void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier
in interface JournalArticleService
beanIdentifier
- the Spring bean ID for this beanpublic JournalArticle addArticle(long groupId, long folderId, long classNameId, long classPK, String articleId, boolean autoArticleId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, 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, boolean smallImage, String smallImageURL, File smallFile, Map<String,byte[]> images, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
addArticle
in interface JournalArticleService
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 searchablesmallImage
- whether the web content article has a small imagesmallImageURL
- the web content article's small image URLsmallFile
- the web content article's small image fileimages
- the web content's imagesarticleURL
- the web content article's accessible URLserviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, expando bridge
attributes, guest permissions, group permissions, asset category
IDs, asset tag names, asset link entry IDs, 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 occurred
SystemException
- if a system exception occurredpublic JournalArticle addArticle(long groupId, long folderId, long classNameId, long classPK, String articleId, boolean autoArticleId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, 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 PortalException, SystemException
addArticle
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic JournalArticle copyArticle(long groupId, String oldArticleId, String newArticleId, boolean autoArticleId, double version) throws PortalException, SystemException
copyArticle
in interface JournalArticleService
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 version
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 occurredpublic void deleteArticle(long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
deleteArticle
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic void deleteArticle(long groupId, String articleId, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
deleteArticle
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic JournalArticle expireArticle(long groupId, String articleId, double version, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
expireArticle
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic void expireArticle(long groupId, String articleId, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
journal.article.expire.all.versions
portal property is
true
, otherwise expiring only its latest approved version.
expireArticle
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic JournalArticle fetchArticle(long groupId, String articleId) throws PortalException, SystemException
fetchArticle
in interface JournalArticleService
PortalException
SystemException
public JournalArticle getArticle(long id) throws PortalException, SystemException
getArticle
in interface JournalArticleService
id
- the primary key of the web content article
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 occurredpublic JournalArticle getArticle(long groupId, String articleId) throws PortalException, SystemException
getArticle
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content article
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 occurredpublic JournalArticle getArticle(long groupId, String articleId, double version) throws PortalException, SystemException
getArticle
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's version
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 occurredpublic JournalArticle getArticle(long groupId, String className, long classPK) throws PortalException, SystemException
getArticle
in interface JournalArticleService
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
otherwise
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 occurredpublic JournalArticle getArticleByUrlTitle(long groupId, String urlTitle) throws PortalException, SystemException
getArticleByUrlTitle
in interface JournalArticleService
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL title
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 occurredpublic String getArticleContent(long groupId, String articleId, double version, String languageId, ThemeDisplay themeDisplay) throws PortalException, SystemException
getArticleContent
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlanguageId
- the primary key of the language translation to getthemeDisplay
- the theme display
PortalException
- if the user did not have permission to view the
web content article, if a matching web content article or DDM
template could not be found, or if a portal exception occurred
SystemException
- if a system exception occurredpublic String getArticleContent(long groupId, String articleId, String languageId, ThemeDisplay themeDisplay) throws PortalException, SystemException
getArticleContent
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlelanguageId
- the primary key of the language translation to getthemeDisplay
- the theme display
PortalException
- if the user did not have permission to view the
web content article, if a matching web content article or DDM
template could not be found, or if a portal exception occurred
SystemException
- if a system exception occurredpublic List<JournalArticle> getArticles(long groupId, long folderId) throws SystemException
getArticles
in interface JournalArticleService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folder
SystemException
- if a system exception occurredpublic List<JournalArticle> getArticles(long groupId, long folderId, int start, int end, OrderByComparator obc) throws SystemException
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.
getArticles
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic List<JournalArticle> getArticlesByArticleId(long groupId, String articleId, int start, int end, OrderByComparator obc) throws SystemException
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.
getArticlesByArticleId
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic List<JournalArticle> getArticlesByLayoutUuid(long groupId, String layoutUuid) throws SystemException
getArticlesByLayoutUuid
in interface JournalArticleService
groupId
- the primary key of the web content article's grouplayoutUuid
- the unique string identifying the web content
article's display page
SystemException
- if a system exception occurredpublic List<JournalArticle> getArticlesByStructureId(long groupId, long classNameId, String ddmStructureKey, int status, int start, int end, OrderByComparator obc) throws SystemException
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.
getArticlesByStructureId
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic List<JournalArticle> getArticlesByStructureId(long groupId, String ddmStructureKey, int start, int end, OrderByComparator obc) throws SystemException
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.
getArticlesByStructureId
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic int getArticlesCount(long groupId, long folderId) throws SystemException
getArticlesCount
in interface JournalArticleService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folder
SystemException
- if a system exception occurredpublic int getArticlesCount(long groupId, long folderId, int status) throws SystemException
getArticlesCount
in interface JournalArticleService
SystemException
public int getArticlesCountByArticleId(long groupId, String articleId) throws SystemException
getArticlesCountByArticleId
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content article
SystemException
- if a system exception occurredpublic int getArticlesCountByStructureId(long groupId, long classNameId, String ddmStructureKey, int status) throws SystemException
getArticlesCountByStructureId
in interface JournalArticleService
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 occurredpublic int getArticlesCountByStructureId(long groupId, String ddmStructureKey) throws SystemException
getArticlesCountByStructureId
in interface JournalArticleService
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structure
SystemException
- if a system exception occurredpublic JournalArticle getDisplayArticleByUrlTitle(long groupId, String urlTitle) throws PortalException, SystemException
getDisplayArticleByUrlTitle
in interface JournalArticleService
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL title
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 occurredpublic int getFoldersAndArticlesCount(long groupId, List<Long> folderIds) throws SystemException
getFoldersAndArticlesCount
in interface JournalArticleService
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 occurredpublic List<JournalArticle> getGroupArticles(long groupId, long userId, long rootFolderId, int status, boolean includeOwner, int start, int end, OrderByComparator orderByComparator) throws PortalException, SystemException
getGroupArticles
in interface JournalArticleService
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
articles
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 occurredpublic List<JournalArticle> getGroupArticles(long groupId, long userId, long rootFolderId, int status, int start, int end, OrderByComparator orderByComparator) throws PortalException, SystemException
getGroupArticles
in interface JournalArticleService
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
articles
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 occurredpublic List<JournalArticle> getGroupArticles(long groupId, long userId, long rootFolderId, int start, int end, OrderByComparator orderByComparator) throws PortalException, SystemException
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.
getGroupArticles
in interface JournalArticleService
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
articles
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 occurredpublic int getGroupArticlesCount(long groupId, long userId, long rootFolderId) throws PortalException, SystemException
getGroupArticlesCount
in interface JournalArticleService
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
search
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 occurredpublic int getGroupArticlesCount(long groupId, long userId, long rootFolderId, int status) throws PortalException, SystemException
getGroupArticlesCount
in interface JournalArticleService
PortalException
SystemException
public int getGroupArticlesCount(long groupId, long userId, long rootFolderId, int status, boolean includeOwner) throws PortalException, SystemException
getGroupArticlesCount
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic JournalArticle getLatestArticle(long resourcePrimKey) throws PortalException, SystemException
getLatestArticle
in interface JournalArticleService
resourcePrimKey
- the primary key of the resource instance
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 occurredpublic JournalArticle getLatestArticle(long groupId, String articleId, int status) throws PortalException, SystemException
getLatestArticle
in interface JournalArticleService
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 found
SystemException
- if a system exception occurredpublic JournalArticle getLatestArticle(long groupId, String className, long classPK) throws PortalException, SystemException
getLatestArticle
in interface JournalArticleService
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
otherwise
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 occurredpublic void moveArticle(long groupId, String articleId, long newFolderId) throws PortalException, SystemException
moveArticle
in interface JournalArticleService
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
folder
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 occurredpublic JournalArticle moveArticleFromTrash(long groupId, long resourcePrimKey, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
moveArticleFromTrash
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic JournalArticle moveArticleFromTrash(long groupId, String articleId, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
moveArticleFromTrash
in interface JournalArticleService
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
occurred
SystemException
- if a system exception occurredpublic JournalArticle moveArticleToTrash(long groupId, String articleId) throws PortalException, SystemException
moveArticleToTrash
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content article
null
if no matching
article was found
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 occurredpublic void removeArticleLocale(long companyId, String languageId) throws PortalException, SystemException
removeArticleLocale
in interface JournalArticleService
companyId
- the primary key of the web content article's companylanguageId
- the primary key of the language locale to remove
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 occurredpublic JournalArticle removeArticleLocale(long groupId, String articleId, double version, String languageId) throws PortalException, SystemException
removeArticleLocale
in interface JournalArticleService
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 remove
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 occurredpublic void restoreArticleFromTrash(long resourcePrimKey) throws PortalException, SystemException
restoreArticleFromTrash
in interface JournalArticleService
resourcePrimKey
- the primary key of the resource instance
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 occurredpublic void restoreArticleFromTrash(long groupId, String articleId) throws PortalException, SystemException
restoreArticleFromTrash
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content article
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 occurredpublic Hits search(long groupId, long creatorUserId, int status, int start, int end) throws PortalException, SystemException
search
in interface JournalArticleService
PortalException
SystemException
public List<JournalArticle> search(long companyId, long groupId, List<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 SystemException
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.
search
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic List<JournalArticle> search(long companyId, long groupId, List<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 SystemException
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.
search
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic List<JournalArticle> search(long companyId, long groupId, List<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 SystemException
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.
search
in interface JournalArticleService
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 articles
SystemException
- if a system exception occurredpublic int searchCount(long companyId, long groupId, List<Long> folderIds, long classNameId, String keywords, Double version, String type, String ddmStructureKey, String ddmTemplateKey, Date displayDateGT, Date displayDateLT, int status, Date reviewDate) throws SystemException
searchCount
in interface JournalArticleService
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 occurredpublic int searchCount(long companyId, long groupId, List<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 SystemException
searchCount
in interface JournalArticleService
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 occurredpublic int searchCount(long companyId, long groupId, List<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 SystemException
searchCount
in interface JournalArticleService
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 occurredpublic void subscribe(long groupId) throws PortalException, SystemException
subscribe
in interface JournalArticleService
groupId
- the primary key of the group
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 occurredpublic void unsubscribe(long groupId) throws PortalException, SystemException
unsubscribe
in interface JournalArticleService
groupId
- the primary key of the group
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 occurredpublic JournalArticle updateArticle(long userId, long groupId, long folderId, String articleId, double version, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String content, String layoutUuid, ServiceContext serviceContext) throws PortalException, SystemException
updateArticle
in interface JournalArticleService
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
occurred
SystemException
- if a system exception occurredpublic JournalArticle updateArticle(long groupId, long folderId, String articleId, double version, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, 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, boolean smallImage, String smallImageURL, File smallFile, Map<String,byte[]> images, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
updateArticle
in interface JournalArticleService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderarticleId
- the primary key of the web content articleversion
- the web content article's versiontitleMap
- the web content article's locales and localized titlesdescriptionMap
- the web content article's locales and localized
descriptionscontent
- the HTML content wrapped in XML. For more information,
see the content example in the 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 is searchablesmallImage
- whether to update web content article's a small image.
A file must be passed in as smallImageFile
value,
otherwise the current small image is deleted.smallImageURL
- the web content article's small image URL
(optionally null
)smallFile
- the web content article's new small image file
(optionally null
). Must pass in
smallImage
value of true
to replace the
article's small image file.images
- the web content's images (optionally null
)articleURL
- the web content article's accessible URL (optionally
null
)serviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, 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
occurred
SystemException
- if a system exception occurredpublic JournalArticle updateArticle(long groupId, long folderId, String articleId, double version, String content, ServiceContext serviceContext) throws PortalException, SystemException
updateArticle
in interface JournalArticleService
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
occurred
SystemException
- if a system exception occurredpublic JournalArticle updateArticleTranslation(long groupId, String articleId, double version, Locale locale, String title, String description, String content, Map<String,byte[]> images) throws PortalException, SystemException
updateArticleTranslation(long, String, double, Locale,
String, String, String, Map, ServiceContext)
updateArticleTranslation
in interface JournalArticleService
PortalException
SystemException
public JournalArticle updateArticleTranslation(long groupId, String articleId, double version, Locale locale, String title, String description, String content, Map<String,byte[]> images, ServiceContext serviceContext) throws PortalException, SystemException
updateArticleTranslation
in interface JournalArticleService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlocale
- the locale of the web content article's display templatetitle
- the translated web content article titledescription
- the translated web content article descriptioncontent
- the HTML content wrapped in XML. For more information,
see the content example in the class description for JournalArticleLocalServiceImpl
.images
- the web content's imagesserviceContext
- the service context to be applied. Can set the
modification date and "urlTitle" attribute for the web content
article.
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 occurredpublic JournalArticle updateContent(long groupId, String articleId, double version, String content) throws PortalException, SystemException
updateContent
in interface JournalArticleService
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 found
SystemException
- if a system exception occurredpublic JournalArticle updateStatus(long groupId, String articleId, double version, int status, String articleURL, ServiceContext serviceContext) throws PortalException, SystemException
updateStatus
in interface JournalArticleService
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 occurred
SystemException
- if a system exception occurredpublic JournalArticleService getWrappedJournalArticleService()
getWrappedService()
public void setWrappedJournalArticleService(JournalArticleService journalArticleService)
setWrappedService(com.liferay.portlet.journal.service.JournalArticleService)
public JournalArticleService getWrappedService()
getWrappedService
in interface ServiceWrapper<JournalArticleService>
public void setWrappedService(JournalArticleService journalArticleService)
setWrappedService
in interface ServiceWrapper<JournalArticleService>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |