public class JournalArticleLocalServiceWrapper extends java.lang.Object implements JournalArticleLocalService, com.liferay.portal.kernel.service.ServiceWrapper<JournalArticleLocalService>
JournalArticleLocalService
.JournalArticleLocalService
Constructor and Description |
---|
JournalArticleLocalServiceWrapper() |
JournalArticleLocalServiceWrapper(JournalArticleLocalService journalArticleLocalService) |
Modifier and Type | Method and Description |
---|---|
JournalArticle |
addArticle(long userId,
long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addArticle(String, long, long, long, long, long, String,
boolean, double, Map, Map, Map, String, String, String,
String, int, int, int, int, int, int, int, int, int, int,
boolean, int, int, int, int, int, boolean, boolean, boolean,
String, File, Map, String, ServiceContext) |
JournalArticle |
addArticle(long userId,
long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addArticle(String, long, long, long, long, long, String,
boolean, double, Map, Map, Map, String, String, String,
String, int, int, int, int, int, int, int, int, int, int,
boolean, int, int, int, int, int, boolean, boolean, boolean,
String, File, Map, String, ServiceContext) |
JournalArticle |
addArticle(long userId,
long groupId,
long folderId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addArticle(String, long, long, long, Map, Map, String,
String, String, ServiceContext) |
JournalArticle |
addArticle(java.lang.String externalReferenceCode,
long userId,
long groupId,
long folderId,
long classNameId,
long classPK,
java.lang.String articleId,
boolean autoArticleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a web content article with additional parameters.
|
JournalArticle |
addArticle(java.lang.String externalReferenceCode,
long userId,
long groupId,
long folderId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a web content article.
|
JournalArticle |
addArticleDefaultValues(long userId,
long groupId,
long classNameId,
long classPK,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
addArticleResources(JournalArticle article,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the web content article.
|
void |
addArticleResources(JournalArticle article,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
Adds the model resources with the permissions to the web content article.
|
void |
addArticleResources(long groupId,
java.lang.String articleId,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the most recently created web content article.
|
JournalArticle |
addJournalArticle(JournalArticle journalArticle)
Adds the journal article to the database.
|
JournalArticle |
checkArticleResourcePrimKey(long groupId,
java.lang.String articleId,
double version)
Returns the web content article with the group, article ID, and version.
|
void |
checkArticles()
Checks all web content articles by handling their expirations and sending
review notifications based on their current workflow.
|
JournalArticle |
copyArticle(long userId,
long groupId,
java.lang.String oldArticleId,
java.lang.String newArticleId,
boolean autoArticleId,
double version)
Copies the web content article matching the group, article ID, and
version.
|
JournalArticle |
createJournalArticle(long id)
Creates a new journal article with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
JournalArticle |
deleteArticle(JournalArticle article)
Deletes the web content article and its resources.
|
JournalArticle |
deleteArticle(JournalArticle article,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes the web content article and its resources, optionally sending
email notifying denial of the article if it had not yet been approved.
|
JournalArticle |
deleteArticle(long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes the web content article and its resources matching the group,
article ID, and version, optionally sending email notifying denial of the
web content article if it had not yet been approved.
|
void |
deleteArticle(long groupId,
java.lang.String articleId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deletes all web content articles and their resources matching the group
and article ID, optionally sending email notifying denial of article if
it had not yet been approved.
|
void |
deleteArticleDefaultValues(long groupId,
java.lang.String articleId,
java.lang.String ddmStructureKey) |
void |
deleteArticles(long groupId)
Deletes all the group's web content articles and resources.
|
void |
deleteArticles(long groupId,
long folderId)
Deletes all the group's web content articles and resources in the folder,
including recycled articles.
|
void |
deleteArticles(long groupId,
long folderId,
boolean includeTrashedEntries)
Deletes all the group's web content articles and resources in the folder,
optionally including recycled articles.
|
void |
deleteArticles(long groupId,
java.lang.String className,
long classPK)
Deletes all the group's web content articles and resources matching the
class name and class primary key.
|
JournalArticle |
deleteJournalArticle(JournalArticle journalArticle)
Deletes the journal article from the database.
|
JournalArticle |
deleteJournalArticle(long id)
Deletes the journal article with the primary key from the database.
|
void |
deleteLayoutArticleReferences(long groupId,
java.lang.String layoutUuid)
Deletes the layout's association with the web content articles for the
group.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
JournalArticle |
expireArticle(long userId,
long groupId,
java.lang.String articleId,
double version,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Expires the web content article matching the group, article ID, and
version.
|
void |
expireArticle(long userId,
long groupId,
java.lang.String articleId,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Expires the web content article matching the group and article ID,
expiring all of its versions if the
journal.article.expire.all.versions portal property is
true , otherwise expiring only its latest approved version. |
JournalArticle |
fetchArticle(long id)
Returns the web content article with the ID.
|
JournalArticle |
fetchArticle(long groupId,
java.lang.String articleId) |
JournalArticle |
fetchArticle(long groupId,
java.lang.String articleId,
double version)
Returns the web content article matching the group, article ID, and
version.
|
JournalArticle |
fetchArticleByUrlTitle(long groupId,
java.lang.String urlTitle) |
JournalArticle |
fetchArticleByUrlTitle(long groupId,
java.lang.String urlTitle,
double version) |
JournalArticle |
fetchDisplayArticle(long groupId,
java.lang.String articleId) |
JournalArticle |
fetchJournalArticle(long id) |
JournalArticle |
fetchJournalArticleByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the journal article matching the UUID and group.
|
JournalArticle |
fetchLatestArticle(long resourcePrimKey) |
JournalArticle |
fetchLatestArticle(long resourcePrimKey,
int status) |
JournalArticle |
fetchLatestArticle(long resourcePrimKey,
int[] statuses) |
JournalArticle |
fetchLatestArticle(long resourcePrimKey,
int status,
boolean preferApproved)
Returns the latest web content article matching the resource primary key
and workflow status, optionally preferring articles with approved
workflow status.
|
JournalArticle |
fetchLatestArticle(long groupId,
java.lang.String articleId,
int status)
Returns the latest web content article matching the group, article ID,
and workflow status.
|
JournalArticle |
fetchLatestArticleByExternalReferenceCode(long groupId,
java.lang.String externalReferenceCode)
Returns the latest web content article matching the group and the
external reference code.
|
JournalArticle |
fetchLatestArticleByUrlTitle(long groupId,
java.lang.String urlTitle,
int status) |
JournalArticle |
fetchLatestIndexableArticle(long resourcePrimKey)
Returns the latest indexable web content article matching the resource
primary key.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
JournalArticle |
getArticle(long id)
Returns the web content article with the ID.
|
JournalArticle |
getArticle(long groupId,
java.lang.String articleId)
Returns the latest approved web content article, or the latest unapproved
article if none are approved.
|
JournalArticle |
getArticle(long groupId,
java.lang.String articleId,
double version)
Returns the web content article matching the group, article ID, and
version.
|
JournalArticle |
getArticle(long groupId,
java.lang.String className,
long classPK)
Returns the web content article matching the group, class name, and class
PK.
|
JournalArticle |
getArticleByUrlTitle(long groupId,
java.lang.String urlTitle)
Returns the latest web content article that is approved, or the latest
unapproved article if none are approved.
|
java.lang.String |
getArticleContent(JournalArticle article,
java.lang.String ddmTemplateKey,
java.lang.String viewMode,
java.lang.String languageId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns the web content from the web content article associated with the
portlet request model and the DDM template.
|
java.lang.String |
getArticleContent(long groupId,
java.lang.String articleId,
double version,
java.lang.String viewMode,
java.lang.String ddmTemplateKey,
java.lang.String languageId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns the web content from the web content article matching the group,
article ID, and version, and associated with the portlet request model
and the DDM template.
|
java.lang.String |
getArticleContent(long groupId,
java.lang.String articleId,
java.lang.String viewMode,
java.lang.String ddmTemplateKey,
java.lang.String languageId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns the latest web content from the web content article matching the
group and article ID, and associated with the portlet request model and
the DDM template.
|
java.lang.String |
getArticleDescription(long articlePK,
java.util.Locale locale) |
java.lang.String |
getArticleDescription(long articlePK,
java.lang.String languageId) |
java.util.Map<java.util.Locale,java.lang.String> |
getArticleDescriptionMap(long articlePK) |
JournalArticleDisplay |
getArticleDisplay(JournalArticle article,
java.lang.String ddmTemplateKey,
java.lang.String viewMode,
java.lang.String languageId,
int page,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the specified page of the
latest version of the web content article, based on the DDM template.
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
java.lang.String articleId,
double version,
java.lang.String ddmTemplateKey,
java.lang.String viewMode,
java.lang.String languageId,
int page,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the specified page of the
specified version of the web content article matching the group, article
ID, and DDM template.
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
java.lang.String articleId,
double version,
java.lang.String ddmTemplateKey,
java.lang.String viewMode,
java.lang.String languageId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the first page of the specified
version of the web content article matching the group, article ID, and
DDM template.
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
java.lang.String articleId,
java.lang.String viewMode,
java.lang.String languageId,
int page,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the specified page of the
latest version of the web content article matching the group and article
ID.
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
java.lang.String articleId,
java.lang.String ddmTemplateKey,
java.lang.String viewMode,
java.lang.String languageId,
int page,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the specified page of the
latest version of the web content article matching the group, article ID,
and DDM template.
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
java.lang.String articleId,
java.lang.String ddmTemplateKey,
java.lang.String viewMode,
java.lang.String languageId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the first page of the latest
version of the web content article matching the group, article ID, and
DDM template.
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
java.lang.String articleId,
java.lang.String viewMode,
java.lang.String languageId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns a web content article display for the first page of the latest
version of the web content article matching the group and article ID.
|
java.util.List<java.lang.String> |
getArticleLocalizationLanguageIds(long articlePK) |
java.util.List<JournalArticle> |
getArticles()
Returns all the web content articles present in the system.
|
java.util.List<JournalArticle> |
getArticles(long groupId)
Returns all the web content articles belonging to the group.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
int start,
int end)
Returns a range of all the web content articles belonging to the group.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles belonging to the
group.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
long folderId)
Returns all the web content articles matching the group and folder.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
long folderId,
int start,
int end)
Returns a range of all the web content articles matching the group and
folder.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
long folderId,
int status,
int start,
int end)
Returns a range of all the web content articles matching the group,
folder, and status.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
group and folder.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
java.lang.String articleId)
Returns all the web content articles matching the group and article ID.
|
java.util.List<JournalArticle> |
getArticles(long groupId,
java.lang.String articleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) |
java.util.List<JournalArticle> |
getArticlesByResourcePrimKey(long resourcePrimKey)
Returns all the web content articles matching the resource primary key.
|
java.util.List<JournalArticle> |
getArticlesBySmallImageId(long smallImageId)
Returns all the web content articles matching the small image ID.
|
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) |
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
long classNameId,
java.lang.String ddmStructureKey,
java.util.Locale locale,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) |
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) |
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) |
java.util.List<JournalArticle> |
getArticlesByStructureId(long groupId,
java.lang.String ddmStructureKey,
java.util.Locale locale,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator) |
java.util.List<java.lang.Long> |
getArticlesClassPKsWithDefaultDisplayPage(long groupId,
long classTypeId) |
int |
getArticlesCount(long groupId)
Returns the number of web content articles belonging to the group.
|
int |
getArticlesCount(long groupId,
long folderId)
Returns the number of web content articles matching the group and folder.
|
int |
getArticlesCount(long groupId,
long folderId,
int status)
Returns the number of web content articles matching the group, folder,
and status.
|
int |
getArticlesCount(long groupId,
java.lang.String articleId) |
java.lang.String |
getArticleTitle(long articlePK,
java.util.Locale locale) |
java.lang.String |
getArticleTitle(long articlePK,
java.lang.String languageId) |
java.util.Map<java.util.Locale,java.lang.String> |
getArticleTitleMap(long articlePK) |
java.util.List<JournalArticle> |
getCompanyArticles(long companyId,
double version,
int status,
int start,
int end)
Returns an ordered range of all the web content articles matching the
company, version, and workflow status.
|
java.util.List<JournalArticle> |
getCompanyArticles(long companyId,
int status,
int start,
int end)
Returns an ordered range of all the web content articles matching the
company and workflow status.
|
int |
getCompanyArticlesCount(long companyId,
double version,
int status,
int start,
int end)
Returns the number of web content articles matching the company, version,
and workflow status.
|
int |
getCompanyArticlesCount(long companyId,
int status)
Returns the number of web content articles matching the company and
workflow status.
|
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<JournalArticle> |
getCTPersistence() |
JournalArticle |
getDisplayArticle(long groupId,
java.lang.String articleId)
Returns the matching web content article currently displayed or next to
be displayed if no article is currently displayed.
|
JournalArticle |
getDisplayArticleByUrlTitle(long groupId,
java.lang.String urlTitle)
Returns the web content article matching the URL title that is currently
displayed or next to be displayed if no article is currently displayed.
|
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
java.util.List<java.lang.Long> |
getGroupIdsByUrlTitle(long companyId,
java.lang.String urlTitle) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.util.List<JournalArticle> |
getIndexableArticlesByDDMStructureKey(java.lang.String[] ddmStructureKeys) |
java.util.List<JournalArticle> |
getIndexableArticlesByDDMStructureKey(java.lang.String[] ddmStructureKeys,
java.util.Locale locale) |
java.util.List<JournalArticle> |
getIndexableArticlesByResourcePrimKey(long resourcePrimKey)
Returns the indexable web content articles matching the resource primary
key.
|
JournalArticle |
getJournalArticle(long id)
Returns the journal article with the primary key.
|
JournalArticle |
getJournalArticleByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the journal article matching the UUID and group.
|
java.util.List<JournalArticle> |
getJournalArticles(int start,
int end)
Returns a range of all the journal articles.
|
java.util.List<JournalArticle> |
getJournalArticlesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the journal articles matching the UUID and company.
|
java.util.List<JournalArticle> |
getJournalArticlesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns a range of journal articles matching the UUID and company.
|
int |
getJournalArticlesCount()
Returns the number of journal articles.
|
JournalArticle |
getLatestArticle(long resourcePrimKey)
Returns the latest web content article matching the resource primary key,
preferring articles with approved workflow status.
|
JournalArticle |
getLatestArticle(long resourcePrimKey,
int status)
Returns the latest web content article matching the resource primary key
and workflow status, preferring articles with approved workflow status.
|
JournalArticle |
getLatestArticle(long resourcePrimKey,
int status,
boolean preferApproved)
Returns the latest web content article matching the resource primary key
and workflow status, optionally preferring articles with approved
workflow status.
|
JournalArticle |
getLatestArticle(long groupId,
java.lang.String articleId)
Returns the latest web content article with the group and article ID.
|
JournalArticle |
getLatestArticle(long groupId,
java.lang.String articleId,
int status)
Returns the latest web content article matching the group, article ID,
and workflow status.
|
JournalArticle |
getLatestArticle(long groupId,
java.lang.String className,
long classPK)
Returns the latest web content article matching the group, class name ID,
and class PK.
|
JournalArticle |
getLatestArticleByExternalReferenceCode(long groupId,
java.lang.String externalReferenceCode)
Returns the latest web content article matching the group and the
external reference code.
|
JournalArticle |
getLatestArticleByUrlTitle(long groupId,
java.lang.String urlTitle,
int status)
Returns the latest web content article matching the group, URL title, and
workflow status.
|
double |
getLatestVersion(long groupId,
java.lang.String articleId)
Returns the latest version number of the web content with the group and
article ID.
|
double |
getLatestVersion(long groupId,
java.lang.String articleId,
int status)
Returns the latest version number of the web content with the group,
article ID, and workflow status.
|
java.lang.Class<JournalArticle> |
getModelClass() |
java.util.List<JournalArticle> |
getNoAssetArticles() |
java.util.List<JournalArticle> |
getNoPermissionArticles() |
int |
getNotInTrashArticlesCount(long groupId,
long folderId)
Returns the number of web content articles that are not recycled.
|
JournalArticle |
getOldestArticle(long groupId,
java.lang.String articleId)
Returns the oldest web content article with the group and article ID.
|
JournalArticle |
getOldestArticle(long groupId,
java.lang.String articleId,
int status)
Returns the oldest web content article matching the group, article ID,
and workflow status.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
java.util.List<? extends com.liferay.portal.kernel.model.PersistedModel> |
getPersistedModel(long resourcePrimKey) |
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
JournalArticle |
getPreviousApprovedArticle(JournalArticle article)
Returns the previously approved version of the web content article.
|
java.util.List<JournalArticle> |
getStructureArticles(long groupId,
java.lang.String ddmStructureKey)
Returns the web content articles matching the group and DDM structure
key.
|
java.util.List<JournalArticle> |
getStructureArticles(long groupId,
java.lang.String ddmStructureKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
group and DDM structure key.
|
java.util.List<JournalArticle> |
getStructureArticles(java.lang.String[] ddmStructureKeys)
Returns the web content articles matching the DDM structure keys.
|
int |
getStructureArticlesCount(long groupId,
java.lang.String ddmStructureKey)
Returns the number of web content articles matching the group and DDM
structure key.
|
java.util.List<JournalArticle> |
getTemplateArticles(long groupId,
java.lang.String ddmTemplateKey)
Returns the web content articles matching the group and DDM template key.
|
java.util.List<JournalArticle> |
getTemplateArticles(long groupId,
java.lang.String ddmTemplateKey,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
group and DDM template key.
|
int |
getTemplateArticlesCount(long groupId,
java.lang.String ddmTemplateKey)
Returns the number of web content articles matching the group and DDM
template key.
|
java.lang.String |
getUniqueUrlTitle(long groupId,
java.lang.String articleId,
java.lang.String urlTitle)
Returns the web content article's unique URL title.
|
JournalArticleLocalService |
getWrappedService() |
boolean |
hasArticle(long groupId,
java.lang.String articleId)
Returns
true if the specified web content article exists. |
boolean |
isLatestVersion(long groupId,
java.lang.String articleId,
double version)
Returns
true if the web content article, specified by group
and article ID, is the latest version. |
boolean |
isLatestVersion(long groupId,
java.lang.String articleId,
double version,
int status)
Returns
true if the web content article, specified by group,
article ID, and workflow status, is the latest version. |
boolean |
isListable(JournalArticle article) |
boolean |
isRenderable(JournalArticle article,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
JournalArticle |
moveArticle(long groupId,
java.lang.String articleId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the web content article matching the group and article ID to a new
folder.
|
JournalArticle |
moveArticleFromTrash(long userId,
long groupId,
JournalArticle article,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the web content article from the Recycle Bin to a new folder.
|
JournalArticle |
moveArticleToTrash(long userId,
JournalArticle article)
Moves the latest version of the web content article matching the group
and article ID to the recycle bin.
|
JournalArticle |
moveArticleToTrash(long userId,
long groupId,
java.lang.String articleId)
Moves the latest version of the web content article matching the group
and article ID to the recycle bin.
|
void |
rebuildTree(long companyId)
Rebuilds the web content article's tree path using tree traversal.
|
JournalArticle |
removeArticleLocale(long groupId,
java.lang.String articleId,
double version,
java.lang.String languageId)
Removes the web content of the web content article matching the group,
article ID, and version, and language.
|
JournalArticle |
restoreArticleFromTrash(long userId,
JournalArticle article)
Restores the web content article from the Recycle Bin.
|
java.util.List<JournalArticle> |
search(long groupId,
java.util.List<java.lang.Long> folderIds,
java.util.Locale locale,
int status,
int start,
int end) |
java.util.List<JournalArticle> |
search(long groupId,
long folderId,
int status,
int start,
int end)
Returns a range of all the web content articles in a single folder
matching the parameters without using the indexer.
|
java.util.List<JournalArticle> |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
java.util.Date reviewDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
parameters without using the indexer, including a keywords parameter for
matching with the article's ID, title, description, and content, a DDM
structure key parameter, and a DDM template key parameter.
|
java.util.List<JournalArticle> |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String[] ddmStructureKeys,
java.lang.String[] ddmTemplateKeys,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
java.util.Date reviewDate,
int status,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
parameters without using the indexer, including keyword parameters for
article ID, title, description, and content, a DDM structure keys
(plural) parameter, a DDM template keys (plural) parameter, and an AND
operator switch.
|
java.util.List<JournalArticle> |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
java.util.Date reviewDate,
int status,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
Returns an ordered range of all the web content articles matching the
parameters without using the indexer, 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.
|
com.liferay.portal.kernel.search.Hits |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Returns an ordered range of all the web content articles matching the
parameters using the indexer, including a keywords parameter for matching
an article's ID, title, description, or content, a DDM structure key
parameter, a DDM template key parameter, and a finder hash map parameter.
|
com.liferay.portal.kernel.search.Hits |
search(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.String title,
java.lang.String description,
java.lang.String content,
int status,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Returns an ordered range of all the web content articles matching the
parameters using the indexer, including a keywords parameter for matching
an article's ID, title, description, or content, a DDM structure key
parameter, a DDM template key parameter, an AND operator switch, and
parameters for type, status, a finder hash map.
|
com.liferay.portal.kernel.search.Hits |
search(long groupId,
long userId,
long creatorUserId,
int status,
int start,
int end)
Returns a range of all the web content articles matching the group,
creator, and status using the indexer.
|
int |
searchCount(long groupId,
java.util.List<java.lang.Long> folderIds,
int status)
Returns the number of web content articles matching the group, folders,
and status.
|
int |
searchCount(long groupId,
long folderId,
int status)
Returns the number of web content articles matching the group, folder,
and status.
|
int |
searchCount(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String keywords,
java.lang.Double version,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
java.util.Date reviewDate,
int status)
Returns the number of web content articles matching the parameters,
including a keywords parameter for matching with the article's ID, title,
description, and content, a DDM structure key parameter, and a DDM
template key parameter.
|
int |
searchCount(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String[] ddmStructureKeys,
java.lang.String[] ddmTemplateKeys,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
java.util.Date reviewDate,
int status,
boolean andOperator)
Returns the number of web content articles matching the parameters,
including keyword parameters for article ID, title, description, and
content, a DDM structure keys (plural) parameter, a DDM template keys
(plural) parameter, and an AND operator switch.
|
int |
searchCount(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.Double version,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.Date displayDateGT,
java.util.Date displayDateLT,
java.util.Date reviewDate,
int status,
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.
|
com.liferay.portal.kernel.search.BaseModelSearchResult<JournalArticle> |
searchJournalArticles(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Returns a
BaseModelSearchResult containing the total number of
hits and an ordered range of all the web content articles matching the
parameters using the indexer, including a keywords parameter for matching
an article's ID, title, description, or content, a DDM structure key
parameter, a DDM template key parameter, and a finder hash map parameter. |
com.liferay.portal.kernel.search.BaseModelSearchResult<JournalArticle> |
searchJournalArticles(long companyId,
long groupId,
java.util.List<java.lang.Long> folderIds,
long classNameId,
java.lang.String articleId,
java.lang.String title,
java.lang.String description,
java.lang.String content,
int status,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
boolean andSearch,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Returns a
BaseModelSearchResult containing the total number of
hits and an ordered range of all the web content articles matching the
parameters using the indexer, including keyword parameters for article
ID, title, description, or content, a DDM structure key parameter, a DDM
template key parameter, an AND operator switch, and parameters for type,
status, and a finder hash map. |
com.liferay.portal.kernel.search.BaseModelSearchResult<JournalArticle> |
searchJournalArticles(long groupId,
long userId,
long creatorUserId,
int status,
int start,
int end)
Returns a
BaseModelSearchResult containing the total number of
hits and an ordered range of all the web content articles matching the
parameters using the indexer, including the web content article's creator
ID and status. |
void |
setTreePaths(long folderId,
java.lang.String treePath,
boolean reindex) |
void |
setWrappedService(JournalArticleLocalService journalArticleLocalService) |
void |
subscribe(long userId,
long groupId,
long articleId)
Subscribes the user to changes in elements that belong to the web content
article.
|
void |
subscribeStructure(long groupId,
long userId,
long ddmStructureId)
Subscribes the user to changes in elements that belong to the web content
article's DDM structure.
|
void |
unsubscribe(long userId,
long groupId,
long articleId)
Unsubscribes the user from changes in elements that belong to the web
content article.
|
void |
unsubscribeStructure(long groupId,
long userId,
long ddmStructureId)
Unsubscribes the user from changes in elements that belong to the web
content article's DDM structure.
|
JournalArticle |
updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article with additional parameters.
|
JournalArticle |
updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String layoutUuid,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article matching the version, replacing its
folder, title, description, content, and layout UUID.
|
JournalArticle |
updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
java.util.Map<java.lang.String,byte[]> images,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article with additional parameters.
|
JournalArticle |
updateArticle(long userId,
long groupId,
long folderId,
java.lang.String articleId,
double version,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the web content article matching the version, replacing its
folder and content.
|
JournalArticle |
updateArticle(long id,
java.lang.String urlTitle)
Updates the URL title of the web content article.
|
JournalArticle |
updateArticleDefaultValues(long userId,
long groupId,
java.lang.String articleId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String content,
java.lang.String ddmStructureKey,
java.lang.String ddmTemplateKey,
java.lang.String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
JournalArticle |
updateArticleTranslation(long groupId,
java.lang.String articleId,
double version,
java.util.Locale locale,
java.lang.String title,
java.lang.String description,
java.lang.String content,
java.util.Map<java.lang.String,byte[]> images,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the translation of the web content article.
|
void |
updateAsset(long userId,
JournalArticle article,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds,
java.lang.Double priority)
Updates the web content article's asset with the new asset categories,
tag names, and link entries, removing and adding them as necessary.
|
void |
updateDDMTemplateKey(long groupId,
long classNameId,
java.lang.String oldDDMTemplateKey,
java.lang.String newDDMTemplateKey)
Updates the web content articles matching the group, class name ID, and
DDM template key, replacing the DDM template key with a new one.
|
JournalArticle |
updateJournalArticle(JournalArticle journalArticle)
Updates the journal article in the database or adds it if it does not yet exist.
|
JournalArticle |
updateStatus(long userId,
JournalArticle article,
int status,
java.lang.String articleURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext)
Updates the workflow status of the web content article.
|
JournalArticle |
updateStatus(long userId,
long classPK,
int status,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the workflow status of the web content article matching the class
PK.
|
JournalArticle |
updateStatus(long userId,
long groupId,
java.lang.String articleId,
double version,
int status,
java.lang.String articleURL,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the workflow status of the web content article matching the
group, article ID, and version.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<JournalArticle>,R,E> updateUnsafeFunction) |
public JournalArticleLocalServiceWrapper()
public JournalArticleLocalServiceWrapper(JournalArticleLocalService journalArticleLocalService)
@Deprecated public JournalArticle addArticle(long userId, long groupId, long folderId, long classNameId, long classPK, java.lang.String articleId, boolean autoArticleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addArticle(String, long, long, long, long, long, String,
boolean, double, Map, Map, Map, String, String, String,
String, int, int, int, int, int, int, int, int, int, int,
boolean, int, int, int, int, int, boolean, boolean, boolean,
String, File, Map, String, ServiceContext)
addArticle
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public JournalArticle addArticle(long userId, long groupId, long folderId, long classNameId, long classPK, java.lang.String articleId, boolean autoArticleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addArticle(String, long, long, long, long, long, String,
boolean, double, Map, Map, Map, String, String, String,
String, int, int, int, int, int, int, int, int, int, int,
boolean, int, int, int, int, int, boolean, boolean, boolean,
String, File, Map, String, ServiceContext)
addArticle
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public JournalArticle addArticle(long userId, long groupId, long folderId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addArticle(String, long, long, long, Map, Map, String,
String, String, ServiceContext)
addArticle
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
public JournalArticle addArticle(java.lang.String externalReferenceCode, long userId, long groupId, long folderId, long classNameId, long classPK, java.lang.String articleId, boolean autoArticleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
The web content articles hold HTML content wrapped in XML. The XML lets you specify the article's default locale and available locales. Here is a content example:
<?xml version='1.0' encoding='UTF-8'?>
<root default-locale="en_US" available-locales="en_US">
<static-content language-id="en_US">
<![CDATA[<p><b><i>test<i> content<b></p>]]>
</static-content>
</root>
addArticle
in interface JournalArticleLocalService
externalReferenceCode
- the external reference code of the web
content articleuserId
- the primary key of the web content article's creator/ownergroupId
- 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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwiseclassPK
- the primary key of the DDM structure, if the primary key
of the DDMStructure class is given as the
classNameId
parameter, the primary key of the class
associated with the web content article, or 0
otherwisearticleId
- the primary key of the web content articleautoArticleId
- whether to auto generate the web content article IDversion
- the web content article's versiontitleMap
- the web content article's locales and localized titlesdescriptionMap
- the web content article's locales and localized
descriptionsfriendlyURLMap
- the web content article's locales and localized
friendly URLscontent
- the HTML content wrapped in XMLddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatelayoutUuid
- the unique string identifying the web content
article's display pagedisplayDateMonth
- the month the web content article is set to
displaydisplayDateDay
- the calendar day the web content article is set to
displaydisplayDateYear
- the year the web content article is set to
displaydisplayDateHour
- the hour the web content article is set to
displaydisplayDateMinute
- the minute the web content article is set to
displayexpirationDateMonth
- the month the web content article is set to
expireexpirationDateDay
- the calendar day the web content article is set
to expireexpirationDateYear
- the year the web content article is set to
expireexpirationDateHour
- the hour the web content article is set to
expireexpirationDateMinute
- the minute the web content article is set to
expireneverExpire
- whether the web content article is not set to auto
expirereviewDateMonth
- the month the web content article is set for
reviewreviewDateDay
- the calendar day the web content article is set for
reviewreviewDateYear
- the year the web content article is set for reviewreviewDateHour
- the hour the web content article is set for reviewreviewDateMinute
- the minute the web content article is set for
reviewneverReview
- whether the web content article is not set for reviewindexable
- whether the web content article is searchablesmallImage
- whether the web content article has a small imagesmallImageURL
- the web content article's small image URLsmallImageFile
- 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, URL title, and
workflow actions for the web content article. Can also set
whether to add the default guest and group permissions.PortalException
- if a portal exception occurredpublic JournalArticle addArticle(java.lang.String externalReferenceCode, long userId, long groupId, long folderId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addArticle
in interface JournalArticleLocalService
externalReferenceCode
- the external reference code of the web
content article.userId
- the primary key of the web content article's creator/ownergroupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article foldertitleMap
- 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 addArticle(String, long,
long, long, long, long, String, boolean, double, Map, Map, Map,
String, String, String, String, int, int, int, int, int, int,
int, int, int, int, boolean, int, int, int, int, int, boolean,
boolean, boolean, String, File, Map, String, ServiceContext)
description.ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templateserviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, expando bridge
attributes, guest permissions, group permissions, asset category
IDs, asset tag names, asset link entry IDs, asset priority, URL
title, and workflow actions for the web content article. Can also
set whether to add the default guest and group permissions.PortalException
- if a portal exception occurredpublic JournalArticle addArticleDefaultValues(long userId, long groupId, long classNameId, long classPK, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addArticleDefaultValues
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
public void addArticleResources(JournalArticle article, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addArticleResources
in interface JournalArticleLocalService
article
- the web content articleaddGroupPermissions
- whether to add group permissionsaddGuestPermissions
- whether to add guest permissionsPortalException
- if a portal exception occurredpublic void addArticleResources(JournalArticle article, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addArticleResources
in interface JournalArticleLocalService
article
- the web content article to add resources tomodelPermissions
- the model permissionsPortalException
- if a portal exception occurredpublic void addArticleResources(long groupId, java.lang.String articleId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addArticleResources
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleaddGroupPermissions
- whether to add group permissionsaddGuestPermissions
- whether to add guest permissionsPortalException
- if a portal exception occurredpublic JournalArticle addJournalArticle(JournalArticle journalArticle)
Important: Inspect JournalArticleLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addJournalArticle
in interface JournalArticleLocalService
journalArticle
- the journal articlepublic JournalArticle checkArticleResourcePrimKey(long groupId, java.lang.String articleId, double version) throws com.liferay.portal.kernel.exception.PortalException
checkArticleResourcePrimKey
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionPortalException
- if a portal exception occurredpublic void checkArticles() throws com.liferay.portal.kernel.exception.PortalException
checkArticles
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
public JournalArticle copyArticle(long userId, long groupId, java.lang.String oldArticleId, java.lang.String newArticleId, boolean autoArticleId, double version) throws com.liferay.portal.kernel.exception.PortalException
copyArticle
in interface JournalArticleLocalService
userId
- the primary key of the web content article's creator/ownergroupId
- the primary key of the web content article's groupoldArticleId
- the primary key of the old web content articlenewArticleId
- the primary key of the new web content articleautoArticleId
- whether to auto-generate the web content article IDversion
- the web content article's versionPortalException
- if a portal exception occurredpublic JournalArticle createJournalArticle(long id)
createJournalArticle
in interface JournalArticleLocalService
id
- the primary key for the new journal articlepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface JournalArticleLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public JournalArticle deleteArticle(JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
deleteArticle
in interface JournalArticleLocalService
article
- the web content articlePortalException
- if a portal exception occurredpublic JournalArticle deleteArticle(JournalArticle article, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteArticle
in interface JournalArticleLocalService
article
- the web content articlearticleURL
- the web content article's accessible URL to include in
email notifications (optionally null
)serviceContext
- the service context to be applied (optionally
null
). Can set the portlet preferences that include
email information to notify recipients of the unapproved web
content's denial.PortalException
- if a portal exception occurredpublic JournalArticle deleteArticle(long groupId, java.lang.String articleId, double version, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteArticle
in interface JournalArticleLocalService
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 a portal exception occurredpublic void deleteArticle(long groupId, java.lang.String articleId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleserviceContext
- 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 a portal exception occurredpublic void deleteArticleDefaultValues(long groupId, java.lang.String articleId, java.lang.String ddmStructureKey) throws com.liferay.portal.kernel.exception.PortalException
deleteArticleDefaultValues
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
public void deleteArticles(long groupId) throws com.liferay.portal.kernel.exception.PortalException
deleteArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupPortalException
- if a portal exception occurredpublic void deleteArticles(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
deleteArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderPortalException
- if a portal exception occurredpublic void deleteArticles(long groupId, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
deleteArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderincludeTrashedEntries
- whether to include recycled web content
articlesPortalException
- if a portal exception occurredpublic void deleteArticles(long groupId, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
deleteArticles
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwiseclassPK
- the primary key of the DDM structure, if the DDMStructure
class name is given as the className
parameter, the
primary key of the class associated with the web content article,
or 0
otherwisePortalException
- if a portal exception occurredpublic JournalArticle deleteJournalArticle(JournalArticle journalArticle)
Important: Inspect JournalArticleLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteJournalArticle
in interface JournalArticleLocalService
journalArticle
- the journal articlepublic JournalArticle deleteJournalArticle(long id) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect JournalArticleLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteJournalArticle
in interface JournalArticleLocalService
id
- the primary key of the journal articlePortalException
- if a journal article with the primary key could not be foundpublic void deleteLayoutArticleReferences(long groupId, java.lang.String layoutUuid)
deleteLayoutArticleReferences
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouplayoutUuid
- the unique string identifying the web content article's
display pagepublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface JournalArticleLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface JournalArticleLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface JournalArticleLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface JournalArticleLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface JournalArticleLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.journal.model.impl.JournalArticleModelImpl
.
dynamicQuery
in interface JournalArticleLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.journal.model.impl.JournalArticleModelImpl
.
dynamicQuery
in interface JournalArticleLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface JournalArticleLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface JournalArticleLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic JournalArticle expireArticle(long userId, long groupId, java.lang.String articleId, double version, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
expireArticle
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
articlegroupId
- 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 a portal exception occurredpublic void expireArticle(long userId, long groupId, java.lang.String articleId, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
journal.article.expire.all.versions
portal property is
true
, otherwise expiring only its latest approved version.expireArticle
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
articlegroupId
- 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 a portal exception occurredpublic JournalArticle fetchArticle(long id)
fetchArticle
in interface JournalArticleLocalService
id
- the primary key of the web content articlepublic JournalArticle fetchArticle(long groupId, java.lang.String articleId)
fetchArticle
in interface JournalArticleLocalService
public JournalArticle fetchArticle(long groupId, java.lang.String articleId, double version)
fetchArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionnull
if no web content article could be
foundpublic JournalArticle fetchArticleByUrlTitle(long groupId, java.lang.String urlTitle)
fetchArticleByUrlTitle
in interface JournalArticleLocalService
public JournalArticle fetchArticleByUrlTitle(long groupId, java.lang.String urlTitle, double version)
fetchArticleByUrlTitle
in interface JournalArticleLocalService
public JournalArticle fetchDisplayArticle(long groupId, java.lang.String articleId)
fetchDisplayArticle
in interface JournalArticleLocalService
public JournalArticle fetchJournalArticle(long id)
fetchJournalArticle
in interface JournalArticleLocalService
public JournalArticle fetchJournalArticleByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchJournalArticleByUuidAndGroupId
in interface JournalArticleLocalService
uuid
- the journal article's UUIDgroupId
- the primary key of the groupnull
if a matching journal article could not be foundpublic JournalArticle fetchLatestArticle(long resourcePrimKey)
fetchLatestArticle
in interface JournalArticleLocalService
public JournalArticle fetchLatestArticle(long resourcePrimKey, int status)
fetchLatestArticle
in interface JournalArticleLocalService
public JournalArticle fetchLatestArticle(long resourcePrimKey, int status, boolean preferApproved)
fetchLatestArticle
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.preferApproved
- whether to prefer returning the latest matching
article that has workflow status WorkflowConstants#STATUS_APPROVED
over returning one that has a
different statusnull
if no matching web
content article could be foundpublic JournalArticle fetchLatestArticle(long resourcePrimKey, int[] statuses)
fetchLatestArticle
in interface JournalArticleLocalService
public JournalArticle fetchLatestArticle(long groupId, java.lang.String articleId, int status)
fetchLatestArticle
in interface JournalArticleLocalService
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.null
if
no matching web content article could be foundpublic JournalArticle fetchLatestArticleByExternalReferenceCode(long groupId, java.lang.String externalReferenceCode)
fetchLatestArticleByExternalReferenceCode
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupexternalReferenceCode
- the web content article's external
reference codenull
if
no matching web content article could be foundpublic JournalArticle fetchLatestArticleByUrlTitle(long groupId, java.lang.String urlTitle, int status)
fetchLatestArticleByUrlTitle
in interface JournalArticleLocalService
public JournalArticle fetchLatestIndexableArticle(long resourcePrimKey)
fetchLatestIndexableArticle
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancenull
if no matching web content
article could be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface JournalArticleLocalService
public JournalArticle getArticle(long id) throws com.liferay.portal.kernel.exception.PortalException
getArticle
in interface JournalArticleLocalService
id
- the primary key of the web content articlePortalException
- if a portal exception occurredpublic JournalArticle getArticle(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
getArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlePortalException
- if a portal exception occurredpublic JournalArticle getArticle(long groupId, java.lang.String articleId, double version) throws com.liferay.portal.kernel.exception.PortalException
getArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionPortalException
- if a portal exception occurredpublic JournalArticle getArticle(long groupId, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
getArticle
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwiseclassPK
- the primary key of the DDM structure, if the DDMStructure
class name is given as the className
parameter, the
primary key of the class associated with the web content article,
or 0
otherwisePortalException
- if a portal exception occurredpublic JournalArticle getArticleByUrlTitle(long groupId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
getArticleByUrlTitle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL titlePortalException
- if a portal exception occurredpublic java.lang.String getArticleContent(JournalArticle article, java.lang.String ddmTemplateKey, java.lang.String viewMode, java.lang.String languageId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleContent
in interface JournalArticleLocalService
article
- the web content articleddmTemplateKey
- the primary key of the web content article's DDM
templateviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getportletRequestModel
- the portlet request modelthemeDisplay
- the theme displayPortalException
- if a portal exception occurredpublic java.lang.String getArticleContent(long groupId, java.lang.String articleId, double version, java.lang.String viewMode, java.lang.String ddmTemplateKey, java.lang.String languageId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleContent
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionviewMode
- the mode in which the web content is being viewedddmTemplateKey
- the primary key of the web content article's DDM
templatelanguageId
- the primary key of the language translation to getportletRequestModel
- the portlet request modelthemeDisplay
- the theme displayPortalException
- if a portal exception occurredpublic java.lang.String getArticleContent(long groupId, java.lang.String articleId, java.lang.String viewMode, java.lang.String ddmTemplateKey, java.lang.String languageId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleContent
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleviewMode
- the mode in which the web content is being viewedddmTemplateKey
- the primary key of the web content article's DDM
templatelanguageId
- the primary key of the language translation to getportletRequestModel
- the portlet request modelthemeDisplay
- the theme displayPortalException
- if a portal exception occurredpublic java.lang.String getArticleDescription(long articlePK, java.util.Locale locale)
getArticleDescription
in interface JournalArticleLocalService
public java.lang.String getArticleDescription(long articlePK, java.lang.String languageId)
getArticleDescription
in interface JournalArticleLocalService
public java.util.Map<java.util.Locale,java.lang.String> getArticleDescriptionMap(long articlePK)
getArticleDescriptionMap
in interface JournalArticleLocalService
public JournalArticleDisplay getArticleDisplay(JournalArticle article, java.lang.String ddmTemplateKey, java.lang.String viewMode, java.lang.String languageId, int page, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleDisplay
in interface JournalArticleLocalService
article
- the primary key of the web content articleddmTemplateKey
- the primary key of the web content article's DDM
templateviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getpage
- the web content article page to displayportletRequestModel
- the portlet request modelthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic JournalArticleDisplay getArticleDisplay(long groupId, java.lang.String articleId, double version, java.lang.String ddmTemplateKey, java.lang.String viewMode, java.lang.String languageId, int page, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleDisplay
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionddmTemplateKey
- the primary key of the web content article's DDM
templateviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getpage
- the web content article page to displayportletRequestModel
- the portlet request modelthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic JournalArticleDisplay getArticleDisplay(long groupId, java.lang.String articleId, double version, java.lang.String ddmTemplateKey, java.lang.String viewMode, java.lang.String languageId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
null
).getArticleDisplay
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionddmTemplateKey
- the primary key of the web content article's DDM
templateviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic JournalArticleDisplay getArticleDisplay(long groupId, java.lang.String articleId, java.lang.String viewMode, java.lang.String languageId, int page, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
null
).getArticleDisplay
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getpage
- the web content article page to displayportletRequestModel
- the portlet request modelthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic JournalArticleDisplay getArticleDisplay(long groupId, java.lang.String articleId, java.lang.String ddmTemplateKey, java.lang.String viewMode, java.lang.String languageId, int page, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
getArticleDisplay
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleddmTemplateKey
- the primary key of the web content article's DDM
templateviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getpage
- the web content article page to displayportletRequestModel
- the portlet request modelthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic JournalArticleDisplay getArticleDisplay(long groupId, java.lang.String articleId, java.lang.String ddmTemplateKey, java.lang.String viewMode, java.lang.String languageId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
null
).getArticleDisplay
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleddmTemplateKey
- the primary key of the web content article's DDM
templateviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic JournalArticleDisplay getArticleDisplay(long groupId, java.lang.String articleId, java.lang.String viewMode, java.lang.String languageId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
null
).getArticleDisplay
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleviewMode
- the mode in which the web content is being viewedlanguageId
- the primary key of the language translation to getthemeDisplay
- the theme displaynull
if the
article has expired or if article's display date/time is after
the current date/timePortalException
- if a portal exception occurredpublic java.util.List<java.lang.String> getArticleLocalizationLanguageIds(long articlePK)
getArticleLocalizationLanguageIds
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticles()
getArticles
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticles(long groupId)
getArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouppublic java.util.List<JournalArticle> getArticles(long groupId, int start, int end)
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 JournalArticleLocalService
groupId
- the primary key of the web content article's groupstart
- 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)public java.util.List<JournalArticle> getArticles(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
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 JournalArticleLocalService
groupId
- the primary key of the web content article's groupstart
- 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
articlespublic java.util.List<JournalArticle> getArticles(long groupId, long folderId)
getArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderpublic java.util.List<JournalArticle> getArticles(long groupId, long folderId, int start, int end)
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 JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article's 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)public java.util.List<JournalArticle> getArticles(long groupId, long folderId, int status, int start, int end)
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 JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article's folderstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.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)public java.util.List<JournalArticle> getArticles(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
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 JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article's 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)orderByComparator
- the comparator to order the web content
articlespublic java.util.List<JournalArticle> getArticles(long groupId, java.lang.String articleId)
getArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlepublic java.util.List<JournalArticle> getArticles(long groupId, java.lang.String articleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getArticles
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticlesByResourcePrimKey(long resourcePrimKey)
getArticlesByResourcePrimKey
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancepublic java.util.List<JournalArticle> getArticlesBySmallImageId(long smallImageId)
getArticlesBySmallImageId
in interface JournalArticleLocalService
smallImageId
- the primary key of the web content article's small
imagepublic java.util.List<JournalArticle> getArticlesByStructureId(long groupId, long classNameId, java.lang.String ddmStructureKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getArticlesByStructureId
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticlesByStructureId(long groupId, long classNameId, java.lang.String ddmStructureKey, java.util.Locale locale, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getArticlesByStructureId
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticlesByStructureId(long groupId, java.lang.String ddmStructureKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getArticlesByStructureId
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticlesByStructureId(long groupId, java.lang.String ddmStructureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getArticlesByStructureId
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getArticlesByStructureId(long groupId, java.lang.String ddmStructureKey, java.util.Locale locale, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getArticlesByStructureId
in interface JournalArticleLocalService
public java.util.List<java.lang.Long> getArticlesClassPKsWithDefaultDisplayPage(long groupId, long classTypeId)
getArticlesClassPKsWithDefaultDisplayPage
in interface JournalArticleLocalService
public int getArticlesCount(long groupId)
getArticlesCount
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouppublic int getArticlesCount(long groupId, long folderId)
getArticlesCount
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article's folderpublic int getArticlesCount(long groupId, long folderId, int status)
getArticlesCount
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article's folderstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public int getArticlesCount(long groupId, java.lang.String articleId)
getArticlesCount
in interface JournalArticleLocalService
public java.lang.String getArticleTitle(long articlePK, java.util.Locale locale)
getArticleTitle
in interface JournalArticleLocalService
public java.lang.String getArticleTitle(long articlePK, java.lang.String languageId)
getArticleTitle
in interface JournalArticleLocalService
public java.util.Map<java.util.Locale,java.lang.String> getArticleTitleMap(long articlePK)
getArticleTitleMap
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getCompanyArticles(long companyId, double version, int status, int start, int end)
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.
getCompanyArticles
in interface JournalArticleLocalService
companyId
- the primary key of the web content article's companyversion
- 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.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)public java.util.List<JournalArticle> getCompanyArticles(long companyId, int status, int start, int end)
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.
getCompanyArticles
in interface JournalArticleLocalService
companyId
- the primary key of the web content article's companystatus
- 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)public int getCompanyArticlesCount(long companyId, double version, int status, int start, int end)
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.
getCompanyArticlesCount
in interface JournalArticleLocalService
companyId
- the primary key of the web content article's companyversion
- 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.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)public int getCompanyArticlesCount(long companyId, int status)
getCompanyArticlesCount
in interface JournalArticleLocalService
companyId
- the primary key of the web content article's companystatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public JournalArticle getDisplayArticle(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
getDisplayArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlePortalException
- if a portal exception occurredpublic JournalArticle getDisplayArticleByUrlTitle(long groupId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
getDisplayArticleByUrlTitle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL titlePortalException
- if a portal exception occurredpublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface JournalArticleLocalService
public java.util.List<java.lang.Long> getGroupIdsByUrlTitle(long companyId, java.lang.String urlTitle)
getGroupIdsByUrlTitle
in interface JournalArticleLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getIndexableArticlesByDDMStructureKey(java.lang.String[] ddmStructureKeys)
getIndexableArticlesByDDMStructureKey
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getIndexableArticlesByDDMStructureKey(java.lang.String[] ddmStructureKeys, java.util.Locale locale)
getIndexableArticlesByDDMStructureKey
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getIndexableArticlesByResourcePrimKey(long resourcePrimKey)
getIndexableArticlesByResourcePrimKey
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancepublic JournalArticle getJournalArticle(long id) throws com.liferay.portal.kernel.exception.PortalException
getJournalArticle
in interface JournalArticleLocalService
id
- the primary key of the journal articlePortalException
- if a journal article with the primary key could not be foundpublic JournalArticle getJournalArticleByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getJournalArticleByUuidAndGroupId
in interface JournalArticleLocalService
uuid
- the journal article's UUIDgroupId
- the primary key of the groupPortalException
- if a matching journal article could not be foundpublic java.util.List<JournalArticle> getJournalArticles(int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.journal.model.impl.JournalArticleModelImpl
.
getJournalArticles
in interface JournalArticleLocalService
start
- the lower bound of the range of journal articlesend
- the upper bound of the range of journal articles (not inclusive)public java.util.List<JournalArticle> getJournalArticlesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getJournalArticlesByUuidAndCompanyId
in interface JournalArticleLocalService
uuid
- the UUID of the journal articlescompanyId
- the primary key of the companypublic java.util.List<JournalArticle> getJournalArticlesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
getJournalArticlesByUuidAndCompanyId
in interface JournalArticleLocalService
uuid
- the UUID of the journal articlescompanyId
- the primary key of the companystart
- the lower bound of the range of journal articlesend
- the upper bound of the range of journal articles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getJournalArticlesCount()
getJournalArticlesCount
in interface JournalArticleLocalService
public JournalArticle getLatestArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticle
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancePortalException
- if a portal exception occurredpublic JournalArticle getLatestArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticle
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.PortalException
- if a portal exception occurredpublic JournalArticle getLatestArticle(long resourcePrimKey, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticle
in interface JournalArticleLocalService
resourcePrimKey
- the primary key of the resource instancestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.preferApproved
- whether to prefer returning the latest matching
article that has workflow status WorkflowConstants#STATUS_APPROVED
over returning one that has a
different statusPortalException
- if a portal exception occurredpublic JournalArticle getLatestArticle(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlePortalException
- if a portal exception occurredpublic JournalArticle getLatestArticle(long groupId, java.lang.String articleId, int status) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticle
in interface JournalArticleLocalService
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 a portal exception occurredpublic JournalArticle getLatestArticle(long groupId, java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticle
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the
journal-api module otherwiseclassPK
- the primary key of the DDM structure, if the DDMStructure
class name is given as the className
parameter, the
primary key of the class associated with the web content article,
or 0
otherwisePortalException
- if a portal exception occurredpublic JournalArticle getLatestArticleByExternalReferenceCode(long groupId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticleByExternalReferenceCode
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupexternalReferenceCode
- the web content article's external
reference codePortalException
- if a portal exception occurredpublic JournalArticle getLatestArticleByUrlTitle(long groupId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.PortalException
getLatestArticleByUrlTitle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupurlTitle
- the web content article's accessible URL titlestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.PortalException
- if a portal exception occurredpublic double getLatestVersion(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
getLatestVersion
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlePortalException
- if a portal exception occurredpublic double getLatestVersion(long groupId, java.lang.String articleId, int status) throws com.liferay.portal.kernel.exception.PortalException
getLatestVersion
in interface JournalArticleLocalService
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 a portal exception occurredpublic java.util.List<JournalArticle> getNoAssetArticles()
getNoAssetArticles
in interface JournalArticleLocalService
public java.util.List<JournalArticle> getNoPermissionArticles()
getNoPermissionArticles
in interface JournalArticleLocalService
public int getNotInTrashArticlesCount(long groupId, long folderId)
getNotInTrashArticlesCount
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupfolderId
- the primary key of the web content article folderpublic JournalArticle getOldestArticle(long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
getOldestArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlePortalException
- if a portal exception occurredpublic JournalArticle getOldestArticle(long groupId, java.lang.String articleId, int status) throws com.liferay.portal.kernel.exception.PortalException
getOldestArticle
in interface JournalArticleLocalService
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 a portal exception occurredpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface JournalArticleLocalService
public java.util.List<? extends com.liferay.portal.kernel.model.PersistedModel> getPersistedModel(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface JournalArticleLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedResourcedModelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface JournalArticleLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public JournalArticle getPreviousApprovedArticle(JournalArticle article)
WorkflowConstants#STATUS_APPROVED
.getPreviousApprovedArticle
in interface JournalArticleLocalService
article
- the web content articlepublic java.util.List<JournalArticle> getStructureArticles(long groupId, java.lang.String ddmStructureKey)
getStructureArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structurepublic java.util.List<JournalArticle> getStructureArticles(long groupId, java.lang.String ddmStructureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
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.
getStructureArticles
in interface JournalArticleLocalService
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)orderByComparator
- the comparator to order the web content
articlespublic java.util.List<JournalArticle> getStructureArticles(java.lang.String[] ddmStructureKeys)
getStructureArticles
in interface JournalArticleLocalService
ddmStructureKeys
- the primary keys of the web content article's
DDM structurespublic int getStructureArticlesCount(long groupId, java.lang.String ddmStructureKey)
getStructureArticlesCount
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupddmStructureKey
- the primary key of the web content article's DDM
structurepublic java.util.List<JournalArticle> getTemplateArticles(long groupId, java.lang.String ddmTemplateKey)
getTemplateArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupddmTemplateKey
- the primary key of the web content article's DDM
templatepublic java.util.List<JournalArticle> getTemplateArticles(long groupId, java.lang.String ddmTemplateKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
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.
getTemplateArticles
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupddmTemplateKey
- the primary key of the web content article's DDM
templatestart
- 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
articlespublic int getTemplateArticlesCount(long groupId, java.lang.String ddmTemplateKey)
getTemplateArticlesCount
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's groupddmTemplateKey
- the primary key of the web content article's DDM
templatepublic java.lang.String getUniqueUrlTitle(long groupId, java.lang.String articleId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
getUniqueUrlTitle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleurlTitle
- the web content article's accessible URL titlePortalException
- if a portal exception occurredpublic boolean hasArticle(long groupId, java.lang.String articleId)
true
if the specified web content article exists.hasArticle
in interface JournalArticleLocalService
groupId
- the primary key of the grouparticleId
- the primary key of the web content articletrue
if the specified web content article exists;
false
otherwisepublic boolean isLatestVersion(long groupId, java.lang.String articleId, double version) throws com.liferay.portal.kernel.exception.PortalException
true
if the web content article, specified by group
and article ID, is the latest version.isLatestVersion
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versiontrue
if the specified web content article is the
latest version; false
otherwisePortalException
- if a portal exception occurredpublic boolean isLatestVersion(long groupId, java.lang.String articleId, double version, int status) throws com.liferay.portal.kernel.exception.PortalException
true
if the web content article, specified by group,
article ID, and workflow status, is the latest version.isLatestVersion
in interface JournalArticleLocalService
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.true
if the specified web content article is the
latest version; false
otherwisePortalException
- if a portal exception occurredpublic boolean isListable(JournalArticle article)
isListable
in interface JournalArticleLocalService
public boolean isRenderable(JournalArticle article, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
isRenderable
in interface JournalArticleLocalService
public JournalArticle moveArticle(long groupId, java.lang.String articleId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
moveArticle
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlenewFolderId
- the primary key of the web content article's new
folderserviceContext
- the service context to be applied. Can set the
user ID, language ID, portlet preferences, portlet request,
portlet response, theme display, and can set whether to add the
default command update for the web content article. With respect
to social activities, by setting the service context's command to
Constants#UPDATE
, the invocation is considered a web
content update activity; otherwise it is considered a web content
add activity.PortalException
- if a portal exception occurredpublic JournalArticle moveArticleFromTrash(long userId, long groupId, JournalArticle article, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
moveArticleFromTrash
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
articlegroupId
- the primary key of the web content article's grouparticle
- 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 a portal exception occurredpublic JournalArticle moveArticleToTrash(long userId, JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
moveArticleToTrash
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
articlearticle
- the web content articlePortalException
- if a portal exception occurredpublic JournalArticle moveArticleToTrash(long userId, long groupId, java.lang.String articleId) throws com.liferay.portal.kernel.exception.PortalException
moveArticleToTrash
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
articlegroupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articlenull
if no matching
article was foundPortalException
- if a portal exception occurredpublic void rebuildTree(long companyId) throws com.liferay.portal.kernel.exception.PortalException
For example, here is a conceptualization of a web content article tree path:
/(Folder's folderId)/(Subfolder's folderId)/(article's articleId)
rebuildTree
in interface JournalArticleLocalService
companyId
- the primary key of the web content article's companyPortalException
- if a portal exception occurredpublic JournalArticle removeArticleLocale(long groupId, java.lang.String articleId, double version, java.lang.String languageId) throws com.liferay.portal.kernel.exception.PortalException
removeArticleLocale
in interface JournalArticleLocalService
groupId
- the primary key of the web content article's grouparticleId
- the primary key of the web content articleversion
- the web content article's versionlanguageId
- the primary key of the language locale to removePortalException
- if a portal exception occurredpublic JournalArticle restoreArticleFromTrash(long userId, JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
restoreArticleFromTrash
in interface JournalArticleLocalService
userId
- the primary key of the user restoring the web content
articlearticle
- the web content articlePortalException
- if a portal exception occurredpublic java.util.List<JournalArticle> search(long groupId, java.util.List<java.lang.Long> folderIds, java.util.Locale locale, int status, int start, int end)
search
in interface JournalArticleLocalService
public java.util.List<JournalArticle> search(long groupId, long folderId, int status, int start, int end)
search(long, long, long, int, int, int)
instead of this method wherever possible for performance reasons.
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 JournalArticleLocalService
groupId
- the primary key of the group (optionally 0
)folderId
- the primary key of the web content article folderstatus
- 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)public java.util.List<JournalArticle> search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String keywords, java.lang.Double version, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, java.util.Date reviewDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
search(long, long, List,
long, String, String, String, LinkedHashMap, int, int, Sort)
instead of
this method wherever possible for performance reasons.
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 JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisekeywords
- the keywords (space separated), which may occur in the
web content article ID, title, description, or content
(optionally null
). If the keywords value is not
null
, the search uses the OR operator in connecting
query criteria; otherwise it uses the AND operator.version
- the web content article's version (optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)reviewDate
- the web content article's scheduled review date
(optionally null
)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
returnend
- the upper bound of the range of web content articles to
return (not inclusive)orderByComparator
- the comparator to order the web content
articlespublic java.util.List<JournalArticle> search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, java.util.Date reviewDate, int status, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
search(long, long, List,
long, String, String, String, String, int, String, String, LinkedHashMap,
boolean, int, int, Sort)
instead of this method wherever possible for
performance reasons.
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 JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)reviewDate
- the web content article's scheduled review date
(optionally null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.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)orderByComparator
- the comparator to order the web content
articlespublic java.util.List<JournalArticle> search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String[] ddmStructureKeys, java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, java.util.Date displayDateLT, java.util.Date reviewDate, int status, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticle> orderByComparator)
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 JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKeys
- the primary keys of the web content article's
DDM structures, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKeys
- the primary keys of the web content article's DDM
templates (originally null
). If the articles are
related to a DDM structure, the template's structure must match
it.displayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)reviewDate
- the web content article's scheduled review date
(optionally null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.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)orderByComparator
- the comparator to order the web content
articlespublic com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String keywords, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort)
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 JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwiseddmStructureKey
- 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
templatekeywords
- 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.params
- the finder parameters (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)sort
- the field, type, and direction by which to sort (optionally
null
)sort
public com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.String title, java.lang.String description, java.lang.String content, int status, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort)
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 JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, 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
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.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
templateparams
- the finder parameters (optionally null
). The
includeDiscussions
parameter can be set to
true
to search for the keywords in the web content
article discussions.andSearch
- whether every field must match its value or keywords,
or just one field must matchstart
- 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)sort
- the field, type, and direction by which to sort (optionally
null
)sort
public com.liferay.portal.kernel.search.Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
Useful when paginating results. Returns a maximum of end -
start
instances. start
and end
are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full
result set.
search
in interface JournalArticleLocalService
groupId
- the primary key of the group (optionally 0
)userId
- the primary key of the user searching for web content
articlescreatorUserId
- the primary key of the web content article's
creatorstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)PortalException
- if a portal exception occurredpublic int searchCount(long groupId, java.util.List<java.lang.Long> folderIds, int status)
searchCount
in interface JournalArticleLocalService
groupId
- the primary key of the group (optionally 0
)folderIds
- the primary keys of the web content article folders
(optionally Collections#EMPTY_LIST
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public int searchCount(long groupId, long folderId, int status)
searchCount
in interface JournalArticleLocalService
groupId
- the primary key of the group (optionally 0
)folderId
- the primary key of the web content article folderstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public int searchCount(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String keywords, java.lang.Double version, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, java.util.Date reviewDate, int status)
searchCount
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisekeywords
- the keywords (space separated), which may occur in the
web content article ID, title, description, or content
(optionally null
). If the keywords value is not
null
, the search uses the OR operator in connecting
query criteria; otherwise it uses the AND operator.version
- the web content article's version (optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)reviewDate
- the web content article's scheduled review date
(optionally null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.public int searchCount(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.Date displayDateGT, java.util.Date displayDateLT, java.util.Date reviewDate, int status, boolean andOperator)
searchCount
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatedisplayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)reviewDate
- the web content article's scheduled review date
(optionally null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.andOperator
- whether every field must match its value or keywords,
or just one field must match. Group, folder IDs, class name ID,
and status must all match their values.public int searchCount(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.Double version, java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String[] ddmStructureKeys, java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, java.util.Date displayDateLT, java.util.Date reviewDate, int status, boolean andOperator)
searchCount
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, optionally
null
)version
- the web content article's version (optionally
null
)title
- the title keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)content
- the content keywords (space separated, optionally
null
)ddmStructureKeys
- the primary keys of the web content article's
DDM structures, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKeys
- the primary keys of the web content article's DDM
templates (originally null
). If the articles are
related to a DDM structure, the template's structure must match
it.displayDateGT
- the date after which a matching web content
article's display date must be after (optionally
null
)displayDateLT
- the date before which a matching web content
article's display date must be before (optionally
null
)reviewDate
- the web content article's scheduled review date
(optionally null
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.andOperator
- whether every field must match its value or keywords,
or just one field must match. Group, folder IDs, class name ID,
and status must all match their values.public com.liferay.portal.kernel.search.BaseModelSearchResult<JournalArticle> searchJournalArticles(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String keywords, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
BaseModelSearchResult
containing the total number of
hits and an ordered range of all the web content articles matching the
parameters using the indexer, including a keywords parameter for matching
an article's ID, title, description, or content, a DDM structure key
parameter, a DDM template key parameter, and a finder hash map parameter.
It is preferable to use this method instead of the non-indexed version
whenever possible for performance reasons.
The start
and end
parameters only affect the
amount of web content articles returned as results, not the total number
of hits.
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.
searchJournalArticles
in interface JournalArticleLocalService
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, the
primary key of the class name associated with the article, or
JournalArticleConstants.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwiseddmStructureKey
- the primary key of the web content article's DDM
structureddmTemplateKey
- the primary key of the web content article's DDM
templatekeywords
- 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.params
- the finder parameters (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)sort
- the field, type, and direction by which to sort (optionally
null
)BaseModelSearchResult
containing the total number of
hits and an ordered range of all the matching web content
articles ordered by sort
PortalException
- if a portal exception occurredpublic com.liferay.portal.kernel.search.BaseModelSearchResult<JournalArticle> searchJournalArticles(long companyId, long groupId, java.util.List<java.lang.Long> folderIds, long classNameId, java.lang.String articleId, java.lang.String title, java.lang.String description, java.lang.String content, int status, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andSearch, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
BaseModelSearchResult
containing the total number of
hits and an ordered range of all the web content articles matching the
parameters using the indexer, including keyword parameters for article
ID, title, description, or content, a DDM structure key parameter, a DDM
template key parameter, an AND operator switch, and parameters for type,
status, and a finder hash map. It is preferable to use this method
instead of the non-indexed version whenever possible for performance
reasons.
The start
and end
parameters only affect the
amount of web content articles returned as results, not the total number
of hits.
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.
searchJournalArticles
in interface JournalArticleLocalService
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, the
primary key of the class name associated with the article, or
JournalArticleConstants.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwisearticleId
- the article ID keywords (space separated, 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
)status
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.ddmStructureKey
- the primary key of the web content article's DDM
structureddmTemplateKey
- the primary key of the web content article's DDM
templateparams
- the finder parameters (optionally null
). The
includeDiscussions
parameter can be set to
true
to search for the keywords in the web content
article discussions.andSearch
- whether every field must match its value or keywords,
or just one field must matchstart
- 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)sort
- the field, type, and direction by which to sort (optionally
null
)BaseModelSearchResult
containing the total number of
hits and an ordered range of all the matching web content
articles ordered by sort
PortalException
- if a portal exception occurredpublic com.liferay.portal.kernel.search.BaseModelSearchResult<JournalArticle> searchJournalArticles(long groupId, long userId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
BaseModelSearchResult
containing the total number of
hits and an ordered range of all the web content articles matching the
parameters using the indexer, including the web content article's creator
ID and status. It is preferable to use this method instead of the
non-indexed version whenever possible for performance reasons.
The start
and end
parameters only affect the
amount of web content articles returned as results, not the total number
of hits.
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.
searchJournalArticles
in interface JournalArticleLocalService
groupId
- the primary key of the group (optionally 0
)userId
- the primary key of the user searching for web content
articlescreatorUserId
- the primary key of the web content article's
creatorstatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.start
- the lower bound of the range of web content articles to
returnend
- the upper bound of the range of web content articles to
return (not inclusive)BaseModelSearchResult
containing the total number of
hits and an ordered range of all the matching web content
articles ordered by sort
PortalException
- if a portal exception occurredpublic void setTreePaths(long folderId, java.lang.String treePath, boolean reindex) throws com.liferay.portal.kernel.exception.PortalException
setTreePaths
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
public void subscribe(long userId, long groupId, long articleId) throws com.liferay.portal.kernel.exception.PortalException
subscribe
in interface JournalArticleLocalService
userId
- the primary key of the user to be subscribedgroupId
- the primary key of the folder's grouparticleId
- the primary key of the article to subscribe toPortalException
- if a portal exception occurredpublic void subscribeStructure(long groupId, long userId, long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException
subscribeStructure
in interface JournalArticleLocalService
groupId
- the primary key of the folder's groupuserId
- the primary key of the user to be subscribedddmStructureId
- the primary key of the structure to subscribe toPortalException
- if a portal exception occurredpublic void unsubscribe(long userId, long groupId, long articleId) throws com.liferay.portal.kernel.exception.PortalException
unsubscribe
in interface JournalArticleLocalService
userId
- the primary key of the user to be subscribedgroupId
- the primary key of the folder's grouparticleId
- the primary key of the article to unsubscribe fromPortalException
- if a portal exception occurredpublic void unsubscribeStructure(long groupId, long userId, long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException
unsubscribeStructure
in interface JournalArticleLocalService
groupId
- the primary key of the folder's groupuserId
- the primary key of the user to be subscribedddmStructureId
- the primary key of the structure to subscribe toPortalException
- if a portal exception occurredpublic JournalArticle updateArticle(long userId, long groupId, long folderId, java.lang.String articleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateArticle
in interface JournalArticleLocalService
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
descriptionsfriendlyURLMap
- the web content article's locales and localized
friendly URLscontent
- the HTML content wrapped in XML. For more information,
see the content example in the addArticle(String, long,
long, long, long, long, String, boolean, double, Map, Map, Map,
String, String, String, String, int, int, int, int, int, int,
int, int, int, int, boolean, int, int, int, int, int, boolean,
boolean, boolean, String, File, Map, String, ServiceContext)
description.ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatelayoutUuid
- the unique string identifying the web content
article's display pagedisplayDateMonth
- the month the web content article is set to
displaydisplayDateDay
- the calendar day the web content article is set to
displaydisplayDateYear
- the year the web content article is set to
displaydisplayDateHour
- the hour the web content article is set to
displaydisplayDateMinute
- the minute the web content article is set to
displayexpirationDateMonth
- the month the web content article is set to
expireexpirationDateDay
- the calendar day the web content article is set
to expireexpirationDateYear
- the year the web content article is set to
expireexpirationDateHour
- the hour the web content article is set to
expireexpirationDateMinute
- the minute the web content article is set to
expireneverExpire
- whether the web content article is not set to auto
expirereviewDateMonth
- the month the web content article is set for
reviewreviewDateDay
- the calendar day the web content article is set for
reviewreviewDateYear
- the year the web content article is set for reviewreviewDateHour
- the hour the web content article is set for reviewreviewDateMinute
- the minute the web content article is set for
reviewneverReview
- whether the web content article is not set for reviewindexable
- whether the web content is searchablesmallImage
- whether to update web content article's a small image.
A file must be passed in as smallImageFile
value,
otherwise the current small image is deleted.smallImageURL
- the web content article's small image URL
(optionally null
)smallImageFile
- the web content article's new small image file
(optionally null
). Must pass in
smallImage
value of true
to replace the
article's small image file.images
- the web content's images (optionally null
)articleURL
- the web content article's accessible URL (optionally
null
)serviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title , and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants#UPDATE
, the invocation is considered a web
content update activity; otherwise it is considered a web content
add activity.PortalException
- if a portal exception occurredpublic JournalArticle updateArticle(long userId, long groupId, long folderId, java.lang.String articleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String layoutUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateArticle
in interface JournalArticleLocalService
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 addArticle(String, long,
long, long, long, long, String, boolean, double, Map, Map, Map,
String, String, String, String, int, int, int, int, int, int,
int, int, int, int, boolean, int, int, int, int, int, boolean,
boolean, boolean, String, File, Map, String, ServiceContext)
description.layoutUuid
- the unique string identifying the web content
article's display pageserviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title, and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants#UPDATE
, the invocation is considered a web
content update activity; otherwise it is considered a web content
add activity.PortalException
- if a portal exception occurredpublic JournalArticle updateArticle(long userId, long groupId, long folderId, java.lang.String articleId, double version, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, java.util.Map<java.lang.String,byte[]> images, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateArticle
in interface JournalArticleLocalService
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 addArticle(String, long,
long, long, long, long, String, boolean, double, Map, Map, Map,
String, String, String, String, int, int, int, int, int, int,
int, int, int, int, boolean, int, int, int, int, int, boolean,
boolean, boolean, String, File, Map, String, ServiceContext)
description.ddmStructureKey
- the primary key of the web content article's DDM
structure, if the article is related to a DDM structure, or
null
otherwiseddmTemplateKey
- the primary key of the web content article's DDM
templatelayoutUuid
- the unique string identifying the web content
article's display pagedisplayDateMonth
- the month the web content article is set to
displaydisplayDateDay
- the calendar day the web content article is set to
displaydisplayDateYear
- the year the web content article is set to
displaydisplayDateHour
- the hour the web content article is set to
displaydisplayDateMinute
- the minute the web content article is set to
displayexpirationDateMonth
- the month the web content article is set to
expireexpirationDateDay
- the calendar day the web content article is set
to expireexpirationDateYear
- the year the web content article is set to
expireexpirationDateHour
- the hour the web content article is set to
expireexpirationDateMinute
- the minute the web content article is set to
expireneverExpire
- whether the web content article is not set to auto
expirereviewDateMonth
- the month the web content article is set for
reviewreviewDateDay
- the calendar day the web content article is set for
reviewreviewDateYear
- the year the web content article is set for reviewreviewDateHour
- the hour the web content article is set for reviewreviewDateMinute
- the minute the web content article is set for
reviewneverReview
- whether the web content article is not set for reviewindexable
- whether the web content is searchablesmallImage
- whether to update web content article's a small image.
A file must be passed in as smallImageFile
value,
otherwise the current small image is deleted.smallImageURL
- the web content article's small image URL
(optionally null
)smallImageFile
- the web content article's new small image file
(optionally null
). Must pass in
smallImage
value of true
to replace the
article's small image file.images
- the web content's images (optionally null
)articleURL
- the web content article's accessible URL (optionally
null
)serviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title , and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants#UPDATE
, the invocation is considered a web
content update activity; otherwise it is considered a web content
add activity.PortalException
- if a portal exception occurredpublic JournalArticle updateArticle(long userId, long groupId, long folderId, java.lang.String articleId, double version, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateArticle
in interface JournalArticleLocalService
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 versioncontent
- the HTML content wrapped in XML. For more information,
see the content example in the addArticle(String, long,
long, long, long, long, String, boolean, double, Map, Map, Map,
String, String, String, String, int, int, int, int, int, int,
int, int, int, int, boolean, int, int, int, int, int, boolean,
boolean, boolean, String, File, Map, String, ServiceContext)
description.serviceContext
- the service context to be applied. Can set the
modification date, expando bridge attributes, asset category IDs,
asset tag names, asset link entry IDs, asset priority, workflow
actions, URL title, and can set whether to add the default
command update for the web content article. With respect to
social activities, by setting the service context's command to
Constants#UPDATE
, the invocation is considered a web
content update activity; otherwise it is considered a web content
add activity.PortalException
- if a portal exception occurredpublic JournalArticle updateArticle(long id, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
updateArticle
in interface JournalArticleLocalService
id
- the primary key of the web content articleurlTitle
- the web content article's URL titlePortalException
- if a portal exception occurredpublic JournalArticle updateArticleDefaultValues(long userId, long groupId, java.lang.String articleId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String content, java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, int reviewDateMonth, int reviewDateDay, int reviewDateYear, int reviewDateHour, int reviewDateMinute, boolean neverReview, boolean indexable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateArticleDefaultValues
in interface JournalArticleLocalService
com.liferay.portal.kernel.exception.PortalException
public JournalArticle updateArticleTranslation(long groupId, java.lang.String articleId, double version, java.util.Locale locale, java.lang.String title, java.lang.String description, java.lang.String content, java.util.Map<java.lang.String,byte[]> images, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateArticleTranslation
in interface JournalArticleLocalService
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 addArticle(String, long,
long, long, long, long, String, boolean, double, Map, Map, Map,
String, String, String, String, int, int, int, int, int, int,
int, int, int, int, boolean, int, int, int, int, int, boolean,
boolean, boolean, String, File, Map, String, ServiceContext)
description.images
- the web content's imagesserviceContext
- the service context to be applied. Can set the
modification date and URL title for the web content article.PortalException
- if a portal exception occurredpublic void updateAsset(long userId, JournalArticle article, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds, java.lang.Double priority) throws com.liferay.portal.kernel.exception.PortalException
updateAsset
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
article's assetarticle
- the web content articleassetCategoryIds
- the primary keys of the new asset categoriesassetTagNames
- the new asset tag namesassetLinkEntryIds
- the primary keys of the new asset link entriespriority
- the priority of the assetPortalException
- if a portal exception occurredpublic void updateDDMTemplateKey(long groupId, long classNameId, java.lang.String oldDDMTemplateKey, java.lang.String newDDMTemplateKey)
updateDDMTemplateKey
in interface JournalArticleLocalService
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.CLASS_NAME_ID_DEFAULT in the journal-api
module otherwiseoldDDMTemplateKey
- the primary key of the web content article's old
DDM templatenewDDMTemplateKey
- the primary key of the web content article's new
DDM templatepublic JournalArticle updateJournalArticle(JournalArticle journalArticle)
Important: Inspect JournalArticleLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateJournalArticle
in interface JournalArticleLocalService
journalArticle
- the journal articlepublic JournalArticle updateStatus(long userId, JournalArticle article, int status, java.lang.String articleURL, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
article's statusarticle
- the web content articlestatus
- 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, status date, and portlet preferences. 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.workflowContext
- the web content article's configured workflow
contextPortalException
- if a portal exception occurredpublic JournalArticle updateStatus(long userId, long classPK, int status, java.util.Map<java.lang.String,java.io.Serializable> workflowContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
article's statusclassPK
- the primary key of the DDM structure, if the web content
article is related to a DDM structure, the primary key of the
class associated with the article, or 0
otherwisestatus
- the web content article's workflow status. For more
information see WorkflowConstants
for constants starting
with the "STATUS_" prefix.workflowContext
- the web content article's configured workflowserviceContext
- 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 a portal exception occurredpublic JournalArticle updateStatus(long userId, long groupId, java.lang.String articleId, double version, int status, java.lang.String articleURL, java.util.Map<java.lang.String,java.io.Serializable> workflowContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus
in interface JournalArticleLocalService
userId
- the primary key of the user updating the web content
article's statusgroupId
- 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 URLworkflowContext
- the web content article's configured workflowserviceContext
- 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 a portal exception occurredpublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<JournalArticle> getCTPersistence()
getCTPersistence
in interface JournalArticleLocalService
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<JournalArticle>
public java.lang.Class<JournalArticle> getModelClass()
getModelClass
in interface JournalArticleLocalService
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<JournalArticle>
public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<JournalArticle>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction
in interface JournalArticleLocalService
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<JournalArticle>
E extends java.lang.Throwable
public JournalArticleLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<JournalArticleLocalService>
public void setWrappedService(JournalArticleLocalService journalArticleLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<JournalArticleLocalService>