Liferay 6.0.5

com.liferay.portlet.journal.util
Class JournalUtil

java.lang.Object
  extended by com.liferay.portlet.journal.util.JournalUtil

public class JournalUtil
extends Object


Field Summary
static int MAX_STACK_SIZE
           
static String POP_PORTLET_PREFIX
           
static String XML_INDENT
           
 
Constructor Summary
JournalUtil()
           
 
Method Summary
static void addAllReservedEls(Element root, Map<String,String> tokens, JournalArticle article)
           
static void addRecentArticle(PortletRequest portletRequest, JournalArticle article)
           
static void addRecentStructure(PortletRequest portletRequest, JournalStructure structure)
           
static void addRecentTemplate(PortletRequest portletRequest, JournalTemplate template)
           
static void addReservedEl(Element root, Map<String,String> tokens, String name, Date value)
           
static void addReservedEl(Element root, Map<String,String> tokens, String name, double value)
           
static void addReservedEl(Element root, Map<String,String> tokens, String name, String value)
           
static String formatVM(String vm)
           
static String formatXML(Document doc)
           
static String formatXML(String xml)
           
static OrderByComparator getArticleOrderByComparator(String orderByCol, String orderByType)
           
static String getEmailArticleAddedBody(PortletPreferences preferences)
           
static boolean getEmailArticleAddedEnabled(PortletPreferences preferences)
           
static String getEmailArticleAddedSubject(PortletPreferences preferences)
           
static String getEmailArticleApprovalDeniedBody(PortletPreferences preferences)
           
static boolean getEmailArticleApprovalDeniedEnabled(PortletPreferences preferences)
           
static String getEmailArticleApprovalDeniedSubject(PortletPreferences preferences)
           
static String getEmailArticleApprovalGrantedBody(PortletPreferences preferences)
           
static boolean getEmailArticleApprovalGrantedEnabled(PortletPreferences preferences)
           
static String getEmailArticleApprovalGrantedSubject(PortletPreferences preferences)
           
static String getEmailArticleApprovalRequestedBody(PortletPreferences preferences)
           
static boolean getEmailArticleApprovalRequestedEnabled(PortletPreferences preferences)
           
static String getEmailArticleApprovalRequestedSubject(PortletPreferences preferences)
           
static String getEmailArticleReviewBody(PortletPreferences preferences)
           
static boolean getEmailArticleReviewEnabled(PortletPreferences preferences)
           
static String getEmailArticleReviewSubject(PortletPreferences preferences)
           
static String getEmailArticleUpdatedBody(PortletPreferences preferences)
           
static boolean getEmailArticleUpdatedEnabled(PortletPreferences preferences)
           
static String getEmailArticleUpdatedSubject(PortletPreferences preferences)
           
static String getEmailFromAddress(PortletPreferences preferences)
           
static String getEmailFromName(PortletPreferences preferences)
           
static String getMailId(String mx, String articleId)
           
static Stack<JournalArticle> getRecentArticles(PortletRequest portletRequest)
           
static Stack<JournalStructure> getRecentStructures(PortletRequest portletRequest)
           
static Stack<JournalTemplate> getRecentTemplates(PortletRequest portletRequest)
           
static String getTemplateScript(JournalTemplate template, Map<String,String> tokens, String languageId, boolean transform)
           
static String getTemplateScript(long groupId, String templateId, Map<String,String> tokens, String languageId)
           
static String getTemplateScript(long groupId, String templateId, Map<String,String> tokens, String languageId, boolean transform)
           
static Map<String,String> getTokens(long groupId, ThemeDisplay themeDisplay)
           
static Map<String,String> getTokens(long groupId, ThemeDisplay themeDisplay, String xmlRequest)
           
static String getUrlTitle(long id, String title)
           
static String mergeArticleContent(String curContent, String newContent)
           
static void removeArticleLocale(Element el, String languageId)
           
static String removeArticleLocale(String content, String languageId)
           
static String removeOldContent(String content, String xsd)
           
static void removeRecentArticle(PortletRequest portletRequest, String articleId)
           
static void removeRecentArticle(PortletRequest portletRequest, String articleId, double version)
           
static void removeRecentStructure(PortletRequest portletRequest, String structureId)
           
static void removeRecentTemplate(PortletRequest portletRequest, String templateId)
           
static String transform(ThemeDisplay themeDisplay, Map<String,String> tokens, String viewMode, String languageId, String xml, String script, String langType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_STACK_SIZE

public static final int MAX_STACK_SIZE
See Also:
Constant Field Values

POP_PORTLET_PREFIX

public static final String POP_PORTLET_PREFIX
See Also:
Constant Field Values

XML_INDENT

public static final String XML_INDENT
See Also:
Constant Field Values
Constructor Detail

JournalUtil

public JournalUtil()
Method Detail

addAllReservedEls

public static void addAllReservedEls(Element root,
                                     Map<String,String> tokens,
                                     JournalArticle article)

addRecentArticle

public static void addRecentArticle(PortletRequest portletRequest,
                                    JournalArticle article)

addRecentStructure

public static void addRecentStructure(PortletRequest portletRequest,
                                      JournalStructure structure)

addRecentTemplate

public static void addRecentTemplate(PortletRequest portletRequest,
                                     JournalTemplate template)

addReservedEl

public static void addReservedEl(Element root,
                                 Map<String,String> tokens,
                                 String name,
                                 Date value)

addReservedEl

public static void addReservedEl(Element root,
                                 Map<String,String> tokens,
                                 String name,
                                 double value)

addReservedEl

public static void addReservedEl(Element root,
                                 Map<String,String> tokens,
                                 String name,
                                 String value)

formatVM

public static String formatVM(String vm)

formatXML

public static String formatXML(Document doc)
                        throws IOException
Throws:
IOException

formatXML

public static String formatXML(String xml)
                        throws org.dom4j.DocumentException,
                               IOException
Throws:
org.dom4j.DocumentException
IOException

getArticleOrderByComparator

public static OrderByComparator getArticleOrderByComparator(String orderByCol,
                                                            String orderByType)

getEmailArticleAddedBody

public static String getEmailArticleAddedBody(PortletPreferences preferences)

getEmailArticleAddedEnabled

public static boolean getEmailArticleAddedEnabled(PortletPreferences preferences)

getEmailArticleAddedSubject

public static String getEmailArticleAddedSubject(PortletPreferences preferences)

getEmailArticleApprovalDeniedBody

public static String getEmailArticleApprovalDeniedBody(PortletPreferences preferences)

getEmailArticleApprovalDeniedEnabled

public static boolean getEmailArticleApprovalDeniedEnabled(PortletPreferences preferences)

getEmailArticleApprovalDeniedSubject

public static String getEmailArticleApprovalDeniedSubject(PortletPreferences preferences)

getEmailArticleApprovalGrantedBody

public static String getEmailArticleApprovalGrantedBody(PortletPreferences preferences)

getEmailArticleApprovalGrantedEnabled

public static boolean getEmailArticleApprovalGrantedEnabled(PortletPreferences preferences)

getEmailArticleApprovalGrantedSubject

public static String getEmailArticleApprovalGrantedSubject(PortletPreferences preferences)

getEmailArticleApprovalRequestedBody

public static String getEmailArticleApprovalRequestedBody(PortletPreferences preferences)

getEmailArticleApprovalRequestedEnabled

public static boolean getEmailArticleApprovalRequestedEnabled(PortletPreferences preferences)

getEmailArticleApprovalRequestedSubject

public static String getEmailArticleApprovalRequestedSubject(PortletPreferences preferences)

getEmailArticleReviewBody

public static String getEmailArticleReviewBody(PortletPreferences preferences)

getEmailArticleReviewEnabled

public static boolean getEmailArticleReviewEnabled(PortletPreferences preferences)

getEmailArticleReviewSubject

public static String getEmailArticleReviewSubject(PortletPreferences preferences)

getEmailArticleUpdatedBody

public static String getEmailArticleUpdatedBody(PortletPreferences preferences)

getEmailArticleUpdatedEnabled

public static boolean getEmailArticleUpdatedEnabled(PortletPreferences preferences)

getEmailArticleUpdatedSubject

public static String getEmailArticleUpdatedSubject(PortletPreferences preferences)

getEmailFromAddress

public static String getEmailFromAddress(PortletPreferences preferences)

getEmailFromName

public static String getEmailFromName(PortletPreferences preferences)

getMailId

public static String getMailId(String mx,
                               String articleId)

getRecentArticles

public static Stack<JournalArticle> getRecentArticles(PortletRequest portletRequest)

getRecentStructures

public static Stack<JournalStructure> getRecentStructures(PortletRequest portletRequest)

getRecentTemplates

public static Stack<JournalTemplate> getRecentTemplates(PortletRequest portletRequest)

getTemplateScript

public static String getTemplateScript(JournalTemplate template,
                                       Map<String,String> tokens,
                                       String languageId,
                                       boolean transform)

getTemplateScript

public static String getTemplateScript(long groupId,
                                       String templateId,
                                       Map<String,String> tokens,
                                       String languageId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getTemplateScript

public static String getTemplateScript(long groupId,
                                       String templateId,
                                       Map<String,String> tokens,
                                       String languageId,
                                       boolean transform)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getTokens

public static Map<String,String> getTokens(long groupId,
                                           ThemeDisplay themeDisplay)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getTokens

public static Map<String,String> getTokens(long groupId,
                                           ThemeDisplay themeDisplay,
                                           String xmlRequest)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getUrlTitle

public static String getUrlTitle(long id,
                                 String title)

mergeArticleContent

public static String mergeArticleContent(String curContent,
                                         String newContent)

removeArticleLocale

public static void removeArticleLocale(Element el,
                                       String languageId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

removeArticleLocale

public static String removeArticleLocale(String content,
                                         String languageId)

removeOldContent

public static String removeOldContent(String content,
                                      String xsd)

removeRecentArticle

public static void removeRecentArticle(PortletRequest portletRequest,
                                       String articleId)

removeRecentArticle

public static void removeRecentArticle(PortletRequest portletRequest,
                                       String articleId,
                                       double version)

removeRecentStructure

public static void removeRecentStructure(PortletRequest portletRequest,
                                         String structureId)

removeRecentTemplate

public static void removeRecentTemplate(PortletRequest portletRequest,
                                        String templateId)

transform

public static String transform(ThemeDisplay themeDisplay,
                               Map<String,String> tokens,
                               String viewMode,
                               String languageId,
                               String xml,
                               String script,
                               String langType)
                        throws Exception
Throws:
Exception

Liferay 6.0.5