public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_VALUE_UPLOAD_PORTAL |
static String |
DRAFT_ID |
static String |
SLASH |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ajaxRedirect(org.exoplatform.webui.event.Event<? extends org.exoplatform.webui.core.UIComponent> event,
String redirectLink) |
static void |
ajaxRedirect(org.exoplatform.webui.event.Event<? extends org.exoplatform.webui.core.UIComponent> event,
org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode,
Map<String,String[]> params) |
static boolean |
canModifyPagePermission() |
static String |
createFormActionLink(org.exoplatform.webui.core.UIComponent uiComponent,
String action,
String beanId) |
static String |
createURLWithMode(org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode,
Map<String,String[]> params) |
static org.exoplatform.wiki.service.WikiContext |
createWikiContext(UIWikiPortlet wikiPortlet) |
static void |
feedDataForWYSIWYGEditor(UIWikiPageEditForm pageEditForm,
String markup) |
static String |
getActionFromWikiMode(WikiMode mode) |
static String |
getBaseUrl() |
static org.exoplatform.wiki.mow.api.Page |
getCurrentNewDraftWikiPage() |
static org.exoplatform.wiki.mow.api.WikiPreferences |
getCurrentPreferences() |
static String |
getCurrentRequestURL() |
static String |
getCurrentRestURL() |
static String |
getCurrentSpaceName() |
static org.exoplatform.wiki.mow.api.Wiki |
getCurrentWiki() |
static String |
getCurrentWikiNodeUri() |
static org.exoplatform.wiki.mow.api.Page |
getCurrentWikiPage()
Gets current wiki page directly from data base
|
static org.exoplatform.wiki.service.WikiPageParams |
getCurrentWikiPageParams() |
static String |
getCurrentWikiPagePath() |
static String |
getDefaultSyntax() |
static String |
getDraftIdSessionKey() |
static String |
getExtension(String filename) |
static String |
getFullName(String userId) |
static int |
getLimitUploadSize() |
static WikiMode |
getModeFromAction(String actionParam) |
static String |
getPageLink()
Get the full path for current wiki page
|
static String |
getSpaceHomeURL(String spaceGroupId) |
static String |
getSpaceName(org.exoplatform.wiki.mow.api.Wiki wiki) |
static String |
getURLFromParams(org.exoplatform.wiki.service.WikiPageParams params) |
static String |
getWikiOwnerFromWikiId(String wikiId) |
static String |
getWikiTypeFromWikiId(String wikiId) |
static boolean |
isCurrentPagePublic() |
static boolean |
isPagePublic(org.exoplatform.wiki.mow.api.Page page) |
static void |
redirect(String url) |
static void |
redirect(org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode) |
static void |
redirect(org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode,
Map<String,String[]> params) |
static void |
removeWikiContext() |
static String |
renderMacroToXHtml(org.exoplatform.webui.core.UIComponent uiComponent,
String macroName,
String wikiSyntax)
render macro to XHtml string.
|
static org.exoplatform.wiki.service.WikiContext |
setUpWikiContext(UIWikiPortlet wikiPortlet) |
static String |
upperFirstCharacter(String str) |
public static final int DEFAULT_VALUE_UPLOAD_PORTAL
public static final String SLASH
public static final String DRAFT_ID
public static String getSpaceName(org.exoplatform.wiki.mow.api.Wiki wiki) throws Exception
Exceptionpublic static org.exoplatform.wiki.service.WikiPageParams getCurrentWikiPageParams()
throws Exception
Exceptionpublic static org.exoplatform.wiki.mow.api.Page getCurrentWikiPage()
throws Exception
Exceptionpublic static boolean canModifyPagePermission()
throws Exception
Exceptionpublic static boolean isPagePublic(org.exoplatform.wiki.mow.api.Page page)
throws Exception
Exceptionpublic static String getURLFromParams(org.exoplatform.wiki.service.WikiPageParams params) throws Exception
Exceptionpublic static org.exoplatform.wiki.mow.api.Page getCurrentNewDraftWikiPage()
throws Exception
Exceptionpublic static org.exoplatform.wiki.mow.api.Wiki getCurrentWiki()
throws Exception
Exceptionpublic static org.exoplatform.wiki.service.WikiContext setUpWikiContext(UIWikiPortlet wikiPortlet) throws Exception
Exceptionpublic static void feedDataForWYSIWYGEditor(UIWikiPageEditForm pageEditForm, String markup) throws Exception
Exceptionpublic static String getCurrentWikiPagePath() throws Exception
Exceptionpublic static org.exoplatform.wiki.mow.api.WikiPreferences getCurrentPreferences()
throws Exception
Exceptionpublic static org.exoplatform.wiki.service.WikiContext createWikiContext(UIWikiPortlet wikiPortlet) throws Exception
Exceptionpublic static String getCurrentWikiNodeUri() throws Exception
Exceptionpublic static void redirect(org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode)
throws Exception
Exceptionpublic static String getPageLink() throws Exception
Exceptionpublic static void redirect(org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode,
Map<String,String[]> params)
throws Exception
Exceptionpublic static void ajaxRedirect(org.exoplatform.webui.event.Event<? extends org.exoplatform.webui.core.UIComponent> event,
org.exoplatform.wiki.service.WikiPageParams pageParams,
WikiMode mode,
Map<String,String[]> params)
throws Exception
Exceptionpublic static void ajaxRedirect(org.exoplatform.webui.event.Event<? extends org.exoplatform.webui.core.UIComponent> event,
String redirectLink)
throws Exception
Exceptionpublic static String createURLWithMode(org.exoplatform.wiki.service.WikiPageParams pageParams, WikiMode mode, Map<String,String[]> params) throws Exception
Exceptionpublic static String createFormActionLink(org.exoplatform.webui.core.UIComponent uiComponent, String action, String beanId) throws Exception
Exceptionpublic static String getCurrentRestURL()
public static String renderMacroToXHtml(org.exoplatform.webui.core.UIComponent uiComponent, String macroName, String wikiSyntax)
uiComponent - - component that contain the macro.macroName - - name of macrowikiSyntax - - wiki syntax referred from SyntaxSyntax.XHTML_1_0public static int getLimitUploadSize()
public static String getDraftIdSessionKey()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.