public class AssetCategoryServiceUtil
extends Object
com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.AssetCategoryService
Constructor and Description |
---|
AssetCategoryServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static AssetCategory |
addCategory(long groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static AssetCategory |
addCategory(long groupId,
String title,
long vocabularyId,
ServiceContext serviceContext) |
static void |
deleteCategories(long[] categoryIds) |
static List<AssetCategory> |
deleteCategories(long[] categoryIds,
ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), Replaced by
deleteCategories(long[]) |
static void |
deleteCategory(long categoryId) |
static AssetCategory |
fetchCategory(long categoryId) |
static List<AssetCategory> |
getCategories(long classNameId,
long classPK,
int start,
int end)
Returns a range of assetCategories related to an AssetEntry with the
given "classNameId-classPK".
|
static List<AssetCategory> |
getCategories(String className,
long classPK) |
static int |
getCategoriesCount(long classNameId,
long classPK)
Returns the number of assetCategories related to an AssetEntry with the
given "classNameId-classPK".
|
static AssetCategory |
getCategory(long categoryId) |
static String |
getCategoryPath(long categoryId) |
static List<AssetCategory> |
getChildCategories(long parentCategoryId) |
static List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
eturns a range of child assetCategories.
|
static int |
getChildCategoriesCount(long parentCategoryId)
Returns the number of child categories
|
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static AssetCategoryService |
getService() |
static List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static List<AssetCategory> |
getVocabularyCategories(long groupId,
long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static List<AssetCategory> |
getVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static int |
getVocabularyCategoriesCount(long groupId,
long vocabularyId) |
static int |
getVocabularyCategoriesCount(long groupId,
long parentCategory,
long vocabularyId) |
static int |
getVocabularyCategoriesCount(long groupId,
String name,
long vocabularyId) |
static AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static List<AssetCategory> |
getVocabularyRootCategories(long groupId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static int |
getVocabularyRootCategoriesCount(long groupId,
long vocabularyId) |
static AssetCategory |
moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext) |
static JSONArray |
search(long[] groupIds,
String name,
long[] vocabularyIds,
int start,
int end) |
static List<AssetCategory> |
search(long groupId,
String keywords,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
static JSONArray |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end) |
static AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end) |
static AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end) |
static AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
Sort sort) |
static AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
String title,
long vocabularyId,
int start,
int end) |
static AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
String title,
long parentCategoryId,
long vocabularyId,
int start,
int end) |
static AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
String title,
long vocabularyId,
long parentCategoryId,
int start,
int end,
Sort sort) |
static AssetCategory |
updateCategory(long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext) |
public static AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException
AssetCategoryServiceUtil
to access the asset category remote service. Add custom service methods to com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
public static AssetCategory addCategory(long groupId, String title, long vocabularyId, ServiceContext serviceContext) throws PortalException
PortalException
public static void deleteCategories(long[] categoryIds) throws PortalException
PortalException
@Deprecated public static List<AssetCategory> deleteCategories(long[] categoryIds, ServiceContext serviceContext) throws PortalException
deleteCategories(long[])
PortalException
public static void deleteCategory(long categoryId) throws PortalException
PortalException
public static AssetCategory fetchCategory(long categoryId) throws PortalException
PortalException
public static List<AssetCategory> getCategories(long classNameId, long classPK, int start, int end)
classNameId
- the className of the assetclassPK
- the classPK of the assetstart
- the lower bound of the range of resultsend
- the upper bound of the range of results (not inclusive)public static List<AssetCategory> getCategories(String className, long classPK) throws PortalException
PortalException
public static int getCategoriesCount(long classNameId, long classPK)
classNameId
- the className of the assetclassPK
- the classPK of the assetpublic static AssetCategory getCategory(long categoryId) throws PortalException
PortalException
public static String getCategoryPath(long categoryId) throws PortalException
PortalException
public static List<AssetCategory> getChildCategories(long parentCategoryId) throws PortalException
PortalException
public static List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> obc) throws PortalException
parentCategoryId
- the parent category IDstart
- the lower bound of the range of resultsend
- the upper bound of the range of results (not inclusive)obc
- the comparatorPortalException
public static int getChildCategoriesCount(long parentCategoryId) throws PortalException
parentCategoryId
- the parent category IDPortalException
public static String getOSGiServiceIdentifier()
public static List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc) throws PortalException
PortalException
public static List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc) throws PortalException
PortalException
public static List<AssetCategory> getVocabularyCategories(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
public static List<AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
public static int getVocabularyCategoriesCount(long groupId, long vocabularyId)
public static int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId)
public static int getVocabularyCategoriesCount(long groupId, String name, long vocabularyId)
public static AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc) throws PortalException
PortalException
public static AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc) throws PortalException
PortalException
public static List<AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
public static int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
public static AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) throws PortalException
PortalException
public static List<AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
public static JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end) throws PortalException
PortalException
public static JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
public static AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end) throws PortalException
PortalException
public static AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end) throws PortalException
PortalException
public static AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, Sort sort) throws PortalException
PortalException
public static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
public static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
public static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort) throws PortalException
PortalException
public static AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException
PortalException
public static AssetCategoryService getService()