@ProviderType
public class AssetCategoryLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl and is the
primary access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.AssetCategoryLocalService,
com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl,
com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl| Constructor and Description |
|---|
AssetCategoryLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static AssetCategory |
addAssetCategory(AssetCategory assetCategory)
Adds the asset category to the database.
|
static void |
addAssetEntryAssetCategories(long entryId,
java.util.List<AssetCategory> AssetCategories) |
static void |
addAssetEntryAssetCategories(long entryId,
long[] categoryIds) |
static void |
addAssetEntryAssetCategory(long entryId,
AssetCategory assetCategory) |
static void |
addAssetEntryAssetCategory(long entryId,
long categoryId) |
static AssetCategory |
addCategory(long userId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
ServiceContext serviceContext) |
static AssetCategory |
addCategory(long userId,
java.lang.String title,
long vocabularyId,
ServiceContext serviceContext) |
static void |
addCategoryResources(AssetCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addCategoryResources(AssetCategory category,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
static void |
clearAssetEntryAssetCategories(long entryId) |
static AssetCategory |
createAssetCategory(long categoryId)
Creates a new asset category with the primary key.
|
static AssetCategory |
deleteAssetCategory(AssetCategory assetCategory)
Deletes the asset category from the database.
|
static AssetCategory |
deleteAssetCategory(long categoryId)
Deletes the asset category with the primary key from the database.
|
static void |
deleteAssetEntryAssetCategories(long entryId,
java.util.List<AssetCategory> AssetCategories) |
static void |
deleteAssetEntryAssetCategories(long entryId,
long[] categoryIds) |
static void |
deleteAssetEntryAssetCategory(long entryId,
AssetCategory assetCategory) |
static void |
deleteAssetEntryAssetCategory(long entryId,
long categoryId) |
static void |
deleteCategory(AssetCategory category) |
static void |
deleteCategory(long categoryId) |
static void |
deleteVocabularyCategories(long vocabularyId) |
static DynamicQuery |
dynamicQuery() |
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
static AssetCategory |
fetchAssetCategory(long categoryId) |
static AssetCategory |
fetchAssetCategoryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the asset category with the matching UUID and company.
|
static AssetCategory |
fetchAssetCategoryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the asset category matching the UUID and group.
|
static AssetCategory |
fetchCategory(long categoryId) |
static java.util.List<AssetCategory> |
getAssetCategories(int start,
int end)
Returns a range of all the asset categories.
|
static int |
getAssetCategoriesCount()
Returns the number of asset categories.
|
static AssetCategory |
getAssetCategory(long categoryId)
Returns the asset category with the primary key.
|
static AssetCategory |
getAssetCategoryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the asset category with the matching UUID and company.
|
static AssetCategory |
getAssetCategoryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the asset category matching the UUID and group.
|
static java.util.List<AssetCategory> |
getAssetEntryAssetCategories(long entryId) |
static java.util.List<AssetCategory> |
getAssetEntryAssetCategories(long entryId,
int start,
int end) |
static java.util.List<AssetCategory> |
getAssetEntryAssetCategories(long entryId,
int start,
int end,
OrderByComparator orderByComparator) |
static int |
getAssetEntryAssetCategoriesCount(long entryId) |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static java.util.List<AssetCategory> |
getCategories() |
static java.util.List<AssetCategory> |
getCategories(long classNameId,
long classPK) |
static java.util.List<AssetCategory> |
getCategories(java.lang.String className,
long classPK) |
static AssetCategory |
getCategory(long categoryId) |
static AssetCategory |
getCategory(java.lang.String uuid,
long groupId) |
static long[] |
getCategoryIds(java.lang.String className,
long classPK) |
static java.lang.String[] |
getCategoryNames() |
static java.lang.String[] |
getCategoryNames(long classNameId,
long classPK) |
static java.lang.String[] |
getCategoryNames(java.lang.String className,
long classPK) |
static java.util.List<AssetCategory> |
getChildCategories(long parentCategoryId) |
static java.util.List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc) |
static int |
getChildCategoriesCount(long parentCategoryId) |
static java.util.List<AssetCategory> |
getEntryCategories(long entryId) |
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static AssetCategoryLocalService |
getService() |
static java.util.List<java.lang.Long> |
getSubcategoryIds(long parentCategoryId) |
static java.util.List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc) |
static java.util.List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc) |
static int |
getVocabularyCategoriesCount(long vocabularyId) |
static java.util.List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc) |
static int |
getVocabularyRootCategoriesCount(long vocabularyId) |
static boolean |
hasAssetEntryAssetCategories(long entryId) |
static boolean |
hasAssetEntryAssetCategory(long entryId,
long categoryId) |
static void |
mergeCategories(long fromCategoryId,
long toCategoryId) |
static AssetCategory |
moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext) |
static void |
rebuildTree(long groupId,
boolean force) |
static java.util.List<AssetCategory> |
search(long groupId,
java.lang.String name,
java.lang.String[] categoryProperties,
int start,
int end) |
static void |
setAssetEntryAssetCategories(long entryId,
long[] categoryIds) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(AssetCategoryLocalService service)
Deprecated.
As of 6.2.0
|
static AssetCategory |
updateAssetCategory(AssetCategory assetCategory)
Updates the asset category in the database or adds it if it does not yet exist.
|
static AssetCategory |
updateCategory(long userId,
long categoryId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
ServiceContext serviceContext) |
public static AssetCategory addAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory - the asset categorySystemException - if a system exception occurredpublic static AssetCategory createAssetCategory(long categoryId)
categoryId - the primary key for the new asset categorypublic static AssetCategory deleteAssetCategory(long categoryId) throws PortalException, SystemException
categoryId - the primary key of the asset categoryPortalException - if a asset category with the primary key could not be foundSystemException - if a system exception occurredpublic static AssetCategory deleteAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory - the asset categorySystemException - if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic static AssetCategory fetchAssetCategory(long categoryId) throws SystemException
SystemExceptionpublic static AssetCategory fetchAssetCategoryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws SystemException
uuid - the asset category's UUIDcompanyId - the primary key of the companynull if a matching asset category could not be foundSystemException - if a system exception occurredpublic static AssetCategory fetchAssetCategoryByUuidAndGroupId(java.lang.String uuid, long groupId) throws SystemException
uuid - the asset category's UUIDgroupId - the primary key of the groupnull if a matching asset category could not be foundSystemException - if a system exception occurredpublic static AssetCategory getAssetCategory(long categoryId) throws PortalException, SystemException
categoryId - the primary key of the asset categoryPortalException - if a asset category with the primary key could not be foundSystemException - if a system exception occurredpublic static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetCategory getAssetCategoryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException, SystemException
uuid - the asset category's UUIDcompanyId - the primary key of the companyPortalException - if a matching asset category could not be foundSystemException - if a system exception occurredpublic static AssetCategory getAssetCategoryByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException, SystemException
uuid - the asset category's UUIDgroupId - the primary key of the groupPortalException - if a matching asset category could not be foundSystemException - if a system exception occurredpublic static java.util.List<AssetCategory> getAssetCategories(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset categoriesend - the upper bound of the range of asset categories (not inclusive)SystemException - if a system exception occurredpublic static int getAssetCategoriesCount()
throws SystemException
SystemException - if a system exception occurredpublic static AssetCategory updateAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory - the asset categorySystemException - if a system exception occurredpublic static void addAssetEntryAssetCategory(long entryId,
long categoryId)
throws SystemException
SystemException - if a system exception occurredpublic static void addAssetEntryAssetCategory(long entryId,
AssetCategory assetCategory)
throws SystemException
SystemException - if a system exception occurredpublic static void addAssetEntryAssetCategories(long entryId,
long[] categoryIds)
throws SystemException
SystemException - if a system exception occurredpublic static void addAssetEntryAssetCategories(long entryId,
java.util.List<AssetCategory> AssetCategories)
throws SystemException
SystemException - if a system exception occurredpublic static void clearAssetEntryAssetCategories(long entryId)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetCategory(long entryId,
long categoryId)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetCategory(long entryId,
AssetCategory assetCategory)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetCategories(long entryId,
long[] categoryIds)
throws SystemException
SystemException - if a system exception occurredpublic static void deleteAssetEntryAssetCategories(long entryId,
java.util.List<AssetCategory> AssetCategories)
throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<AssetCategory> getAssetEntryAssetCategories(long entryId) throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end) throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException - if a system exception occurredpublic static int getAssetEntryAssetCategoriesCount(long entryId)
throws SystemException
SystemException - if a system exception occurredpublic static boolean hasAssetEntryAssetCategory(long entryId,
long categoryId)
throws SystemException
SystemException - if a system exception occurredpublic static boolean hasAssetEntryAssetCategories(long entryId)
throws SystemException
SystemException - if a system exception occurredpublic static void setAssetEntryAssetCategories(long entryId,
long[] categoryIds)
throws SystemException
SystemException - if a system exception occurredpublic static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static AssetCategory addCategory(long userId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long vocabularyId, java.lang.String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetCategory addCategory(long userId, java.lang.String title, long vocabularyId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void addCategoryResources(AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void addCategoryResources(AssetCategory category, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteCategory(AssetCategory category) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteCategory(long categoryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteVocabularyCategories(long vocabularyId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static AssetCategory fetchCategory(long categoryId) throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getCategories() throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getCategories(long classNameId, long classPK) throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getCategories(java.lang.String className, long classPK) throws SystemException
SystemExceptionpublic static AssetCategory getCategory(long categoryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetCategory getCategory(java.lang.String uuid, long groupId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static long[] getCategoryIds(java.lang.String className,
long classPK)
throws SystemException
SystemExceptionpublic static java.lang.String[] getCategoryNames()
throws SystemException
SystemExceptionpublic static java.lang.String[] getCategoryNames(long classNameId,
long classPK)
throws SystemException
SystemExceptionpublic static java.lang.String[] getCategoryNames(java.lang.String className,
long classPK)
throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getChildCategories(long parentCategoryId) throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static int getChildCategoriesCount(long parentCategoryId)
throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getEntryCategories(long entryId) throws SystemException
SystemExceptionpublic static java.util.List<java.lang.Long> getSubcategoryIds(long parentCategoryId)
throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static int getVocabularyCategoriesCount(long vocabularyId)
throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static int getVocabularyRootCategoriesCount(long vocabularyId)
throws SystemException
SystemExceptionpublic static void mergeCategories(long fromCategoryId,
long toCategoryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void rebuildTree(long groupId,
boolean force)
throws SystemException
SystemExceptionpublic static java.util.List<AssetCategory> search(long groupId, java.lang.String name, java.lang.String[] categoryProperties, int start, int end) throws SystemException
SystemExceptionpublic static AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long vocabularyId, java.lang.String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetCategoryLocalService getService()
public void setService(AssetCategoryLocalService service)