public class JournalUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_STACK_SIZE |
static java.lang.String[] |
SELECTED_FIELD_NAMES |
Constructor and Description |
---|
JournalUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addAllReservedEls(com.liferay.portal.kernel.xml.Element rootElement,
java.util.Map<java.lang.String,java.lang.String> tokens,
JournalArticle article,
java.lang.String languageId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static void |
addRecentArticle(javax.portlet.PortletRequest portletRequest,
JournalArticle article) |
static void |
addRecentDDMStructure(javax.portlet.PortletRequest portletRequest,
com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure) |
static void |
addRecentDDMTemplate(javax.portlet.PortletRequest portletRequest,
com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate) |
static void |
addReservedEl(com.liferay.portal.kernel.xml.Element rootElement,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String name,
java.util.Date value) |
static void |
addReservedEl(com.liferay.portal.kernel.xml.Element rootElement,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String name,
double value) |
static void |
addReservedEl(com.liferay.portal.kernel.xml.Element rootElement,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String name,
java.lang.String value) |
static java.lang.String |
diffHtml(long groupId,
java.lang.String articleId,
double sourceVersion,
double targetVersion,
java.lang.String languageId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static java.lang.String |
formatVM(java.lang.String vm) |
static java.lang.String |
getAbsolutePath(javax.portlet.PortletRequest portletRequest,
long folderId) |
static com.liferay.portal.kernel.model.Layout |
getArticleLayout(java.lang.String layoutUuid,
long groupId) |
static java.util.List<JournalArticle> |
getArticles(com.liferay.portal.kernel.search.Hits hits) |
static com.liferay.portal.kernel.diff.DiffVersionsInfo |
getDiffVersionsInfo(long groupId,
java.lang.String articleId,
double sourceVersion,
double targetVersion) |
static boolean |
getEmailArticleAnyEventEnabled(JournalGroupServiceConfiguration journalGroupServiceConfiguration) |
static java.util.Map<java.lang.String,java.lang.String> |
getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest,
java.lang.String emailFromAddress,
java.lang.String emailFromName) |
static java.util.Map<java.lang.String,java.lang.String> |
getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest,
java.lang.String emailFromAddress,
java.lang.String emailFromName,
java.lang.String emailType) |
static java.lang.String |
getJournalControlPanelLink(javax.portlet.PortletRequest portletRequest,
long folderId) |
static long |
getPreviewPlid(JournalArticle article,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static java.util.Stack<JournalArticle> |
getRecentArticles(javax.portlet.PortletRequest portletRequest) |
static java.util.Stack<com.liferay.dynamic.data.mapping.model.DDMStructure> |
getRecentDDMStructures(javax.portlet.PortletRequest portletRequest) |
static java.util.Stack<com.liferay.dynamic.data.mapping.model.DDMTemplate> |
getRecentDDMTemplates(javax.portlet.PortletRequest portletRequest) |
static int |
getRestrictionType(long folderId) |
static java.lang.String |
getTemplateScript(com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String languageId,
boolean transform) |
static java.lang.String |
getTemplateScript(long groupId,
java.lang.String ddmTemplateKey,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String languageId) |
static java.lang.String |
getTemplateScript(long groupId,
java.lang.String ddmTemplateKey,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String languageId,
boolean transform) |
static java.util.Map<java.lang.String,java.lang.String> |
getTokens(long articleGroupId,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static java.util.Map<java.lang.String,java.lang.String> |
getTokens(long articleGroupId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static java.lang.String |
getUrlTitle(long id,
java.lang.String title) |
static boolean |
isHead(JournalArticle article) |
static boolean |
isHeadListable(JournalArticle article) |
static boolean |
isLatestArticle(JournalArticle article) |
static boolean |
isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId) |
static boolean |
isSubscribedToFolder(long companyId,
long groupId,
long userId,
long folderId,
boolean recursive) |
static boolean |
isSubscribedToStructure(long companyId,
long groupId,
long userId,
long ddmStructureId) |
static java.lang.String |
mergeArticleContent(java.lang.String curContent,
java.lang.String newContent,
boolean removeNullElements) |
static java.lang.String |
prepareLocalizedContentForImport(java.lang.String content,
java.util.Locale defaultImportLocale) |
static java.lang.String |
removeArticleLocale(com.liferay.portal.kernel.xml.Document document,
java.lang.String content,
java.lang.String languageId) |
static void |
removeArticleLocale(com.liferay.portal.kernel.xml.Element element,
java.lang.String languageId) |
static java.lang.String |
removeOldContent(java.lang.String content,
java.lang.String xsd) |
static void |
removeRecentArticle(javax.portlet.PortletRequest portletRequest,
java.lang.String articleId) |
static void |
removeRecentArticle(javax.portlet.PortletRequest portletRequest,
java.lang.String articleId,
double version) |
static void |
removeRecentDDMStructure(javax.portlet.PortletRequest portletRequest,
java.lang.String ddmStructureKey) |
static void |
removeRecentDDMTemplate(javax.portlet.PortletRequest portletRequest,
java.lang.String ddmTemplateKey) |
static java.lang.String |
transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String viewMode,
java.lang.String languageId,
com.liferay.portal.kernel.xml.Document document,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
java.lang.String script,
java.lang.String langType) |
static java.lang.String |
transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
java.util.Map<java.lang.String,java.lang.String> tokens,
java.lang.String viewMode,
java.lang.String languageId,
com.liferay.portal.kernel.xml.Document document,
com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel,
java.lang.String script,
java.lang.String langType,
boolean propagateException) |
public static final int MAX_STACK_SIZE
public static final java.lang.String[] SELECTED_FIELD_NAMES
public static void addAllReservedEls(com.liferay.portal.kernel.xml.Element rootElement, java.util.Map<java.lang.String,java.lang.String> tokens, JournalArticle article, java.lang.String languageId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public static void addRecentArticle(javax.portlet.PortletRequest portletRequest, JournalArticle article)
public static void addRecentDDMStructure(javax.portlet.PortletRequest portletRequest, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure)
public static void addRecentDDMTemplate(javax.portlet.PortletRequest portletRequest, com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate)
public static void addReservedEl(com.liferay.portal.kernel.xml.Element rootElement, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String name, java.util.Date value)
public static void addReservedEl(com.liferay.portal.kernel.xml.Element rootElement, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String name, double value)
public static void addReservedEl(com.liferay.portal.kernel.xml.Element rootElement, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String name, java.lang.String value)
public static java.lang.String diffHtml(long groupId, java.lang.String articleId, double sourceVersion, double targetVersion, java.lang.String languageId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws java.lang.Exception
java.lang.Exception
public static java.lang.String formatVM(java.lang.String vm)
public static java.lang.String getAbsolutePath(javax.portlet.PortletRequest portletRequest, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Layout getArticleLayout(java.lang.String layoutUuid, long groupId)
public static java.util.List<JournalArticle> getArticles(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.diff.DiffVersionsInfo getDiffVersionsInfo(long groupId, java.lang.String articleId, double sourceVersion, double targetVersion)
public static boolean getEmailArticleAnyEventEnabled(JournalGroupServiceConfiguration journalGroupServiceConfiguration)
public static java.util.Map<java.lang.String,java.lang.String> getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest, java.lang.String emailFromAddress, java.lang.String emailFromName)
public static java.util.Map<java.lang.String,java.lang.String> getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest, java.lang.String emailFromAddress, java.lang.String emailFromName, java.lang.String emailType)
public static java.lang.String getJournalControlPanelLink(javax.portlet.PortletRequest portletRequest, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long getPreviewPlid(JournalArticle article, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws java.lang.Exception
java.lang.Exception
public static java.util.Stack<JournalArticle> getRecentArticles(javax.portlet.PortletRequest portletRequest)
public static java.util.Stack<com.liferay.dynamic.data.mapping.model.DDMStructure> getRecentDDMStructures(javax.portlet.PortletRequest portletRequest)
public static java.util.Stack<com.liferay.dynamic.data.mapping.model.DDMTemplate> getRecentDDMTemplates(javax.portlet.PortletRequest portletRequest)
public static int getRestrictionType(long folderId)
public static java.lang.String getTemplateScript(com.liferay.dynamic.data.mapping.model.DDMTemplate ddmTemplate, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String languageId, boolean transform)
public static java.lang.String getTemplateScript(long groupId, java.lang.String ddmTemplateKey, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String languageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getTemplateScript(long groupId, java.lang.String ddmTemplateKey, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String languageId, boolean transform) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.Map<java.lang.String,java.lang.String> getTokens(long articleGroupId, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.Map<java.lang.String,java.lang.String> getTokens(long articleGroupId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getUrlTitle(long id, java.lang.String title)
public static boolean isHead(JournalArticle article)
public static boolean isHeadListable(JournalArticle article)
public static boolean isLatestArticle(JournalArticle article)
public static boolean isSubscribedToFolder(long companyId, long groupId, long userId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean isSubscribedToFolder(long companyId, long groupId, long userId, long folderId, boolean recursive) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean isSubscribedToStructure(long companyId, long groupId, long userId, long ddmStructureId)
public static java.lang.String mergeArticleContent(java.lang.String curContent, java.lang.String newContent, boolean removeNullElements)
public static java.lang.String prepareLocalizedContentForImport(java.lang.String content, java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
com.liferay.portal.kernel.exception.LocaleException
public static java.lang.String removeArticleLocale(com.liferay.portal.kernel.xml.Document document, java.lang.String content, java.lang.String languageId)
public static void removeArticleLocale(com.liferay.portal.kernel.xml.Element element, java.lang.String languageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String removeOldContent(java.lang.String content, java.lang.String xsd)
public static void removeRecentArticle(javax.portlet.PortletRequest portletRequest, java.lang.String articleId)
public static void removeRecentArticle(javax.portlet.PortletRequest portletRequest, java.lang.String articleId, double version)
public static void removeRecentDDMStructure(javax.portlet.PortletRequest portletRequest, java.lang.String ddmStructureKey)
public static void removeRecentDDMTemplate(javax.portlet.PortletRequest portletRequest, java.lang.String ddmTemplateKey)
public static java.lang.String transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String viewMode, java.lang.String languageId, com.liferay.portal.kernel.xml.Document document, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, java.lang.String script, java.lang.String langType) throws java.lang.Exception
java.lang.Exception
public static java.lang.String transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.util.Map<java.lang.String,java.lang.String> tokens, java.lang.String viewMode, java.lang.String languageId, com.liferay.portal.kernel.xml.Document document, com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, java.lang.String script, java.lang.String langType, boolean propagateException) throws java.lang.Exception
java.lang.Exception