com.liferay.portlet.asset.util
Class AssetUtil
java.lang.Object
com.liferay.portlet.asset.util.AssetUtil
public class AssetUtil
- extends Object
Method Summary |
static Set<String> |
addLayoutTags(javax.servlet.http.HttpServletRequest request,
List<AssetTag> tags)
|
static void |
addPortletBreadcrumbEntries(long assetCategoryId,
javax.servlet.http.HttpServletRequest request,
PortletURL portletURL)
|
static long[] |
filterCategoryIds(PermissionChecker permissionChecker,
long[] categoryIds)
|
static long[] |
filterTagIds(PermissionChecker permissionChecker,
long[] tagIds)
|
static long[][] |
filterTagIdsArray(PermissionChecker permissionChecker,
long[][] tagIdsArray)
|
static PortletURL |
getAddPortletURL(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String className,
long classTypeId,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
|
static Map<String,PortletURL> |
getAddPortletURLs(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
long[] classNameIds,
long[] classTypeIds,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
|
static List<AssetEntry> |
getAssetEntries(Hits hits)
|
static String |
getAssetKeywords(String className,
long classPK)
|
static Set<String> |
getLayoutTagNames(javax.servlet.http.HttpServletRequest request)
|
protected static Sort |
getSort(String orderByType,
String sortField,
Locale locale)
|
protected static Sort[] |
getSorts(AssetEntryQuery assetEntryQuery,
Locale locale)
|
protected static int |
getSortType(String sortField)
|
static boolean |
hasSubtype(String subtypeClassName,
Map<String,PortletURL> addPortletURLs)
|
static boolean |
isValidWord(String word)
|
static Hits |
search(javax.servlet.http.HttpServletRequest request,
AssetEntryQuery assetEntryQuery,
int start,
int end)
|
static Hits |
search(SearchContext searchContext,
AssetEntryQuery assetEntryQuery,
int start,
int end)
|
static String |
substituteCategoryPropertyVariables(long groupId,
long categoryId,
String s)
|
static String |
substituteTagPropertyVariables(long groupId,
String tagName,
String s)
|
static String |
toWord(String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSNAME_SEPARATOR
public static final String CLASSNAME_SEPARATOR
- See Also:
- Constant Field Values
INVALID_CHARACTERS
public static final char[] INVALID_CHARACTERS
AssetUtil
public AssetUtil()
addLayoutTags
public static Set<String> addLayoutTags(javax.servlet.http.HttpServletRequest request,
List<AssetTag> tags)
addPortletBreadcrumbEntries
public static void addPortletBreadcrumbEntries(long assetCategoryId,
javax.servlet.http.HttpServletRequest request,
PortletURL portletURL)
throws Exception
- Throws:
Exception
filterCategoryIds
public static long[] filterCategoryIds(PermissionChecker permissionChecker,
long[] categoryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterTagIds
public static long[] filterTagIds(PermissionChecker permissionChecker,
long[] tagIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterTagIdsArray
public static long[][] filterTagIdsArray(PermissionChecker permissionChecker,
long[][] tagIdsArray)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAddPortletURL
public static PortletURL getAddPortletURL(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
String className,
long classTypeId,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
throws Exception
- Throws:
Exception
getAddPortletURLs
public static Map<String,PortletURL> getAddPortletURLs(LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse,
long[] classNameIds,
long[] classTypeIds,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
throws Exception
- Throws:
Exception
getAssetEntries
public static List<AssetEntry> getAssetEntries(Hits hits)
getAssetKeywords
public static String getAssetKeywords(String className,
long classPK)
throws SystemException
- Throws:
SystemException
getLayoutTagNames
public static Set<String> getLayoutTagNames(javax.servlet.http.HttpServletRequest request)
hasSubtype
public static boolean hasSubtype(String subtypeClassName,
Map<String,PortletURL> addPortletURLs)
isValidWord
public static boolean isValidWord(String word)
search
public static Hits search(javax.servlet.http.HttpServletRequest request,
AssetEntryQuery assetEntryQuery,
int start,
int end)
throws Exception
- Throws:
Exception
search
public static Hits search(SearchContext searchContext,
AssetEntryQuery assetEntryQuery,
int start,
int end)
throws Exception
- Throws:
Exception
substituteCategoryPropertyVariables
public static String substituteCategoryPropertyVariables(long groupId,
long categoryId,
String s)
throws SystemException
- Throws:
SystemException
substituteTagPropertyVariables
public static String substituteTagPropertyVariables(long groupId,
String tagName,
String s)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
toWord
public static String toWord(String text)
getSort
protected static Sort getSort(String orderByType,
String sortField,
Locale locale)
throws Exception
- Throws:
Exception
getSorts
protected static Sort[] getSorts(AssetEntryQuery assetEntryQuery,
Locale locale)
throws Exception
- Throws:
Exception
getSortType
protected static int getSortType(String sortField)