Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.base
Class AssetCategoryLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, AssetCategoryLocalService
Direct Known Subclasses:
AssetCategoryLocalServiceImpl

@ProviderType
public abstract class AssetCategoryLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements AssetCategoryLocalService, IdentifiableOSGiService

Provides the base implementation for the asset category local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in AssetCategoryLocalServiceImpl.

See Also:
AssetCategoryLocalServiceImpl, AssetCategoryLocalServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  AssetCategoryFinder assetCategoryFinder
           
protected  AssetCategoryLocalService assetCategoryLocalService
           
protected  AssetCategoryPersistence assetCategoryPersistence
           
protected  AssetCategoryPropertyFinder assetCategoryPropertyFinder
           
protected  AssetCategoryPropertyLocalService assetCategoryPropertyLocalService
           
protected  AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
           
protected  AssetEntryFinder assetEntryFinder
           
protected  AssetEntryLocalService assetEntryLocalService
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  AssetTagFinder assetTagFinder
           
protected  AssetTagLocalService assetTagLocalService
           
protected  AssetTagPersistence assetTagPersistence
           
protected  AssetVocabularyFinder assetVocabularyFinder
           
protected  AssetVocabularyLocalService assetVocabularyLocalService
           
protected  AssetVocabularyPersistence assetVocabularyPersistence
           
protected  ClassNameLocalService classNameLocalService
           
protected  ClassNamePersistence classNamePersistence
           
protected  CounterLocalService counterLocalService
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  ResourceLocalService resourceLocalService
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
 
Constructor Summary
AssetCategoryLocalServiceBaseImpl()
           
 
Method Summary
 AssetCategory addAssetCategory(AssetCategory assetCategory)
          Adds the asset category to the database.
 void addAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories)
           
 void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
 void addAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
           
 void addAssetEntryAssetCategory(long entryId, long categoryId)
           
 void afterPropertiesSet()
           
 void clearAssetEntryAssetCategories(long entryId)
           
 AssetCategory createAssetCategory(long categoryId)
          Creates a new asset category with the primary key.
 AssetCategory deleteAssetCategory(AssetCategory assetCategory)
          Deletes the asset category from the database.
 AssetCategory deleteAssetCategory(long categoryId)
          Deletes the asset category with the primary key from the database.
 void deleteAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories)
           
 void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
 void deleteAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
           
 void deleteAssetEntryAssetCategory(long entryId, long categoryId)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void destroy()
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<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.
<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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 AssetCategory fetchAssetCategory(long categoryId)
           
 AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<AssetCategory> getAssetCategories(int start, int end)
          Returns a range of all the asset categories.
 List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the asset categories matching the UUID and company.
 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.
 int getAssetCategoriesCount()
          Returns the number of asset categories.
 AssetCategory getAssetCategory(long categoryId)
          Returns the asset category with the primary key.
 AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
 AssetCategoryFinder getAssetCategoryFinder()
          Returns the asset category finder.
 AssetCategoryLocalService getAssetCategoryLocalService()
          Returns the asset category local service.
 AssetCategoryPersistence getAssetCategoryPersistence()
          Returns the asset category persistence.
 AssetCategoryPropertyFinder getAssetCategoryPropertyFinder()
          Returns the asset category property finder.
 AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService()
          Returns the asset category property local service.
 AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence()
          Returns the asset category property persistence.
 List<AssetCategory> getAssetEntryAssetCategories(long entryId)
           
 List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end)
           
 List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
           
 int getAssetEntryAssetCategoriesCount(long entryId)
           
 AssetEntryFinder getAssetEntryFinder()
          Returns the asset entry finder.
 AssetEntryLocalService getAssetEntryLocalService()
          Returns the asset entry local service.
 AssetEntryPersistence getAssetEntryPersistence()
          Returns the asset entry persistence.
 long[] getAssetEntryPrimaryKeys(long categoryId)
          Returns the entryIds of the asset entries associated with the asset category.
 AssetTagFinder getAssetTagFinder()
          Returns the asset tag finder.
 AssetTagLocalService getAssetTagLocalService()
          Returns the asset tag local service.
 AssetTagPersistence getAssetTagPersistence()
          Returns the asset tag persistence.
 AssetVocabularyFinder getAssetVocabularyFinder()
          Returns the asset vocabulary finder.
 AssetVocabularyLocalService getAssetVocabularyLocalService()
          Returns the asset vocabulary local service.
 AssetVocabularyPersistence getAssetVocabularyPersistence()
          Returns the asset vocabulary persistence.
 ClassNameLocalService getClassNameLocalService()
          Returns the class name local service.
 ClassNamePersistence getClassNamePersistence()
          Returns the class name persistence.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceLocalService getResourceLocalService()
          Returns the resource local service.
 UserFinder getUserFinder()
          Returns the user finder.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
 boolean hasAssetEntryAssetCategories(long entryId)
           
 boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
           
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder)
          Sets the asset category finder.
 void setAssetCategoryLocalService(AssetCategoryLocalService assetCategoryLocalService)
          Sets the asset category local service.
 void setAssetCategoryPersistence(AssetCategoryPersistence assetCategoryPersistence)
          Sets the asset category persistence.
 void setAssetCategoryPropertyFinder(AssetCategoryPropertyFinder assetCategoryPropertyFinder)
          Sets the asset category property finder.
 void setAssetCategoryPropertyLocalService(AssetCategoryPropertyLocalService assetCategoryPropertyLocalService)
          Sets the asset category property local service.
 void setAssetCategoryPropertyPersistence(AssetCategoryPropertyPersistence assetCategoryPropertyPersistence)
          Sets the asset category property persistence.
 void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
 void setAssetEntryFinder(AssetEntryFinder assetEntryFinder)
          Sets the asset entry finder.
 void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
          Sets the asset entry local service.
 void setAssetEntryPersistence(AssetEntryPersistence assetEntryPersistence)
          Sets the asset entry persistence.
 void setAssetTagFinder(AssetTagFinder assetTagFinder)
          Sets the asset tag finder.
 void setAssetTagLocalService(AssetTagLocalService assetTagLocalService)
          Sets the asset tag local service.
 void setAssetTagPersistence(AssetTagPersistence assetTagPersistence)
          Sets the asset tag persistence.
 void setAssetVocabularyFinder(AssetVocabularyFinder assetVocabularyFinder)
          Sets the asset vocabulary finder.
 void setAssetVocabularyLocalService(AssetVocabularyLocalService assetVocabularyLocalService)
          Sets the asset vocabulary local service.
 void setAssetVocabularyPersistence(AssetVocabularyPersistence assetVocabularyPersistence)
          Sets the asset vocabulary persistence.
 void setClassNameLocalService(ClassNameLocalService classNameLocalService)
          Sets the class name local service.
 void setClassNamePersistence(ClassNamePersistence classNamePersistence)
          Sets the class name persistence.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 void setUserFinder(UserFinder userFinder)
          Sets the user finder.
 void setUserLocalService(UserLocalService userLocalService)
          Sets the user local service.
 void setUserPersistence(UserPersistence userPersistence)
          Sets the user persistence.
 AssetCategory updateAssetCategory(AssetCategory assetCategory)
          Updates the asset category in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.asset.service.AssetCategoryLocalService
addCategory, addCategory, addCategoryResources, addCategoryResources, deleteCategories, deleteCategories, deleteCategory, deleteCategory, deleteCategory, deleteVocabularyCategories, fetchCategory, getCategories, getCategories, getCategories, getCategories, getCategory, getCategory, getCategoryIds, getCategoryNames, getCategoryNames, getCategoryNames, getChildCategories, getChildCategories, getChildCategoriesCount, getEntryCategories, getSubcategoryIds, getVocabularyCategories, getVocabularyCategories, getVocabularyCategoriesCount, getVocabularyRootCategories, getVocabularyRootCategoriesCount, mergeCategories, moveCategory, rebuildTree, search, searchCategories, searchCategories, searchCategories, searchCategories, updateCategory
 

Field Detail

assetCategoryLocalService

@BeanReference(type=AssetCategoryLocalService.class)
protected AssetCategoryLocalService assetCategoryLocalService

assetCategoryPersistence

@BeanReference(type=AssetCategoryPersistence.class)
protected AssetCategoryPersistence assetCategoryPersistence

assetCategoryFinder

@BeanReference(type=AssetCategoryFinder.class)
protected AssetCategoryFinder assetCategoryFinder

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

classNameLocalService

@BeanReference(type=ClassNameLocalService.class)
protected ClassNameLocalService classNameLocalService

classNamePersistence

@BeanReference(type=ClassNamePersistence.class)
protected ClassNamePersistence classNamePersistence

resourceLocalService

@BeanReference(type=ResourceLocalService.class)
protected ResourceLocalService resourceLocalService

userLocalService

@BeanReference(type=UserLocalService.class)
protected UserLocalService userLocalService

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userFinder

@BeanReference(type=UserFinder.class)
protected UserFinder userFinder

assetCategoryPropertyLocalService

@BeanReference(type=AssetCategoryPropertyLocalService.class)
protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService

assetCategoryPropertyPersistence

@BeanReference(type=AssetCategoryPropertyPersistence.class)
protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence

assetCategoryPropertyFinder

@BeanReference(type=AssetCategoryPropertyFinder.class)
protected AssetCategoryPropertyFinder assetCategoryPropertyFinder

assetEntryLocalService

@BeanReference(type=AssetEntryLocalService.class)
protected AssetEntryLocalService assetEntryLocalService

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetEntryFinder

@BeanReference(type=AssetEntryFinder.class)
protected AssetEntryFinder assetEntryFinder

assetTagLocalService

@BeanReference(type=AssetTagLocalService.class)
protected AssetTagLocalService assetTagLocalService

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetTagFinder

@BeanReference(type=AssetTagFinder.class)
protected AssetTagFinder assetTagFinder

assetVocabularyLocalService

@BeanReference(type=AssetVocabularyLocalService.class)
protected AssetVocabularyLocalService assetVocabularyLocalService

assetVocabularyPersistence

@BeanReference(type=AssetVocabularyPersistence.class)
protected AssetVocabularyPersistence assetVocabularyPersistence

assetVocabularyFinder

@BeanReference(type=AssetVocabularyFinder.class)
protected AssetVocabularyFinder assetVocabularyFinder

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

AssetCategoryLocalServiceBaseImpl

public AssetCategoryLocalServiceBaseImpl()
Method Detail

addAssetCategory

@Indexable(type=REINDEX)
public AssetCategory addAssetCategory(AssetCategory assetCategory)
Adds the asset category to the database. Also notifies the appropriate model listeners.

Specified by:
addAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category
Returns:
the asset category that was added

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

@Indexable(type=DELETE)
public AssetCategory deleteAssetCategory(long categoryId)
                                  throws PortalException
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
Returns:
the asset category that was removed
Throws:
PortalException - if a asset category with the primary key could not be found

deleteAssetCategory

@Indexable(type=DELETE)
public AssetCategory deleteAssetCategory(AssetCategory assetCategory)
Deletes the asset category from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category
Returns:
the asset category that was removed

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface AssetCategoryLocalService

dynamicQuery

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

Specified by:
dynamicQuery in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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 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.

Specified by:
dynamicQuery in interface AssetCategoryLocalService
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 <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 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.

Specified by:
dynamicQuery in interface AssetCategoryLocalService
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 long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

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

Specified by:
dynamicQueryCount in interface AssetCategoryLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAssetCategory

public AssetCategory fetchAssetCategory(long categoryId)
Specified by:
fetchAssetCategory in interface AssetCategoryLocalService

fetchAssetCategoryByUuidAndGroupId

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

Specified by:
fetchAssetCategoryByUuidAndGroupId in interface AssetCategoryLocalService
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

getAssetCategory

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

Specified by:
getAssetCategory in interface AssetCategoryLocalService
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

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface AssetCategoryLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface AssetCategoryLocalService

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface AssetCategoryLocalService

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface AssetCategoryLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface AssetCategoryLocalService
Throws:
PortalException

getAssetCategoriesByUuidAndCompanyId

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

Specified by:
getAssetCategoriesByUuidAndCompanyId in interface AssetCategoryLocalService
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 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.

Specified by:
getAssetCategoriesByUuidAndCompanyId in interface AssetCategoryLocalService
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

getAssetCategoryByUuidAndGroupId

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

Specified by:
getAssetCategoryByUuidAndGroupId in interface AssetCategoryLocalService
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

getAssetCategories

public 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 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.

Specified by:
getAssetCategories in interface AssetCategoryLocalService
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

getAssetCategoriesCount

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

Specified by:
getAssetCategoriesCount in interface AssetCategoryLocalService
Returns:
the number of asset categories

updateAssetCategory

@Indexable(type=REINDEX)
public 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.

Specified by:
updateAssetCategory in interface AssetCategoryLocalService
Parameters:
assetCategory - the asset category
Returns:
the asset category that was updated

addAssetEntryAssetCategory

public void addAssetEntryAssetCategory(long entryId,
                                       long categoryId)
Specified by:
addAssetEntryAssetCategory in interface AssetCategoryLocalService

addAssetEntryAssetCategory

public void addAssetEntryAssetCategory(long entryId,
                                       AssetCategory assetCategory)
Specified by:
addAssetEntryAssetCategory in interface AssetCategoryLocalService

addAssetEntryAssetCategories

public void addAssetEntryAssetCategories(long entryId,
                                         long[] categoryIds)
Specified by:
addAssetEntryAssetCategories in interface AssetCategoryLocalService

addAssetEntryAssetCategories

public void addAssetEntryAssetCategories(long entryId,
                                         List<AssetCategory> AssetCategories)
Specified by:
addAssetEntryAssetCategories in interface AssetCategoryLocalService

clearAssetEntryAssetCategories

public void clearAssetEntryAssetCategories(long entryId)
Specified by:
clearAssetEntryAssetCategories in interface AssetCategoryLocalService

deleteAssetEntryAssetCategory

public void deleteAssetEntryAssetCategory(long entryId,
                                          long categoryId)
Specified by:
deleteAssetEntryAssetCategory in interface AssetCategoryLocalService

deleteAssetEntryAssetCategory

public void deleteAssetEntryAssetCategory(long entryId,
                                          AssetCategory assetCategory)
Specified by:
deleteAssetEntryAssetCategory in interface AssetCategoryLocalService

deleteAssetEntryAssetCategories

public void deleteAssetEntryAssetCategories(long entryId,
                                            long[] categoryIds)
Specified by:
deleteAssetEntryAssetCategories in interface AssetCategoryLocalService

deleteAssetEntryAssetCategories

public void deleteAssetEntryAssetCategories(long entryId,
                                            List<AssetCategory> AssetCategories)
Specified by:
deleteAssetEntryAssetCategories in interface AssetCategoryLocalService

getAssetEntryPrimaryKeys

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

Specified by:
getAssetEntryPrimaryKeys in interface AssetCategoryLocalService
Parameters:
categoryId - the categoryId of the asset category
Returns:
long[] the entryIds of asset entries associated with the asset category

getAssetEntryAssetCategories

public List<AssetCategory> getAssetEntryAssetCategories(long entryId)
Specified by:
getAssetEntryAssetCategories in interface AssetCategoryLocalService

getAssetEntryAssetCategories

public List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                        int start,
                                                        int end)
Specified by:
getAssetEntryAssetCategories in interface AssetCategoryLocalService

getAssetEntryAssetCategories

public List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                        int start,
                                                        int end,
                                                        OrderByComparator<AssetCategory> orderByComparator)
Specified by:
getAssetEntryAssetCategories in interface AssetCategoryLocalService

getAssetEntryAssetCategoriesCount

public int getAssetEntryAssetCategoriesCount(long entryId)
Specified by:
getAssetEntryAssetCategoriesCount in interface AssetCategoryLocalService

hasAssetEntryAssetCategory

public boolean hasAssetEntryAssetCategory(long entryId,
                                          long categoryId)
Specified by:
hasAssetEntryAssetCategory in interface AssetCategoryLocalService

hasAssetEntryAssetCategories

public boolean hasAssetEntryAssetCategories(long entryId)
Specified by:
hasAssetEntryAssetCategories in interface AssetCategoryLocalService

setAssetEntryAssetCategories

public void setAssetEntryAssetCategories(long entryId,
                                         long[] categoryIds)
Specified by:
setAssetEntryAssetCategories in interface AssetCategoryLocalService

getAssetCategoryLocalService

public AssetCategoryLocalService getAssetCategoryLocalService()
Returns the asset category local service.

Returns:
the asset category local service

setAssetCategoryLocalService

public void setAssetCategoryLocalService(AssetCategoryLocalService assetCategoryLocalService)
Sets the asset category local service.

Parameters:
assetCategoryLocalService - the asset category local service

getAssetCategoryPersistence

public AssetCategoryPersistence getAssetCategoryPersistence()
Returns the asset category persistence.

Returns:
the asset category persistence

setAssetCategoryPersistence

public void setAssetCategoryPersistence(AssetCategoryPersistence assetCategoryPersistence)
Sets the asset category persistence.

Parameters:
assetCategoryPersistence - the asset category persistence

getAssetCategoryFinder

public AssetCategoryFinder getAssetCategoryFinder()
Returns the asset category finder.

Returns:
the asset category finder

setAssetCategoryFinder

public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder)
Sets the asset category finder.

Parameters:
assetCategoryFinder - the asset category finder

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getClassNameLocalService

public ClassNameLocalService getClassNameLocalService()
Returns the class name local service.

Returns:
the class name local service

setClassNameLocalService

public void setClassNameLocalService(ClassNameLocalService classNameLocalService)
Sets the class name local service.

Parameters:
classNameLocalService - the class name local service

getClassNamePersistence

public ClassNamePersistence getClassNamePersistence()
Returns the class name persistence.

Returns:
the class name persistence

setClassNamePersistence

public void setClassNamePersistence(ClassNamePersistence classNamePersistence)
Sets the class name persistence.

Parameters:
classNamePersistence - the class name persistence

getResourceLocalService

public ResourceLocalService getResourceLocalService()
Returns the resource local service.

Returns:
the resource local service

setResourceLocalService

public void setResourceLocalService(ResourceLocalService resourceLocalService)
Sets the resource local service.

Parameters:
resourceLocalService - the resource local service

getUserLocalService

public UserLocalService getUserLocalService()
Returns the user local service.

Returns:
the user local service

setUserLocalService

public void setUserLocalService(UserLocalService userLocalService)
Sets the user local service.

Parameters:
userLocalService - the user local service

getUserPersistence

public UserPersistence getUserPersistence()
Returns the user persistence.

Returns:
the user persistence

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)
Sets the user persistence.

Parameters:
userPersistence - the user persistence

getUserFinder

public UserFinder getUserFinder()
Returns the user finder.

Returns:
the user finder

setUserFinder

public void setUserFinder(UserFinder userFinder)
Sets the user finder.

Parameters:
userFinder - the user finder

getAssetCategoryPropertyLocalService

public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService()
Returns the asset category property local service.

Returns:
the asset category property local service

setAssetCategoryPropertyLocalService

public void setAssetCategoryPropertyLocalService(AssetCategoryPropertyLocalService assetCategoryPropertyLocalService)
Sets the asset category property local service.

Parameters:
assetCategoryPropertyLocalService - the asset category property local service

getAssetCategoryPropertyPersistence

public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence()
Returns the asset category property persistence.

Returns:
the asset category property persistence

setAssetCategoryPropertyPersistence

public void setAssetCategoryPropertyPersistence(AssetCategoryPropertyPersistence assetCategoryPropertyPersistence)
Sets the asset category property persistence.

Parameters:
assetCategoryPropertyPersistence - the asset category property persistence

getAssetCategoryPropertyFinder

public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder()
Returns the asset category property finder.

Returns:
the asset category property finder

setAssetCategoryPropertyFinder

public void setAssetCategoryPropertyFinder(AssetCategoryPropertyFinder assetCategoryPropertyFinder)
Sets the asset category property finder.

Parameters:
assetCategoryPropertyFinder - the asset category property finder

getAssetEntryLocalService

public AssetEntryLocalService getAssetEntryLocalService()
Returns the asset entry local service.

Returns:
the asset entry local service

setAssetEntryLocalService

public void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
Sets the asset entry local service.

Parameters:
assetEntryLocalService - the asset entry local service

getAssetEntryPersistence

public AssetEntryPersistence getAssetEntryPersistence()
Returns the asset entry persistence.

Returns:
the asset entry persistence

setAssetEntryPersistence

public void setAssetEntryPersistence(AssetEntryPersistence assetEntryPersistence)
Sets the asset entry persistence.

Parameters:
assetEntryPersistence - the asset entry persistence

getAssetEntryFinder

public AssetEntryFinder getAssetEntryFinder()
Returns the asset entry finder.

Returns:
the asset entry finder

setAssetEntryFinder

public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder)
Sets the asset entry finder.

Parameters:
assetEntryFinder - the asset entry finder

getAssetTagLocalService

public AssetTagLocalService getAssetTagLocalService()
Returns the asset tag local service.

Returns:
the asset tag local service

setAssetTagLocalService

public void setAssetTagLocalService(AssetTagLocalService assetTagLocalService)
Sets the asset tag local service.

Parameters:
assetTagLocalService - the asset tag local service

getAssetTagPersistence

public AssetTagPersistence getAssetTagPersistence()
Returns the asset tag persistence.

Returns:
the asset tag persistence

setAssetTagPersistence

public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence)
Sets the asset tag persistence.

Parameters:
assetTagPersistence - the asset tag persistence

getAssetTagFinder

public AssetTagFinder getAssetTagFinder()
Returns the asset tag finder.

Returns:
the asset tag finder

setAssetTagFinder

public void setAssetTagFinder(AssetTagFinder assetTagFinder)
Sets the asset tag finder.

Parameters:
assetTagFinder - the asset tag finder

getAssetVocabularyLocalService

public AssetVocabularyLocalService getAssetVocabularyLocalService()
Returns the asset vocabulary local service.

Returns:
the asset vocabulary local service

setAssetVocabularyLocalService

public void setAssetVocabularyLocalService(AssetVocabularyLocalService assetVocabularyLocalService)
Sets the asset vocabulary local service.

Parameters:
assetVocabularyLocalService - the asset vocabulary local service

getAssetVocabularyPersistence

public AssetVocabularyPersistence getAssetVocabularyPersistence()
Returns the asset vocabulary persistence.

Returns:
the asset vocabulary persistence

setAssetVocabularyPersistence

public void setAssetVocabularyPersistence(AssetVocabularyPersistence assetVocabularyPersistence)
Sets the asset vocabulary persistence.

Parameters:
assetVocabularyPersistence - the asset vocabulary persistence

getAssetVocabularyFinder

public AssetVocabularyFinder getAssetVocabularyFinder()
Returns the asset vocabulary finder.

Returns:
the asset vocabulary finder

setAssetVocabularyFinder

public void setAssetVocabularyFinder(AssetVocabularyFinder assetVocabularyFinder)
Sets the asset vocabulary finder.

Parameters:
assetVocabularyFinder - the asset vocabulary finder

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService
Specified by:
getOSGiServiceIdentifier in interface AssetCategoryLocalService
Returns:
the OSGi service identifier

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-b4