Class RelatedUtil
- java.lang.Object
-
- org.exoplatform.wiki.service.related.RelatedUtil
-
public final class RelatedUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WikiPageParamsgetPageParams(String path)get wiki page params from the path made bygetPath(WikiPageParams)static StringgetPath(WikiPageParams params)convert wiki page info to path string.static List<JsonRelatedData>pageToJson(List<Page> pages)
-
-
-
Method Detail
-
pageToJson
public static List<JsonRelatedData> pageToJson(List<Page> pages)
-
getPath
public static String getPath(WikiPageParams params)
convert wiki page info to path string.
The format: [wiki type]/[wiki owner]/[page id]- Parameters:
params- the wiki page params (type, owner and page name)- Returns:
- the page path
-
getPageParams
public static WikiPageParams getPageParams(String path) throws Exception
get wiki page params from the path made bygetPath(WikiPageParams)- Parameters:
path- made bygetPath(WikiPageParams)- Returns:
- Wiki page params
- Throws:
Exception- if an error occurs.
-
-