com.liferay.asset.util.impl.AssetUtil
@Deprecated
public class AssetUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ASSET_ENTRY_ABSTRACT_LENGTH
Deprecated.
|
static String |
CLASSNAME_SEPARATOR
Deprecated.
|
static char[] |
INVALID_CHARACTERS
Deprecated.
|
Constructor and Description |
---|
AssetUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
addLayoutTags(javax.servlet.http.HttpServletRequest httpServletRequest,
List<com.liferay.asset.kernel.model.AssetTag> tags)
Deprecated.
|
static void |
addPortletBreadcrumbEntries(long assetCategoryId,
javax.servlet.http.HttpServletRequest httpServletRequest,
PortletURL portletURL)
Deprecated.
|
static void |
addPortletBreadcrumbEntries(long assetCategoryId,
javax.servlet.http.HttpServletRequest httpServletRequest,
PortletURL portletURL,
boolean portletBreadcrumbEntry)
Deprecated.
|
static String |
checkViewURL(com.liferay.asset.kernel.model.AssetEntry assetEntry,
boolean viewInContext,
String viewURL,
String currentURL,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Deprecated.
|
static long[] |
filterCategoryIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long[] categoryIds)
Deprecated.
|
static List<com.liferay.asset.kernel.model.AssetVocabulary> |
filterVocabularies(List<com.liferay.asset.kernel.model.AssetVocabulary> vocabularies,
String className,
long classTypePK)
Deprecated.
|
static long[] |
filterVocabularyIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long[] vocabularyIds)
Deprecated.
|
static PortletURL |
getAddPortletURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
long groupId,
String className,
long classTypeId,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
Deprecated.
|
static PortletURL |
getAddPortletURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
String className,
long classTypeId,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getAddPortletURL(LiferayPortletRequest,
LiferayPortletResponse, long, String, long, long[], String[],
String) |
static Map<String,PortletURL> |
getAddPortletURLs(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
long[] classNameIds,
long[] classTypeIds,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getAssetPublisherAddItemHolders(LiferayPortletRequest,
LiferayPortletResponse, long, long[], long[], long[],
String[], String) |
static Map<String,PortletURL> |
getAddPortletURLs(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
long groupId,
long[] classNameIds,
long[] classTypeIds,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
Deprecated.
As of Judson (7.1.x), replaced by
getAssetPublisherAddItemHolders(LiferayPortletRequest,
LiferayPortletResponse, long, long[], long[], long[],
String[], String) |
static String |
getAddURLPopUp(long groupId,
long plid,
PortletURL addPortletURL,
boolean addDisplayPageParameter,
com.liferay.portal.kernel.model.Layout layout)
Deprecated.
|
static String |
getAddURLPopUp(long groupId,
long plid,
PortletURL addPortletURL,
String portletId,
boolean addDisplayPageParameter,
com.liferay.portal.kernel.model.Layout layout)
Deprecated.
As of Judson (7.1.x), replaced by
getAddURLPopUp(long, long, PortletURL, boolean, Layout) |
static List<com.liferay.asset.kernel.model.AssetEntry> |
getAssetEntries(com.liferay.portal.kernel.search.Hits hits)
Deprecated.
|
static String |
getAssetKeywords(String className,
long classPK)
Deprecated.
|
static List<AssetPublisherAddItemHolder> |
getAssetPublisherAddItemHolders(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
long groupId,
long[] classNameIds,
long[] classTypeIds,
long[] allAssetCategoryIds,
String[] allAssetTagNames,
String redirect)
Deprecated.
|
protected static AssetSearcher |
getAssetSearcher(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int start,
int end)
Deprecated.
|
static String |
getClassName(String className)
Deprecated.
|
static String |
getClassNameMessage(String className,
Locale locale)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
protected static boolean |
getDDMFormFieldLocalizable(String sortField)
Deprecated.
|
protected static String |
getDDMFormFieldType(String sortField)
Deprecated.
|
static String |
getDefaultAssetPublisherId(com.liferay.portal.kernel.model.Layout layout)
Deprecated.
|
static Set<String> |
getLayoutTagNames(javax.servlet.http.HttpServletRequest httpServletRequest)
Deprecated.
|
protected static String |
getOrderByCol(String sortField,
String fieldType,
boolean fieldLocalizable,
int sortType,
Locale locale)
Deprecated.
|
protected static String |
getOrderByCol(String sortField,
String fieldType,
int sortType,
Locale locale)
Deprecated.
|
protected static com.liferay.portal.kernel.search.Sort |
getSort(String orderByType,
String sortField,
Locale locale)
Deprecated.
|
protected static com.liferay.portal.kernel.search.Sort[] |
getSorts(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
Locale locale)
Deprecated.
|
protected static int |
getSortType(String fieldType)
Deprecated.
|
static boolean |
hasSubtype(String subtypeClassName,
Map<String,PortletURL> addPortletURLs)
Deprecated.
|
static boolean |
isDefaultAssetPublisher(com.liferay.portal.kernel.model.Layout layout,
String portletId,
String portletResource)
Deprecated.
|
static boolean |
isValidWord(String word)
Deprecated.
|
static com.liferay.portal.kernel.search.Hits |
search(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int start,
int end)
Deprecated.
|
static com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int start,
int end)
Deprecated.
|
static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> |
searchAssetEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
long[] assetCategoryIds,
String[] assetTagNames,
Map<String,Serializable> attributes,
long companyId,
String keywords,
com.liferay.portal.kernel.model.Layout layout,
Locale locale,
long scopeGroupId,
TimeZone timeZone,
long userId,
int start,
int end)
Deprecated.
|
static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> |
searchAssetEntries(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int start,
int end)
Deprecated.
|
static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> |
searchAssetEntries(com.liferay.portal.kernel.search.SearchContext searchContext,
com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery,
int start,
int end)
Deprecated.
|
static String |
substituteCategoryPropertyVariables(long groupId,
long categoryId,
String s)
Deprecated.
|
static String |
toWord(String text)
Deprecated.
|
public static final int ASSET_ENTRY_ABSTRACT_LENGTH
public static final String CLASSNAME_SEPARATOR
public static final char[] INVALID_CHARACTERS
public static Set<String> addLayoutTags(javax.servlet.http.HttpServletRequest httpServletRequest, List<com.liferay.asset.kernel.model.AssetTag> tags)
public static void addPortletBreadcrumbEntries(long assetCategoryId, javax.servlet.http.HttpServletRequest httpServletRequest, PortletURL portletURL) throws Exception
Exception
public static void addPortletBreadcrumbEntries(long assetCategoryId, javax.servlet.http.HttpServletRequest httpServletRequest, PortletURL portletURL, boolean portletBreadcrumbEntry) throws Exception
Exception
public static String checkViewURL(com.liferay.asset.kernel.model.AssetEntry assetEntry, boolean viewInContext, String viewURL, String currentURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public static long[] filterCategoryIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long[] categoryIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.asset.kernel.model.AssetVocabulary> filterVocabularies(List<com.liferay.asset.kernel.model.AssetVocabulary> vocabularies, String className, long classTypePK)
public static long[] filterVocabularyIds(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long[] vocabularyIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static PortletURL getAddPortletURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, String className, long classTypeId, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
Exception
@Deprecated public static PortletURL getAddPortletURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, String className, long classTypeId, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
getAddPortletURL(LiferayPortletRequest,
LiferayPortletResponse, long, String, long, long[], String[],
String)
Exception
@Deprecated public static Map<String,PortletURL> getAddPortletURLs(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, long[] classNameIds, long[] classTypeIds, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
getAssetPublisherAddItemHolders(LiferayPortletRequest,
LiferayPortletResponse, long, long[], long[], long[],
String[], String)
Exception
@Deprecated public static Map<String,PortletURL> getAddPortletURLs(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long[] classNameIds, long[] classTypeIds, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
getAssetPublisherAddItemHolders(LiferayPortletRequest,
LiferayPortletResponse, long, long[], long[], long[],
String[], String)
Exception
public static String getAddURLPopUp(long groupId, long plid, PortletURL addPortletURL, boolean addDisplayPageParameter, com.liferay.portal.kernel.model.Layout layout)
@Deprecated public static String getAddURLPopUp(long groupId, long plid, PortletURL addPortletURL, String portletId, boolean addDisplayPageParameter, com.liferay.portal.kernel.model.Layout layout)
getAddURLPopUp(long, long, PortletURL, boolean, Layout)
public static List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(com.liferay.portal.kernel.search.Hits hits)
public static String getAssetKeywords(String className, long classPK)
public static List<AssetPublisherAddItemHolder> getAssetPublisherAddItemHolders(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, long groupId, long[] classNameIds, long[] classTypeIds, long[] allAssetCategoryIds, String[] allAssetTagNames, String redirect) throws Exception
Exception
public static String getClassName(String className)
@Deprecated public static String getClassNameMessage(String className, Locale locale)
public static String getDefaultAssetPublisherId(com.liferay.portal.kernel.model.Layout layout)
public static Set<String> getLayoutTagNames(javax.servlet.http.HttpServletRequest httpServletRequest)
public static boolean hasSubtype(String subtypeClassName, Map<String,PortletURL> addPortletURLs)
public static boolean isDefaultAssetPublisher(com.liferay.portal.kernel.model.Layout layout, String portletId, String portletResource)
public static boolean isValidWord(String word)
public static com.liferay.portal.kernel.search.Hits search(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
Exception
public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
Exception
public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> searchAssetEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, long[] assetCategoryIds, String[] assetTagNames, Map<String,Serializable> attributes, long companyId, String keywords, com.liferay.portal.kernel.model.Layout layout, Locale locale, long scopeGroupId, TimeZone timeZone, long userId, int start, int end) throws Exception
Exception
public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> searchAssetEntries(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
Exception
public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetEntry> searchAssetEntries(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
Exception
public static String substituteCategoryPropertyVariables(long groupId, long categoryId, String s)
public static String toWord(String text)
protected static AssetSearcher getAssetSearcher(com.liferay.portal.kernel.search.SearchContext searchContext, com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, int start, int end) throws Exception
Exception
protected static boolean getDDMFormFieldLocalizable(String sortField) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected static String getDDMFormFieldType(String sortField) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected static String getOrderByCol(String sortField, String fieldType, boolean fieldLocalizable, int sortType, Locale locale)
protected static String getOrderByCol(String sortField, String fieldType, int sortType, Locale locale)
protected static com.liferay.portal.kernel.search.Sort getSort(String orderByType, String sortField, Locale locale) throws Exception
Exception
protected static com.liferay.portal.kernel.search.Sort[] getSorts(com.liferay.asset.kernel.service.persistence.AssetEntryQuery assetEntryQuery, Locale locale) throws Exception
Exception
protected static int getSortType(String fieldType)