public class KnowledgeBaseUtil
extends java.lang.Object
Constructor and Description |
---|
KnowledgeBaseUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getKBArticleURL(long plid,
long resourcePrimKey,
int status,
java.lang.String portalURL,
boolean maximized) |
static long |
getKBFolderId(long parentResourceClassNameId,
long parentResourcePrimKey) |
static java.lang.String |
getMimeType(byte[] bytes,
java.lang.String fileName) |
static java.lang.Long[][] |
getParams(java.lang.Long[] params) |
static java.lang.String |
getUrlTitle(long id,
java.lang.String title) |
static boolean |
isValidUrlTitle(java.lang.String urlTitle) |
static void |
setPreferredKBFolderURLTitle(com.liferay.portal.kernel.portlet.PortalPreferences portalPreferences,
java.lang.String contentRootPrefix,
java.lang.String value) |
static java.util.List<KBArticle> |
sort(long[] resourcePrimKeys,
java.util.List<KBArticle> kbArticles) |
static java.lang.String[] |
splitKeywords(java.lang.String keywords) |
static java.lang.String |
trimLeadingSlash(java.lang.String s) |
public static java.lang.String getKBArticleURL(long plid, long resourcePrimKey, int status, java.lang.String portalURL, boolean maximized)
public static long getKBFolderId(long parentResourceClassNameId, long parentResourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getMimeType(byte[] bytes, java.lang.String fileName)
public static java.lang.Long[][] getParams(java.lang.Long[] params)
public static java.lang.String getUrlTitle(long id, java.lang.String title)
public static boolean isValidUrlTitle(java.lang.String urlTitle)
public static void setPreferredKBFolderURLTitle(com.liferay.portal.kernel.portlet.PortalPreferences portalPreferences, java.lang.String contentRootPrefix, java.lang.String value) throws com.liferay.portal.kernel.json.JSONException
com.liferay.portal.kernel.json.JSONException
public static java.util.List<KBArticle> sort(long[] resourcePrimKeys, java.util.List<KBArticle> kbArticles)
public static java.lang.String[] splitKeywords(java.lang.String keywords)
public static java.lang.String trimLeadingSlash(java.lang.String s)