Liferay 6.0.5

com.liferay.portlet.asset.service
Class AssetCategoryLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetCategoryLocalServiceWrapper
All Implemented Interfaces:
AssetCategoryLocalService

public class AssetCategoryLocalServiceWrapper
extends Object
implements AssetCategoryLocalService

This class is a wrapper for AssetCategoryLocalService.

See Also:
AssetCategoryLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
AssetCategoryLocalServiceWrapper(AssetCategoryLocalService assetCategoryLocalService)
           
 
Method Summary
 AssetCategory addAssetCategory(AssetCategory assetCategory)
          Adds the asset category to the database.
 AssetCategory addCategory(long userId, long parentCategoryId, Map<Locale,String> titleMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 void addCategoryResources(AssetCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(AssetCategory category, String[] communityPermissions, String[] guestPermissions)
           
 AssetCategory createAssetCategory(long categoryId)
          Creates a new asset category with the primary key.
 void deleteAssetCategory(AssetCategory assetCategory)
          Deletes the asset category from the database.
 void deleteAssetCategory(long categoryId)
          Deletes the asset category with the primary key from the database.
 void deleteCategory(AssetCategory category)
           
 void deleteCategory(long categoryId)
           
 void deleteVocabularyCategories(long vocabularyId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 List<AssetCategory> getAssetCategories(int start, int end)
          Gets a range of all the asset categories.
 int getAssetCategoriesCount()
          Gets the number of asset categories.
 AssetCategory getAssetCategory(long categoryId)
          Gets the asset category with the primary key.
 AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Gets the asset category with the UUID and group id.
 List<AssetCategory> getCategories()
           
 List<AssetCategory> getCategories(long classNameId, long classPK)
           
 List<AssetCategory> getCategories(String className, long classPK)
           
 AssetCategory getCategory(long categoryId)
           
 long[] getCategoryIds(String className, long classPK)
           
 List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc)
           
 int getChildCategoriesCount(long parentCategoryId)
           
 List<AssetCategory> getEntryCategories(long entryId)
           
 List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc)
           
 List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator obc)
           
 List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc)
           
 AssetCategoryLocalService getWrappedAssetCategoryLocalService()
           
 void mergeCategories(long fromCategoryId, long toCategoryId)
           
 JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end)
           
 AssetCategory updateAssetCategory(AssetCategory assetCategory)
          Updates the asset category in the database.
 AssetCategory updateAssetCategory(AssetCategory assetCategory, boolean merge)
          Updates the asset category in the database.
 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
 

Constructor Detail

AssetCategoryLocalServiceWrapper

public AssetCategoryLocalServiceWrapper(AssetCategoryLocalService assetCategoryLocalService)
Method Detail

addAssetCategory

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

Specified by:
addAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category to add
Returns:
the asset category that was added
Throws:
SystemException - if a system exception occurred

createAssetCategory

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

Specified by:
createAssetCategory in interface AssetCategoryLocalService
Parameters:
categoryId - the primary key for the new asset category
Returns:
the new asset category

deleteAssetCategory

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

Specified by:
deleteAssetCategory in interface AssetCategoryLocalService
Parameters:
categoryId - the primary key of the asset category to delete
Throws:
PortalException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

deleteAssetCategory

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

Specified by:
deleteAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getAssetCategory

public AssetCategory getAssetCategory(long categoryId)
                               throws PortalException,
                                      SystemException
Gets the asset category with the primary key.

Specified by:
getAssetCategory in interface AssetCategoryLocalService
Parameters:
categoryId - the primary key of the asset category to get
Returns:
the asset category
Throws:
PortalException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getAssetCategoryByUuidAndGroupId

public AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
                                                      long groupId)
                                               throws PortalException,
                                                      SystemException
Gets the asset category with the UUID and group id.

Specified by:
getAssetCategoryByUuidAndGroupId in interface AssetCategoryLocalService
Parameters:
uuid - the UUID of asset category to get
groupId - the group id of the asset category to get
Returns:
the asset category
Throws:
PortalException - if a asset category with the UUID and group id could not be found
SystemException - if a system exception occurred

getAssetCategories

public List<AssetCategory> getAssetCategories(int start,
                                              int end)
                                       throws SystemException
Gets 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.

Specified by:
getAssetCategories in interface AssetCategoryLocalService
Parameters:
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of asset categories
Throws:
SystemException - if a system exception occurred

getAssetCategoriesCount

public int getAssetCategoriesCount()
                            throws SystemException
Gets the number of asset categories.

Specified by:
getAssetCategoriesCount in interface AssetCategoryLocalService
Returns:
the number of asset categories
Throws:
SystemException - if a system exception occurred

updateAssetCategory

public AssetCategory updateAssetCategory(AssetCategory assetCategory)
                                  throws SystemException
Updates the asset category in the database. Also notifies the appropriate model listeners.

Specified by:
updateAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category to update
Returns:
the asset category that was updated
Throws:
SystemException - if a system exception occurred

updateAssetCategory

public AssetCategory updateAssetCategory(AssetCategory assetCategory,
                                         boolean merge)
                                  throws SystemException
Updates the asset category in the database. Also notifies the appropriate model listeners.

Specified by:
updateAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category to update
merge - whether to merge the asset category with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the asset category that was updated
Throws:
SystemException - if a system exception occurred

addCategory

public AssetCategory addCategory(long userId,
                                 long parentCategoryId,
                                 Map<Locale,String> titleMap,
                                 long vocabularyId,
                                 String[] categoryProperties,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Specified by:
addCategory in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

addCategoryResources

public void addCategoryResources(AssetCategory category,
                                 boolean addCommunityPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addCategoryResources in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

addCategoryResources

public void addCategoryResources(AssetCategory category,
                                 String[] communityPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Specified by:
addCategoryResources in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

deleteCategory

public void deleteCategory(AssetCategory category)
                    throws PortalException,
                           SystemException
Specified by:
deleteCategory in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

deleteCategory

public void deleteCategory(long categoryId)
                    throws PortalException,
                           SystemException
Specified by:
deleteCategory in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

deleteVocabularyCategories

public void deleteVocabularyCategories(long vocabularyId)
                                throws PortalException,
                                       SystemException
Specified by:
deleteVocabularyCategories in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

getCategories

public List<AssetCategory> getCategories()
                                  throws SystemException
Specified by:
getCategories in interface AssetCategoryLocalService
Throws:
SystemException

getCategories

public List<AssetCategory> getCategories(long classNameId,
                                         long classPK)
                                  throws SystemException
Specified by:
getCategories in interface AssetCategoryLocalService
Throws:
SystemException

getCategories

public List<AssetCategory> getCategories(String className,
                                         long classPK)
                                  throws SystemException
Specified by:
getCategories in interface AssetCategoryLocalService
Throws:
SystemException

getCategory

public AssetCategory getCategory(long categoryId)
                          throws PortalException,
                                 SystemException
Specified by:
getCategory in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

getCategoryIds

public long[] getCategoryIds(String className,
                             long classPK)
                      throws SystemException
Specified by:
getCategoryIds in interface AssetCategoryLocalService
Throws:
SystemException

getChildCategories

public List<AssetCategory> getChildCategories(long parentCategoryId,
                                              int start,
                                              int end,
                                              OrderByComparator obc)
                                       throws SystemException
Specified by:
getChildCategories in interface AssetCategoryLocalService
Throws:
SystemException

getChildCategoriesCount

public int getChildCategoriesCount(long parentCategoryId)
                            throws SystemException
Specified by:
getChildCategoriesCount in interface AssetCategoryLocalService
Throws:
SystemException

getEntryCategories

public List<AssetCategory> getEntryCategories(long entryId)
                                       throws SystemException
Specified by:
getEntryCategories in interface AssetCategoryLocalService
Throws:
SystemException

getVocabularyCategories

public List<AssetCategory> getVocabularyCategories(long vocabularyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator obc)
                                            throws SystemException
Specified by:
getVocabularyCategories in interface AssetCategoryLocalService
Throws:
SystemException

getVocabularyCategories

public List<AssetCategory> getVocabularyCategories(long parentCategoryId,
                                                   long vocabularyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator obc)
                                            throws SystemException
Specified by:
getVocabularyCategories in interface AssetCategoryLocalService
Throws:
SystemException

getVocabularyRootCategories

public List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator obc)
                                                throws SystemException
Specified by:
getVocabularyRootCategories in interface AssetCategoryLocalService
Throws:
SystemException

mergeCategories

public void mergeCategories(long fromCategoryId,
                            long toCategoryId)
                     throws PortalException,
                            SystemException
Specified by:
mergeCategories in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

search

public JSONArray search(long groupId,
                        String name,
                        String[] categoryProperties,
                        int start,
                        int end)
                 throws SystemException
Specified by:
search in interface AssetCategoryLocalService
Throws:
SystemException

updateCategory

public AssetCategory updateCategory(long userId,
                                    long categoryId,
                                    long parentCategoryId,
                                    Map<Locale,String> titleMap,
                                    long vocabularyId,
                                    String[] categoryProperties,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Specified by:
updateCategory in interface AssetCategoryLocalService
Throws:
PortalException
SystemException

getWrappedAssetCategoryLocalService

public AssetCategoryLocalService getWrappedAssetCategoryLocalService()

Liferay 6.0.5