com.liferay.portlet.journal.service.impl
Class JournalArticleLocalServiceImpl
java.lang.Object
com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl
com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl
- All Implemented Interfaces:
- 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, 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, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
Method Summary |
JournalArticle |
addArticle(long userId,
long groupId,
String articleId,
boolean autoArticleId,
double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
|
void |
addArticleResources(JournalArticle article,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addArticleResources(JournalArticle article,
String[] communityPermissions,
String[] guestPermissions)
|
void |
addArticleResources(long groupId,
String articleId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addArticleResources(long groupId,
String articleId,
String[] communityPermissions,
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)
|
JournalArticle |
expireArticle(long userId,
long groupId,
String articleId,
double version,
String articleURL,
ServiceContext serviceContext)
|
protected void |
format(long groupId,
String articleId,
double version,
boolean incrementVersion,
Element root,
Map<String,byte[]> images)
|
protected String |
format(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 |
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)
|
List<JournalArticle> |
getCompanyArticles(long companyId,
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 |
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 |
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)
|
boolean |
hasArticle(long groupId,
String articleId)
|
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 smallFile,
byte[] smallBytes)
|
List<JournalArticle> |
search(long companyId,
long groupId,
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,
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,
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)
|
int |
searchCount(long companyId,
long groupId,
String keywords,
Double version,
String type,
String structureId,
String templateId,
Date displayDateGT,
Date displayDateLT,
int status,
Date reviewDate)
|
int |
searchCount(long companyId,
long groupId,
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,
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)
|
JournalArticle |
updateArticle(long userId,
long groupId,
String articleId,
double version,
String content)
|
JournalArticle |
updateArticle(long userId,
long groupId,
String articleId,
double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
|
void |
updateAsset(long userId,
JournalArticle article,
long[] assetCategoryIds,
String[] assetTagNames)
|
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)
|
protected void |
updateUrlTitles(long groupId,
String articleId,
String urlTitle)
|
protected void |
validate(long companyId,
long groupId,
String articleId,
boolean autoArticleId,
double version,
String title,
String content,
String type,
String structureId,
String templateId,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
|
protected void |
validate(long companyId,
long groupId,
String title,
String content,
String type,
String structureId,
String templateId,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
|
protected void |
validate(String articleId)
|
Methods inherited from class com.liferay.portlet.journal.service.base.JournalArticleLocalServiceBaseImpl |
addJournalArticle, createJournalArticle, deleteJournalArticle, deleteJournalArticle, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, 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, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, 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, 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,
String articleId,
boolean autoArticleId,
double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(JournalArticle article,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(JournalArticle article,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(long groupId,
String articleId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addArticleResources
public void addArticleResources(long groupId,
String articleId,
String[] communityPermissions,
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
expireArticle
public JournalArticle expireArticle(long userId,
long groupId,
String articleId,
double version,
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
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,
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
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
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,
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,
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,
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
searchCount
public int searchCount(long companyId,
long groupId,
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,
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,
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
updateArticle
public JournalArticle updateArticle(long userId,
long groupId,
String articleId,
double version,
String content)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateArticle
public JournalArticle updateArticle(long userId,
long groupId,
String articleId,
double version,
String title,
String description,
String content,
String type,
String structureId,
String templateId,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
int reviewDateMonth,
int reviewDateDay,
int reviewDateYear,
int reviewDateHour,
int reviewDateMinute,
boolean neverReview,
boolean indexable,
boolean smallImage,
String smallImageURL,
File smallFile,
Map<String,byte[]> images,
String articleURL,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public void updateAsset(long userId,
JournalArticle article,
long[] assetCategoryIds,
String[] assetTagNames)
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
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(long groupId,
String articleId,
double version,
boolean incrementVersion,
Element root,
Map<String,byte[]> images)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
format
protected String format(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
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
notifySubscribers
protected void notifySubscribers(JournalArticle article,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
File smallFile,
byte[] smallBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
sendEmail
protected void sendEmail(JournalArticle article,
String articleURL,
PortletPreferences preferences,
String emailType)
throws IOException,
PortalException,
SystemException
- Throws:
IOException
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,
String articleId,
boolean autoArticleId,
double version,
String title,
String content,
String type,
String structureId,
String templateId,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(long companyId,
long groupId,
String title,
String content,
String type,
String structureId,
String templateId,
boolean smallImage,
String smallImageURL,
File smallFile,
byte[] smallBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(String articleId)
throws PortalException
- Throws:
PortalException