com.liferay.portlet.journal.service.impl
Class JournalArticleLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl
com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, JournalArticleLocalService
public class JournalArticleLocalServiceImpl
- extends JournalArticleLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, journalArticleFinder, journalArticleImageLocalService, journalArticleImagePersistence, journalArticleLocalService, journalArticlePersistence, journalArticleResourceLocalService, journalArticleResourcePersistence, journalArticleService, journalContentSearchLocalService, journalContentSearchPersistence, journalFeedFinder, journalFeedLocalService, journalFeedPersistence, journalFeedService, journalStructureFinder, journalStructureLocalService, journalStructurePersistence, journalStructureService, journalTemplateFinder, journalTemplateLocalService, journalTemplatePersistence, journalTemplateService, mailService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
Method Summary |
JournalArticle |
addArticle(long userId,
long groupId,
long classNameId,
long classPK,
String articleId,
boolean autoArticleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String type,
String structureId,
String templateId,
String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallImageFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
|
void |
addArticleResources(JournalArticle article,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addArticleResources(JournalArticle article,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addArticleResources(long groupId,
String articleId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addArticleResources(long groupId,
String articleId,
String[] groupPermissions,
String[] guestPermissions)
|
JournalArticle |
checkArticleResourcePrimKey(long groupId,
String articleId,
double version)
|
void |
checkArticles()
|
void |
checkNewLine(long groupId,
String articleId,
double version)
|
protected void |
checkStructure(Document contentDoc,
Element root)
|
protected void |
checkStructure(JournalArticle article)
|
void |
checkStructure(long groupId,
String articleId,
double version)
|
protected void |
checkStructureField(Element el,
Document contentDoc)
|
JournalArticle |
copyArticle(long userId,
long groupId,
String oldArticleId,
String newArticleId,
boolean autoArticleId,
double version)
|
protected void |
copyArticleImages(JournalArticle oldArticle,
JournalArticle newArticle)
|
void |
deleteArticle(JournalArticle article,
String articleURL,
ServiceContext serviceContext)
|
void |
deleteArticle(long groupId,
String articleId,
double version,
String articleURL,
ServiceContext serviceContext)
|
void |
deleteArticle(long groupId,
String articleId,
ServiceContext serviceContext)
|
void |
deleteArticles(long groupId)
|
void |
deleteLayoutArticleReferences(long groupId,
String layoutUuid)
|
JournalArticle |
expireArticle(long userId,
long groupId,
String articleId,
double version,
String articleURL,
ServiceContext serviceContext)
|
void |
expireArticle(long userId,
long groupId,
String articleId,
String articleURL,
ServiceContext serviceContext)
|
protected void |
format(User user,
long groupId,
String articleId,
double version,
boolean incrementVersion,
Element root,
Map<String,byte[]> images)
|
protected String |
format(User user,
long groupId,
String articleId,
double version,
boolean incrementVersion,
String content,
String structureId,
Map<String,byte[]> images)
|
protected void |
formatImage(long groupId,
String articleId,
double version,
boolean incrementVersion,
Element el,
String elInstanceId,
String elName,
Map<String,byte[]> images)
|
JournalArticle |
getArticle(long id)
|
JournalArticle |
getArticle(long groupId,
String articleId)
|
JournalArticle |
getArticle(long groupId,
String articleId,
double version)
|
JournalArticle |
getArticle(long groupId,
String className,
long classPK)
|
JournalArticle |
getArticleByUrlTitle(long groupId,
String urlTitle)
|
String |
getArticleContent(JournalArticle article,
String templateId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
|
String |
getArticleContent(long groupId,
String articleId,
double version,
String viewMode,
String templateId,
String languageId,
ThemeDisplay themeDisplay)
|
String |
getArticleContent(long groupId,
String articleId,
double version,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
|
String |
getArticleContent(long groupId,
String articleId,
String viewMode,
String templateId,
String languageId,
ThemeDisplay themeDisplay)
|
String |
getArticleContent(long groupId,
String articleId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(JournalArticle article,
String templateId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
String articleId,
double version,
String templateId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
String articleId,
double version,
String templateId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
String articleId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
String articleId,
String templateId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
String articleId,
String templateId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
|
JournalArticleDisplay |
getArticleDisplay(long groupId,
String articleId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
|
List<JournalArticle> |
getArticles()
|
List<JournalArticle> |
getArticles(long groupId)
|
List<JournalArticle> |
getArticles(long groupId,
int start,
int end)
|
List<JournalArticle> |
getArticles(long groupId,
int start,
int end,
OrderByComparator obc)
|
List<JournalArticle> |
getArticles(long groupId,
String articleId)
|
List<JournalArticle> |
getArticlesBySmallImageId(long smallImageId)
|
int |
getArticlesCount(long groupId)
|
protected long |
getClassTypeId(JournalArticle article)
|
List<JournalArticle> |
getCompanyArticles(long companyId,
double version,
int status,
int start,
int end)
|
List<JournalArticle> |
getCompanyArticles(long companyId,
int status,
int start,
int end)
|
int |
getCompanyArticlesCount(long companyId,
double version,
int status,
int start,
int end)
|
int |
getCompanyArticlesCount(long companyId,
int status)
|
protected Date[] |
getDateInterval(long groupId,
String articleId,
Date earliestDisplayDate,
Date latestExpirationDate)
|
JournalArticle |
getDisplayArticle(long groupId,
String articleId)
|
JournalArticle |
getDisplayArticleByUrlTitle(long groupId,
String urlTitle)
|
JournalArticle |
getLatestArticle(long resourcePrimKey)
|
JournalArticle |
getLatestArticle(long resourcePrimKey,
int status)
|
JournalArticle |
getLatestArticle(long resourcePrimKey,
int status,
boolean preferApproved)
|
JournalArticle |
getLatestArticle(long groupId,
String articleId)
|
JournalArticle |
getLatestArticle(long groupId,
String articleId,
int status)
|
JournalArticle |
getLatestArticle(long groupId,
String className,
long classPK)
|
JournalArticle |
getLatestArticleByUrlTitle(long groupId,
String urlTitle,
int status)
|
double |
getLatestVersion(long groupId,
String articleId)
|
double |
getLatestVersion(long groupId,
String articleId,
int status)
|
List<JournalArticle> |
getStructureArticles(long groupId,
String structureId)
|
List<JournalArticle> |
getStructureArticles(long groupId,
String structureId,
int start,
int end,
OrderByComparator obc)
|
int |
getStructureArticlesCount(long groupId,
String structureId)
|
List<JournalArticle> |
getTemplateArticles(long groupId,
String templateId)
|
List<JournalArticle> |
getTemplateArticles(long groupId,
String templateId,
int start,
int end,
OrderByComparator obc)
|
int |
getTemplateArticlesCount(long groupId,
String templateId)
|
protected String |
getUniqueUrlTitle(long id,
long groupId,
String articleId,
String title)
|
protected String |
getUniqueUrlTitle(long id,
String articleId,
String title,
String oldUrlTitle,
ServiceContext serviceContext)
|
boolean |
hasArticle(long groupId,
String articleId)
|
protected boolean |
hasModifiedLatestApprovedVersion(long groupId,
String articleId,
double version)
|
boolean |
isLatestVersion(long groupId,
String articleId,
double version)
|
boolean |
isLatestVersion(long groupId,
String articleId,
double version,
int status)
|
protected void |
notifySubscribers(JournalArticle article,
ServiceContext serviceContext)
|
JournalArticle |
removeArticleLocale(long groupId,
String articleId,
double version,
String languageId)
|
protected void |
saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes)
|
List<JournalArticle> |
search(long companyId,
long groupId,
long classNameId,
String keywords,
Double version,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
int start,
int end,
OrderByComparator obc)
|
List<JournalArticle> |
search(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String[] structureIds,
String[] templateIds,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
|
List<JournalArticle> |
search(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
|
Hits |
search(long companyId,
long groupId,
long classNameId,
String structureId,
String templateId,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
Sort sort)
|
Hits |
search(long companyId,
long groupId,
long classNameId,
String articleId,
String title,
String description,
String content,
String type,
String status,
String structureId,
String templateId,
LinkedHashMap<String,Object> params,
boolean andSearch,
int start,
int end,
Sort sort)
|
int |
searchCount(long companyId,
long groupId,
long classNameId,
String keywords,
Double version,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate)
|
int |
searchCount(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String[] structureIds,
String[] templateIds,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator)
|
int |
searchCount(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator)
|
protected void |
sendEmail(JournalArticle article,
String articleURL,
PortletPreferences preferences,
String emailType,
ServiceContext serviceContext)
|
void |
subscribe(long userId,
long groupId)
|
void |
unsubscribe(long userId,
long groupId)
|
JournalArticle |
updateArticle(long userId,
long groupId,
String articleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String layoutUuid,
ServiceContext serviceContext)
|
JournalArticle |
updateArticle(long userId,
long groupId,
String articleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String type,
String structureId,
String templateId,
String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallImageFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
|
JournalArticle |
updateArticle(long userId,
long groupId,
String articleId,
double version,
String content,
ServiceContext serviceContext)
|
JournalArticle |
updateArticleTranslation(long groupId,
String articleId,
double version,
Locale locale,
String title,
String description,
String content,
Map<String,byte[]> images)
Deprecated. updateArticleTranslation(long, String, double,
Locale, String, String, String, Map, ServiceContext) |
JournalArticle |
updateArticleTranslation(long groupId,
String articleId,
double version,
Locale locale,
String title,
String description,
String content,
Map<String,byte[]> images,
ServiceContext serviceContext)
|
void |
updateAsset(long userId,
JournalArticle article,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
JournalArticle |
updateContent(long groupId,
String articleId,
double version,
String content)
|
protected void |
updatePreviousApprovedArticle(JournalArticle article)
|
JournalArticle |
updateStatus(long userId,
JournalArticle article,
int status,
String articleURL,
ServiceContext serviceContext)
|
JournalArticle |
updateStatus(long userId,
long classPK,
int status,
ServiceContext serviceContext)
|
JournalArticle |
updateStatus(long userId,
long groupId,
String articleId,
double version,
int status,
String articleURL,
ServiceContext serviceContext)
|
void |
updateTemplateId(long groupId,
long classNameId,
String oldTemplateId,
String newTemplateId)
|
protected void |
updateUrlTitles(long groupId,
String articleId,
String urlTitle)
|
protected void |
validate(long companyId,
long groupId,
long classNameId,
Map<Locale,String> titleMap,
String content,
String type,
String structureId,
String templateId,
Date expirationDate,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
|
protected void |
validate(long companyId,
long groupId,
long classNameId,
String articleId,
boolean autoArticleId,
double version,
Map<Locale,String> titleMap,
String content,
String type,
String structureId,
String templateId,
Date expirationDate,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
|
protected void |
validate(String articleId)
|
protected void |
validateContent(String content)
|
Methods inherited from class com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl |
addJournalArticle, afterPropertiesSet, createJournalArticle, deleteJournalArticle, deleteJournalArticle, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchJournalArticle, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getJournalArticle, getJournalArticleByUuidAndGroupId, getJournalArticleFinder, getJournalArticleImageLocalService, getJournalArticleImagePersistence, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleResourceLocalService, getJournalArticleResourcePersistence, getJournalArticles, getJournalArticlesCount, getJournalArticleService, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getJournalFeedFinder, getJournalFeedLocalService, getJournalFeedPersistence, getJournalFeedService, getJournalStructureFinder, getJournalStructureLocalService, getJournalStructurePersistence, getJournalStructureService, getJournalTemplateFinder, getJournalTemplateLocalService, getJournalTemplatePersistence, getJournalTemplateService, getMailService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setJournalArticleFinder, setJournalArticleImageLocalService, setJournalArticleImagePersistence, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleResourceLocalService, setJournalArticleResourcePersistence, setJournalArticleService, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setJournalFeedFinder, setJournalFeedLocalService, setJournalFeedPersistence, setJournalFeedService, setJournalStructureFinder, setJournalStructureLocalService, setJournalStructurePersistence, setJournalStructureService, setJournalTemplateFinder, setJournalTemplateLocalService, setJournalTemplatePersistence, setJournalTemplateService, setMailService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateJournalArticle, updateJournalArticle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JournalArticleLocalServiceImpl
public JournalArticleLocalServiceImpl()
addArticle
public JournalArticle addArticle(long userId,
long groupId,
long classNameId,
long classPK,
String articleId,
boolean autoArticleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String type,
String structureId,
String templateId,
String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallImageFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(JournalArticle article,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(JournalArticle article,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(long groupId,
String articleId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(long groupId,
String articleId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkArticleResourcePrimKey
public JournalArticle checkArticleResourcePrimKey(long groupId,
String articleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkArticles
public void checkArticles()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkNewLine
public void checkNewLine(long groupId,
String articleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkStructure
public void checkStructure(long groupId,
String articleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
copyArticle
public JournalArticle copyArticle(long userId,
long groupId,
String oldArticleId,
String newArticleId,
boolean autoArticleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteArticle
public void deleteArticle(JournalArticle article,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteArticle
public void deleteArticle(long groupId,
String articleId,
double version,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteArticle
public void deleteArticle(long groupId,
String articleId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteArticles
public void deleteArticles(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteLayoutArticleReferences
public void deleteLayoutArticleReferences(long groupId,
String layoutUuid)
throws SystemException
- Throws:
SystemException
expireArticle
public JournalArticle expireArticle(long userId,
long groupId,
String articleId,
double version,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
expireArticle
public void expireArticle(long userId,
long groupId,
String articleId,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticle
public JournalArticle getArticle(long id)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticle
public JournalArticle getArticle(long groupId,
String articleId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticle
public JournalArticle getArticle(long groupId,
String articleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticle
public JournalArticle getArticle(long groupId,
String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleByUrlTitle
public JournalArticle getArticleByUrlTitle(long groupId,
String urlTitle)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleContent
public String getArticleContent(JournalArticle article,
String templateId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleContent
public String getArticleContent(long groupId,
String articleId,
double version,
String viewMode,
String templateId,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleContent
public String getArticleContent(long groupId,
String articleId,
double version,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleContent
public String getArticleContent(long groupId,
String articleId,
String viewMode,
String templateId,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleContent
public String getArticleContent(long groupId,
String articleId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(JournalArticle article,
String templateId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(long groupId,
String articleId,
double version,
String templateId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(long groupId,
String articleId,
double version,
String templateId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(long groupId,
String articleId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(long groupId,
String articleId,
String templateId,
String viewMode,
String languageId,
int page,
String xmlRequest,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(long groupId,
String articleId,
String templateId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticleDisplay
public JournalArticleDisplay getArticleDisplay(long groupId,
String articleId,
String viewMode,
String languageId,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getArticles
public List<JournalArticle> getArticles()
throws SystemException
- Throws:
SystemException
getArticles
public List<JournalArticle> getArticles(long groupId)
throws SystemException
- Throws:
SystemException
getArticles
public List<JournalArticle> getArticles(long groupId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getArticles
public List<JournalArticle> getArticles(long groupId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getArticles
public List<JournalArticle> getArticles(long groupId,
String articleId)
throws SystemException
- Throws:
SystemException
getArticlesBySmallImageId
public List<JournalArticle> getArticlesBySmallImageId(long smallImageId)
throws SystemException
- Throws:
SystemException
getArticlesCount
public int getArticlesCount(long groupId)
throws SystemException
- Throws:
SystemException
getCompanyArticles
public List<JournalArticle> getCompanyArticles(long companyId,
double version,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyArticles
public List<JournalArticle> getCompanyArticles(long companyId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyArticlesCount
public int getCompanyArticlesCount(long companyId,
double version,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyArticlesCount
public int getCompanyArticlesCount(long companyId,
int status)
throws SystemException
- Throws:
SystemException
getDisplayArticle
public JournalArticle getDisplayArticle(long groupId,
String articleId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDisplayArticleByUrlTitle
public JournalArticle getDisplayArticleByUrlTitle(long groupId,
String urlTitle)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticle
public JournalArticle getLatestArticle(long resourcePrimKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticle
public JournalArticle getLatestArticle(long resourcePrimKey,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticle
public JournalArticle getLatestArticle(long resourcePrimKey,
int status,
boolean preferApproved)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticle
public JournalArticle getLatestArticle(long groupId,
String articleId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticle
public JournalArticle getLatestArticle(long groupId,
String articleId,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticle
public JournalArticle getLatestArticle(long groupId,
String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestArticleByUrlTitle
public JournalArticle getLatestArticleByUrlTitle(long groupId,
String urlTitle,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestVersion
public double getLatestVersion(long groupId,
String articleId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLatestVersion
public double getLatestVersion(long groupId,
String articleId,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getStructureArticles
public List<JournalArticle> getStructureArticles(long groupId,
String structureId)
throws SystemException
- Throws:
SystemException
getStructureArticles
public List<JournalArticle> getStructureArticles(long groupId,
String structureId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getStructureArticlesCount
public int getStructureArticlesCount(long groupId,
String structureId)
throws SystemException
- Throws:
SystemException
getTemplateArticles
public List<JournalArticle> getTemplateArticles(long groupId,
String templateId)
throws SystemException
- Throws:
SystemException
getTemplateArticles
public List<JournalArticle> getTemplateArticles(long groupId,
String templateId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getTemplateArticlesCount
public int getTemplateArticlesCount(long groupId,
String templateId)
throws SystemException
- Throws:
SystemException
hasArticle
public boolean hasArticle(long groupId,
String articleId)
throws SystemException
- Throws:
SystemException
isLatestVersion
public boolean isLatestVersion(long groupId,
String articleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isLatestVersion
public boolean isLatestVersion(long groupId,
String articleId,
double version,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removeArticleLocale
public JournalArticle removeArticleLocale(long groupId,
String articleId,
double version,
String languageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public List<JournalArticle> search(long companyId,
long groupId,
long classNameId,
String keywords,
Double version,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
public List<JournalArticle> search(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
public List<JournalArticle> search(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String[] structureIds,
String[] templateIds,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
public Hits search(long companyId,
long groupId,
long classNameId,
String structureId,
String templateId,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
Sort sort)
throws SystemException
- Throws:
SystemException
search
public Hits search(long companyId,
long groupId,
long classNameId,
String articleId,
String title,
String description,
String content,
String type,
String status,
String structureId,
String templateId,
LinkedHashMap<String,Object> params,
boolean andSearch,
int start,
int end,
Sort sort)
throws SystemException
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long groupId,
long classNameId,
String keywords,
Double version,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate)
throws SystemException
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator)
throws SystemException
- Throws:
SystemException
searchCount
public int searchCount(long companyId,
long groupId,
long classNameId,
String articleId,
Double version,
String title,
String description,
String content,
String type,
String[] structureIds,
String[] templateIds,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate,
boolean andOperator)
throws SystemException
- Throws:
SystemException
subscribe
public void subscribe(long userId,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsubscribe
public void unsubscribe(long userId,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateArticle
public JournalArticle updateArticle(long userId,
long groupId,
String articleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String layoutUuid,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateArticle
public JournalArticle updateArticle(long userId,
long groupId,
String articleId,
double version,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String content,
String type,
String structureId,
String templateId,
String layoutUuid,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallImageFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateArticle
public JournalArticle updateArticle(long userId,
long groupId,
String articleId,
double version,
String content,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateArticleTranslation
public JournalArticle updateArticleTranslation(long groupId,
String articleId,
double version,
Locale locale,
String title,
String description,
String content,
Map<String,byte[]> images)
throws PortalException,
SystemException
- Deprecated.
updateArticleTranslation(long, String, double,
Locale, String, String, String, Map, ServiceContext)
- Throws:
PortalException
SystemException
updateArticleTranslation
public JournalArticle updateArticleTranslation(long groupId,
String articleId,
double version,
Locale locale,
String title,
String description,
String content,
Map<String,byte[]> images,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public void updateAsset(long userId,
JournalArticle article,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateContent
public JournalArticle updateContent(long groupId,
String articleId,
double version,
String content)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateStatus
public JournalArticle updateStatus(long userId,
JournalArticle article,
int status,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateStatus
public JournalArticle updateStatus(long userId,
long classPK,
int status,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateStatus
public JournalArticle updateStatus(long userId,
long groupId,
String articleId,
double version,
int status,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateTemplateId
public void updateTemplateId(long groupId,
long classNameId,
String oldTemplateId,
String newTemplateId)
throws SystemException
- Throws:
SystemException
checkStructure
protected void checkStructure(Document contentDoc,
Element root)
throws PortalException
- Throws:
PortalException
checkStructure
protected void checkStructure(JournalArticle article)
throws DocumentException,
PortalException,
SystemException
- Throws:
DocumentException
PortalException
SystemException
checkStructureField
protected void checkStructureField(Element el,
Document contentDoc)
throws PortalException
- Throws:
PortalException
copyArticleImages
protected void copyArticleImages(JournalArticle oldArticle,
JournalArticle newArticle)
throws Exception
- Throws:
Exception
format
protected void format(User user,
long groupId,
String articleId,
double version,
boolean incrementVersion,
Element root,
Map<String,byte[]> images)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
format
protected String format(User user,
long groupId,
String articleId,
double version,
boolean incrementVersion,
String content,
String structureId,
Map<String,byte[]> images)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
formatImage
protected void formatImage(long groupId,
String articleId,
double version,
boolean incrementVersion,
Element el,
String elInstanceId,
String elName,
Map<String,byte[]> images)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getClassTypeId
protected long getClassTypeId(JournalArticle article)
getDateInterval
protected Date[] getDateInterval(long groupId,
String articleId,
Date earliestDisplayDate,
Date latestExpirationDate)
throws SystemException
- Throws:
SystemException
getUniqueUrlTitle
protected String getUniqueUrlTitle(long id,
long groupId,
String articleId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUniqueUrlTitle
protected String getUniqueUrlTitle(long id,
String articleId,
String title,
String oldUrlTitle,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasModifiedLatestApprovedVersion
protected boolean hasModifiedLatestApprovedVersion(long groupId,
String articleId,
double version)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
notifySubscribers
protected void notifySubscribers(JournalArticle article,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
sendEmail
protected void sendEmail(JournalArticle article,
String articleURL,
PortletPreferences preferences,
String emailType,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePreviousApprovedArticle
protected void updatePreviousApprovedArticle(JournalArticle article)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateUrlTitles
protected void updateUrlTitles(long groupId,
String articleId,
String urlTitle)
throws SystemException
- Throws:
SystemException
validate
protected void validate(long companyId,
long groupId,
long classNameId,
Map<Locale,String> titleMap,
String content,
String type,
String structureId,
String templateId,
Date expirationDate,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(long companyId,
long groupId,
long classNameId,
String articleId,
boolean autoArticleId,
double version,
Map<Locale,String> titleMap,
String content,
String type,
String structureId,
String templateId,
Date expirationDate,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(String articleId)
throws PortalException
- Throws:
PortalException
validateContent
protected void validateContent(String content)
throws PortalException
- Throws:
PortalException