com.liferay.portlet.asset.service
Interface AssetCategoryLocalService

All Known Implementing Classes:
AssetCategoryLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface AssetCategoryLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. 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.

Author:
Brian Wing Shun Chan
See Also:
AssetCategoryLocalServiceUtil
Generated:

Method Summary
 AssetCategory addAssetCategory(AssetCategory assetCategory)
           
 AssetCategory addCategory(java.lang.String uuid, long userId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, long vocabularyId, java.lang.String[] categoryProperties, ServiceContext serviceContext)
           
 void addCategoryResources(AssetCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(AssetCategory category, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 AssetCategory createAssetCategory(long categoryId)
           
 void deleteAssetCategory(AssetCategory assetCategory)
           
 void deleteAssetCategory(long categoryId)
           
 void deleteCategory(AssetCategory category)
           
 void deleteCategory(long categoryId)
           
 void deleteVocabularyCategories(long vocabularyId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<AssetCategory> getAssetCategories(int start, int end)
           
 int getAssetCategoriesCount()
           
 AssetCategory getAssetCategory(long categoryId)
           
 java.util.List<AssetCategory> getCategories()
           
 java.util.List<AssetCategory> getCategories(long classNameId, long classPK)
           
 java.util.List<AssetCategory> getCategories(java.lang.String className, long classPK)
           
 AssetCategory getCategory(long categoryId)
           
 long[] getCategoryIds(java.lang.String className, long classPK)
           
 java.util.List<AssetCategory> getChildCategories(long parentCategoryId)
           
 java.util.List<AssetCategory> getEntryCategories(long entryId)
           
 java.util.List<AssetCategory> getVocabularyCategories(long vocabularyId)
           
 java.util.List<AssetCategory> getVocabularyRootCategories(long vocabularyId)
           
 void mergeCategories(long fromCategoryId, long toCategoryId)
           
 com.liferay.portal.kernel.json.JSONArray search(long groupId, java.lang.String name, java.lang.String[] categoryProperties, int start, int end)
           
 AssetCategory updateAssetCategory(AssetCategory assetCategory)
           
 AssetCategory updateAssetCategory(AssetCategory assetCategory, boolean merge)
           
 AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, long vocabularyId, java.lang.String[] categoryProperties, ServiceContext serviceContext)
           
 

Method Detail

addAssetCategory

AssetCategory addAssetCategory(AssetCategory assetCategory)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createAssetCategory

AssetCategory createAssetCategory(long categoryId)

deleteAssetCategory

void deleteAssetCategory(long categoryId)
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteAssetCategory

void deleteAssetCategory(AssetCategory assetCategory)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAssetCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getAssetCategory(long categoryId)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getAssetCategories(int start,
                                                               int end)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAssetCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetCategoriesCount()
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAssetCategory

AssetCategory updateAssetCategory(AssetCategory assetCategory)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAssetCategory

AssetCategory updateAssetCategory(AssetCategory assetCategory,
                                  boolean merge)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addCategory

AssetCategory addCategory(java.lang.String uuid,
                          long userId,
                          long parentCategoryId,
                          java.util.Map<java.util.Locale,java.lang.String> titleMap,
                          long vocabularyId,
                          java.lang.String[] categoryProperties,
                          ServiceContext serviceContext)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addCategoryResources

void addCategoryResources(AssetCategory category,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addCategoryResources

void addCategoryResources(AssetCategory category,
                          java.lang.String[] communityPermissions,
                          java.lang.String[] guestPermissions)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteCategory

void deleteCategory(AssetCategory category)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteCategory

void deleteCategory(long categoryId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteVocabularyCategories

void deleteVocabularyCategories(long vocabularyId)
                                throws com.liferay.portal.kernel.exception.PortalException,
                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getCategories()
                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getCategories(long classNameId,
                                                          long classPK)
                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getCategories(java.lang.String className,
                                                          long classPK)
                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getCategory(long categoryId)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getCategoryIds(java.lang.String className,
                                    long classPK)
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getChildCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getChildCategories(long parentCategoryId)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getEntryCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getEntryCategories(long entryId)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getVocabularyCategories(long vocabularyId)
                                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getVocabularyRootCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getVocabularyRootCategories(long vocabularyId)
                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

mergeCategories

void mergeCategories(long fromCategoryId,
                     long toCategoryId)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
com.liferay.portal.kernel.json.JSONArray search(long groupId,
                                                              java.lang.String name,
                                                              java.lang.String[] categoryProperties,
                                                              int start,
                                                              int end)
                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateCategory

AssetCategory updateCategory(long userId,
                             long categoryId,
                             long parentCategoryId,
                             java.util.Map<java.util.Locale,java.lang.String> titleMap,
                             long vocabularyId,
                             java.lang.String[] categoryProperties,
                             ServiceContext serviceContext)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException