com.liferay.portlet.asset.service
Class AssetCategoryLocalServiceUtil
java.lang.Object
com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil
public class AssetCategoryLocalServiceUtil
- extends Object
This class provides static methods for the
AssetCategoryLocalService bean. The static methods of
this class calls the same methods of the bean instance. It's convenient to be
able to just write one line to call a method on a bean instead of writing a
lookup call and a method call.
- See Also:
AssetCategoryLocalService- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
|
Method Summary |
static AssetCategory |
addAssetCategory(AssetCategory assetCategory)
|
static AssetCategory |
addCategory(long userId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
static void |
addCategoryResources(AssetCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addCategoryResources(AssetCategory category,
String[] communityPermissions,
String[] guestPermissions)
|
static AssetCategory |
createAssetCategory(long categoryId)
|
static void |
deleteAssetCategory(AssetCategory assetCategory)
|
static void |
deleteAssetCategory(long categoryId)
|
static void |
deleteCategory(AssetCategory category)
|
static void |
deleteCategory(long categoryId)
|
static void |
deleteVocabularyCategories(long vocabularyId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static List<AssetCategory> |
getAssetCategories(int start,
int end)
|
static int |
getAssetCategoriesCount()
|
static AssetCategory |
getAssetCategory(long categoryId)
|
static AssetCategory |
getAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
|
static List<AssetCategory> |
getCategories()
|
static List<AssetCategory> |
getCategories(long classNameId,
long classPK)
|
static List<AssetCategory> |
getCategories(String className,
long classPK)
|
static AssetCategory |
getCategory(long categoryId)
|
static long[] |
getCategoryIds(String className,
long classPK)
|
static List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
|
static int |
getChildCategoriesCount(long parentCategoryId)
|
static List<AssetCategory> |
getEntryCategories(long entryId)
|
static AssetCategoryLocalService |
getService()
|
static List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static void |
mergeCategories(long fromCategoryId,
long toCategoryId)
|
static JSONArray |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
void |
setService(AssetCategoryLocalService service)
|
static AssetCategory |
updateAssetCategory(AssetCategory assetCategory)
|
static AssetCategory |
updateAssetCategory(AssetCategory assetCategory,
boolean merge)
|
static AssetCategory |
updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetCategoryLocalServiceUtil
public AssetCategoryLocalServiceUtil()
addAssetCategory
public static AssetCategory addAssetCategory(AssetCategory assetCategory)
throws SystemException
- Throws:
SystemException
createAssetCategory
public static AssetCategory createAssetCategory(long categoryId)
deleteAssetCategory
public static void deleteAssetCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteAssetCategory
public static void deleteAssetCategory(AssetCategory assetCategory)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getAssetCategory
public static AssetCategory getAssetCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAssetCategoryByUuidAndGroupId
public static AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAssetCategories
public static List<AssetCategory> getAssetCategories(int start,
int end)
throws SystemException
- Throws:
SystemException
getAssetCategoriesCount
public static int getAssetCategoriesCount()
throws SystemException
- Throws:
SystemException
updateAssetCategory
public static AssetCategory updateAssetCategory(AssetCategory assetCategory)
throws SystemException
- Throws:
SystemException
updateAssetCategory
public static AssetCategory updateAssetCategory(AssetCategory assetCategory,
boolean merge)
throws SystemException
- Throws:
SystemException
addCategory
public static AssetCategory addCategory(long userId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public static void addCategoryResources(AssetCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public static void addCategoryResources(AssetCategory category,
String[] communityPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
public static void deleteCategory(AssetCategory category)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
public static void deleteCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteVocabularyCategories
public static void deleteVocabularyCategories(long vocabularyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategories
public static List<AssetCategory> getCategories()
throws SystemException
- Throws:
SystemException
getCategories
public static List<AssetCategory> getCategories(long classNameId,
long classPK)
throws SystemException
- Throws:
SystemException
getCategories
public static List<AssetCategory> getCategories(String className,
long classPK)
throws SystemException
- Throws:
SystemException
getCategory
public static AssetCategory getCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategoryIds
public static long[] getCategoryIds(String className,
long classPK)
throws SystemException
- Throws:
SystemException
getChildCategories
public static List<AssetCategory> getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getChildCategoriesCount
public static int getChildCategoriesCount(long parentCategoryId)
throws SystemException
- Throws:
SystemException
getEntryCategories
public static List<AssetCategory> getEntryCategories(long entryId)
throws SystemException
- Throws:
SystemException
getVocabularyCategories
public static List<AssetCategory> getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getVocabularyCategories
public static List<AssetCategory> getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getVocabularyRootCategories
public static List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
mergeCategories
public static void mergeCategories(long fromCategoryId,
long toCategoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public static JSONArray search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
throws SystemException
- Throws:
SystemException
updateCategory
public static AssetCategory updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static AssetCategoryLocalService getService()
setService
public void setService(AssetCategoryLocalService service)