Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Class AssetCategoryLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil

@ProviderType
public class AssetCategoryLocalServiceUtil
extends Object

Provides the local service utility for AssetCategory. This utility wraps 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.

See Also:
AssetCategoryLocalService, com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl, com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl

Constructor Summary
AssetCategoryLocalServiceUtil()
           
 
Method Summary
static AssetCategory addAssetCategory(AssetCategory assetCategory)
          Adds the asset category to the database.
static void addAssetEntryAssetCategories(long entryId, 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 groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
static AssetCategory addCategory(long userId, long groupId, String title, long vocabularyId, ServiceContext serviceContext)
           
static void addCategoryResources(AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addCategoryResources(AssetCategory category, ModelPermissions modelPermissions)
           
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, 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 deleteCategories(List<AssetCategory> categories)
           
static void deleteCategories(long[] categoryIds)
           
static AssetCategory deleteCategory(AssetCategory category)
           
static AssetCategory deleteCategory(AssetCategory category, boolean skipRebuildTree)
           
static AssetCategory deleteCategory(long categoryId)
           
static PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
static void deleteVocabularyCategories(long vocabularyId)
           
static DynamicQuery dynamicQuery()
           
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> 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 matching the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
static AssetCategory fetchAssetCategory(long categoryId)
           
static AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
static AssetCategory fetchCategory(long categoryId)
           
static ActionableDynamicQuery getActionableDynamicQuery()
           
static List<AssetCategory> getAssetCategories(int start, int end)
          Returns a range of all the asset categories.
static List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the asset categories matching the UUID and company.
static List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns a range of asset categories matching the UUID and company.
static int getAssetCategoriesCount()
          Returns the number of asset categories.
static AssetCategory getAssetCategory(long categoryId)
          Returns the asset category with the primary key.
static AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
static List<AssetCategory> getAssetEntryAssetCategories(long entryId)
           
static List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end)
           
static List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
           
static int getAssetEntryAssetCategoriesCount(long entryId)
           
static long[] getAssetEntryPrimaryKeys(long categoryId)
          Returns the entryIds of the asset entries associated with the asset category.
static List<AssetCategory> getCategories()
           
static List<AssetCategory> getCategories(Hits hits)
           
static List<AssetCategory> getCategories(long classNameId, long classPK)
           
static List<AssetCategory> getCategories(String className, long classPK)
           
static AssetCategory getCategory(long categoryId)
           
static AssetCategory getCategory(String uuid, long groupId)
           
static long[] getCategoryIds(String className, long classPK)
           
static String[] getCategoryNames()
           
static String[] getCategoryNames(long classNameId, long classPK)
           
static String[] getCategoryNames(String className, long classPK)
           
static List<AssetCategory> getChildCategories(long parentCategoryId)
           
static List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static int getChildCategoriesCount(long parentCategoryId)
           
static List<AssetCategory> getEntryCategories(long entryId)
           
static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
static String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static AssetCategoryLocalService getService()
           
static List<Long> getSubcategoryIds(long parentCategoryId)
           
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 int getVocabularyCategoriesCount(long vocabularyId)
           
static List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static int getVocabularyRootCategoriesCount(long vocabularyId)
           
static boolean hasAssetEntryAssetCategories(long entryId)
           
static boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
           
static AssetCategory mergeCategories(long fromCategoryId, long toCategoryId)
           
static AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
static void rebuildTree(long groupId, boolean force)
           
static List<AssetCategory> search(long groupId, String name, String[] categoryProperties, int start, int end)
           
static BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, int start, int end)
           
static BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
           
static BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort)
           
static BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long groupIds, String title, long vocabularyId, int start, int end)
           
static void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
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, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCategoryLocalServiceUtil

public AssetCategoryLocalServiceUtil()
Method Detail

addAssetCategory

public static AssetCategory addAssetCategory(AssetCategory assetCategory)
Adds the asset category to the database. Also notifies the appropriate model listeners.

Parameters:
assetCategory - the asset category
Returns:
the asset category that was added

addAssetEntryAssetCategories

public static void addAssetEntryAssetCategories(long entryId,
                                                List<AssetCategory> AssetCategories)

addAssetEntryAssetCategories

public static void addAssetEntryAssetCategories(long entryId,
                                                long[] categoryIds)

addAssetEntryAssetCategory

public static void addAssetEntryAssetCategory(long entryId,
                                              AssetCategory assetCategory)

addAssetEntryAssetCategory

public static void addAssetEntryAssetCategory(long entryId,
                                              long categoryId)

addCategory

public static AssetCategory addCategory(long userId,
                                        long groupId,
                                        long parentCategoryId,
                                        Map<Locale,String> titleMap,
                                        Map<Locale,String> descriptionMap,
                                        long vocabularyId,
                                        String[] categoryProperties,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

addCategory

public static AssetCategory addCategory(long userId,
                                        long groupId,
                                        String title,
                                        long vocabularyId,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

addCategoryResources

public static void addCategoryResources(AssetCategory category,
                                        boolean addGroupPermissions,
                                        boolean addGuestPermissions)
                                 throws PortalException
Throws:
PortalException

addCategoryResources

public static void addCategoryResources(AssetCategory category,
                                        ModelPermissions modelPermissions)
                                 throws PortalException
Throws:
PortalException

clearAssetEntryAssetCategories

public static void clearAssetEntryAssetCategories(long entryId)

createAssetCategory

public static AssetCategory createAssetCategory(long categoryId)
Creates a new asset category with the primary key. Does not add the asset category to the database.

Parameters:
categoryId - the primary key for the new asset category
Returns:
the new asset category

deleteAssetCategory

public static AssetCategory deleteAssetCategory(AssetCategory assetCategory)
Deletes the asset category from the database. Also notifies the appropriate model listeners.

Parameters:
assetCategory - the asset category
Returns:
the asset category that was removed

deleteAssetCategory

public static AssetCategory deleteAssetCategory(long categoryId)
                                         throws PortalException
Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category that was removed
Throws:
PortalException - if a asset category with the primary key could not be found

deleteAssetEntryAssetCategories

public static void deleteAssetEntryAssetCategories(long entryId,
                                                   List<AssetCategory> AssetCategories)

deleteAssetEntryAssetCategories

public static void deleteAssetEntryAssetCategories(long entryId,
                                                   long[] categoryIds)

deleteAssetEntryAssetCategory

public static void deleteAssetEntryAssetCategory(long entryId,
                                                 AssetCategory assetCategory)

deleteAssetEntryAssetCategory

public static void deleteAssetEntryAssetCategory(long entryId,
                                                 long categoryId)

deleteCategories

public static void deleteCategories(List<AssetCategory> categories)
                             throws PortalException
Throws:
PortalException

deleteCategories

public static void deleteCategories(long[] categoryIds)
                             throws PortalException
Throws:
PortalException

deleteCategory

public static AssetCategory deleteCategory(AssetCategory category)
                                    throws PortalException
Throws:
PortalException

deleteCategory

public static AssetCategory deleteCategory(AssetCategory category,
                                           boolean skipRebuildTree)
                                    throws PortalException
Throws:
PortalException

deleteCategory

public static AssetCategory deleteCategory(long categoryId)
                                    throws PortalException
Throws:
PortalException

deletePersistedModel

public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                           throws PortalException
Throws:
PortalException

deleteVocabularyCategories

public static void deleteVocabularyCategories(long vocabularyId)
                                       throws PortalException
Throws:
PortalException

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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 com.liferay.portlet.asset.model.impl.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.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end,
                                       OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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 com.liferay.portlet.asset.model.impl.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.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery,
                                     Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAssetCategory

public static AssetCategory fetchAssetCategory(long categoryId)

fetchAssetCategoryByUuidAndGroupId

public static AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid,
                                                               long groupId)
Returns the asset category matching the UUID and group.

Parameters:
uuid - the asset category's UUID
groupId - the primary key of the group
Returns:
the matching asset category, or null if a matching asset category could not be found

fetchCategory

public static AssetCategory fetchCategory(long categoryId)

getActionableDynamicQuery

public static ActionableDynamicQuery getActionableDynamicQuery()

getAssetCategories

public static List<AssetCategory> getAssetCategories(int start,
                                                     int end)
Returns a range of all the asset categories.

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 com.liferay.portlet.asset.model.impl.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.

Parameters:
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of asset categories

getAssetCategoriesByUuidAndCompanyId

public static List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid,
                                                                       long companyId)
Returns all the asset categories matching the UUID and company.

Parameters:
uuid - the UUID of the asset categories
companyId - the primary key of the company
Returns:
the matching asset categories, or an empty list if no matches were found

getAssetCategoriesByUuidAndCompanyId

public static List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid,
                                                                       long companyId,
                                                                       int start,
                                                                       int end,
                                                                       OrderByComparator<AssetCategory> orderByComparator)
Returns a range of asset categories matching the UUID and company.

Parameters:
uuid - the UUID of the asset categories
companyId - the primary key of the company
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching asset categories, or an empty list if no matches were found

getAssetCategoriesCount

public static int getAssetCategoriesCount()
Returns the number of asset categories.

Returns:
the number of asset categories

getAssetCategory

public static AssetCategory getAssetCategory(long categoryId)
                                      throws PortalException
Returns the asset category with the primary key.

Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category
Throws:
PortalException - if a asset category with the primary key could not be found

getAssetCategoryByUuidAndGroupId

public static AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
                                                             long groupId)
                                                      throws PortalException
Returns the asset category matching the UUID and group.

Parameters:
uuid - the asset category's UUID
groupId - the primary key of the group
Returns:
the matching asset category
Throws:
PortalException - if a matching asset category could not be found

getAssetEntryAssetCategories

public static List<AssetCategory> getAssetEntryAssetCategories(long entryId)

getAssetEntryAssetCategories

public static List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                               int start,
                                                               int end)

getAssetEntryAssetCategories

public static List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                               int start,
                                                               int end,
                                                               OrderByComparator<AssetCategory> orderByComparator)

getAssetEntryAssetCategoriesCount

public static int getAssetEntryAssetCategoriesCount(long entryId)

getAssetEntryPrimaryKeys

public static long[] getAssetEntryPrimaryKeys(long categoryId)
Returns the entryIds of the asset entries associated with the asset category.

Parameters:
categoryId - the categoryId of the asset category
Returns:
long[] the entryIds of asset entries associated with the asset category

getCategories

public static List<AssetCategory> getCategories()

getCategories

public static List<AssetCategory> getCategories(String className,
                                                long classPK)

getCategories

public static List<AssetCategory> getCategories(long classNameId,
                                                long classPK)

getCategories

public static List<AssetCategory> getCategories(Hits hits)
                                         throws PortalException
Throws:
PortalException

getCategory

public static AssetCategory getCategory(long categoryId)
                                 throws PortalException
Throws:
PortalException

getCategory

public static AssetCategory getCategory(String uuid,
                                        long groupId)
                                 throws PortalException
Throws:
PortalException

getCategoryIds

public static long[] getCategoryIds(String className,
                                    long classPK)

getCategoryNames

public static String[] getCategoryNames()

getCategoryNames

public static String[] getCategoryNames(String className,
                                        long classPK)

getCategoryNames

public static String[] getCategoryNames(long classNameId,
                                        long classPK)

getChildCategories

public static List<AssetCategory> getChildCategories(long parentCategoryId)

getChildCategories

public static List<AssetCategory> getChildCategories(long parentCategoryId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<AssetCategory> obc)

getChildCategoriesCount

public static int getChildCategoriesCount(long parentCategoryId)

getEntryCategories

public static List<AssetCategory> getEntryCategories(long entryId)

getExportActionableDynamicQuery

public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)

getIndexableActionableDynamicQuery

public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException
Throws:
PortalException

getSubcategoryIds

public static List<Long> getSubcategoryIds(long parentCategoryId)

getVocabularyCategories

public static List<AssetCategory> getVocabularyCategories(long parentCategoryId,
                                                          long vocabularyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetCategory> obc)

getVocabularyCategories

public static List<AssetCategory> getVocabularyCategories(long vocabularyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetCategory> obc)

getVocabularyCategoriesCount

public static int getVocabularyCategoriesCount(long vocabularyId)

getVocabularyRootCategories

public static List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator<AssetCategory> obc)

getVocabularyRootCategoriesCount

public static int getVocabularyRootCategoriesCount(long vocabularyId)

hasAssetEntryAssetCategories

public static boolean hasAssetEntryAssetCategories(long entryId)

hasAssetEntryAssetCategory

public static boolean hasAssetEntryAssetCategory(long entryId,
                                                 long categoryId)

mergeCategories

public static AssetCategory mergeCategories(long fromCategoryId,
                                            long toCategoryId)
                                     throws PortalException
Throws:
PortalException

moveCategory

public static AssetCategory moveCategory(long categoryId,
                                         long parentCategoryId,
                                         long vocabularyId,
                                         ServiceContext serviceContext)
                                  throws PortalException
Throws:
PortalException

rebuildTree

public static void rebuildTree(long groupId,
                               boolean force)

search

public static List<AssetCategory> search(long groupId,
                                         String name,
                                         String[] categoryProperties,
                                         int start,
                                         int end)

searchCategories

public static BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                    long[] groupIds,
                                                                    String title,
                                                                    long[] parentCategoryIds,
                                                                    long[] vocabularyIds,
                                                                    int start,
                                                                    int end)
                                                             throws PortalException
Throws:
PortalException

searchCategories

public static BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                    long groupIds,
                                                                    String title,
                                                                    long vocabularyId,
                                                                    int start,
                                                                    int end)
                                                             throws PortalException
Throws:
PortalException

searchCategories

public static BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                    long[] groupIds,
                                                                    String title,
                                                                    long[] vocabularyIds,
                                                                    long[] parentCategoryIds,
                                                                    int start,
                                                                    int end,
                                                                    Sort sort)
                                                             throws PortalException
Throws:
PortalException

searchCategories

public static BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                    long[] groupIds,
                                                                    String title,
                                                                    long[] vocabularyIds,
                                                                    int start,
                                                                    int end)
                                                             throws PortalException
Throws:
PortalException

setAssetEntryAssetCategories

public static void setAssetEntryAssetCategories(long entryId,
                                                long[] categoryIds)

updateAssetCategory

public static AssetCategory updateAssetCategory(AssetCategory assetCategory)
Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
assetCategory - the asset category
Returns:
the asset category that was updated

updateCategory

public static AssetCategory updateCategory(long userId,
                                           long categoryId,
                                           long parentCategoryId,
                                           Map<Locale,String> titleMap,
                                           Map<Locale,String> descriptionMap,
                                           long vocabularyId,
                                           String[] categoryProperties,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException

getService

public static AssetCategoryLocalService getService()

Liferay 7.0-ce-b4