Liferay 6.1.2-ce-ga3

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
           
 
Constructor Summary
JournalUtil()
           
 
Method Summary
static void addAllReservedEls(Element rootElement, Map<String,String> tokens, JournalArticle article, String languageId, ThemeDisplay themeDisplay)
           
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 rootElement, Map<String,String> tokens, String name, Date value)
           
static void addReservedEl(Element rootElement, Map<String,String> tokens, String name, double value)
           
static void addReservedEl(Element rootElement, Map<String,String> tokens, String name, String value)
           
static String formatVM(String vm)
           
static OrderByComparator getArticleOrderByComparator(String orderByCol, String orderByType)
           
static Tuple getArticles(Hits hits)
           
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, long companyId)
           
static String getEmailFromName(PortletPreferences preferences, long companyId)
           
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, boolean removeNullElements)
           
static String processXMLAttributes(String xsd)
           
static void removeArticleLocale(Element element, 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
Constructor Detail

JournalUtil

public JournalUtil()
Method Detail

addAllReservedEls

public static void addAllReservedEls(Element rootElement,
                                     Map<String,String> tokens,
                                     JournalArticle article,
                                     String languageId,
                                     ThemeDisplay themeDisplay)

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 rootElement,
                                 Map<String,String> tokens,
                                 String name,
                                 Date value)

addReservedEl

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

addReservedEl

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

formatVM

public static String formatVM(String vm)

getArticleOrderByComparator

public static OrderByComparator getArticleOrderByComparator(String orderByCol,
                                                            String orderByType)

getArticles

public static Tuple getArticles(Hits hits)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

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,
                                         long companyId)
                                  throws SystemException
Throws:
SystemException

getEmailFromName

public static String getEmailFromName(PortletPreferences preferences,
                                      long companyId)
                               throws SystemException
Throws:
SystemException

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,
                                         boolean removeNullElements)

processXMLAttributes

public static String processXMLAttributes(String xsd)
                                   throws PortalException
Throws:
PortalException

removeArticleLocale

public static void removeArticleLocale(Element element,
                                       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.1.2-ce-ga3