Liferay 6.2-ce-ga5

com.liferay.portlet.asset.service.impl
Class AssetTagStatsLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetTagStatsLocalServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetTagStatsLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, AssetTagStatsLocalService

public class AssetTagStatsLocalServiceImpl
extends AssetTagStatsLocalServiceBaseImpl

Provides the local service for accessing, adding, deleting, and updating asset tag statistics.


Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetTagStatsLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
AssetTagStatsLocalServiceImpl()
           
 
Method Summary
 AssetTagStats addTagStats(long tagId, long classNameId)
          Adds an asset tag statistics instance.
 void deleteTagStats(AssetTagStats tagStats)
          Deletes the asset tag statistics instance.
 void deleteTagStats(long tagStatsId)
          Deletes the asset tag statistics instance matching the tag statistics ID.
 void deleteTagStatsByClassNameId(long classNameId)
          Deletes all asset tag statistics instances associated with the asset entry matching the class name ID.
 void deleteTagStatsByTagId(long tagId)
          Deletes all asset tag statistics instances associated with the tag.
 List<AssetTagStats> getTagStats(long classNameId, int start, int end)
          Returns a range of all the asset tag statistics instances associated with the asset entry matching the class name ID.
 AssetTagStats getTagStats(long tagId, long classNameId)
          Returns the asset tag statistics instance with the tag and asset entry matching the class name ID
 AssetTagStats updateTagStats(long tagId, long classNameId)
          Updates the asset tag statistics instance.
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetTagStatsLocalServiceBaseImpl
addAssetTagStats, afterPropertiesSet, createAssetTagStats, deleteAssetTagStats, deleteAssetTagStats, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetTagStats, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStats, getAssetTagStatses, getAssetTagStatsesCount, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateAssetTagStats
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagStatsLocalServiceImpl

public AssetTagStatsLocalServiceImpl()
Method Detail

addTagStats

public AssetTagStats addTagStats(long tagId,
                                 long classNameId)
                          throws SystemException
Adds an asset tag statistics instance.

Parameters:
tagId - the primary key of the tag
classNameId - the asset entry's class name ID
Returns:
the asset tag statistics instance
Throws:
SystemException - if a system exception occurred

deleteTagStats

public void deleteTagStats(AssetTagStats tagStats)
                    throws SystemException
Deletes the asset tag statistics instance.

Parameters:
tagStats - the asset tag statistics instance
Throws:
SystemException - if a system exception occurred

deleteTagStats

public void deleteTagStats(long tagStatsId)
                    throws PortalException,
                           SystemException
Deletes the asset tag statistics instance matching the tag statistics ID.

Parameters:
tagStatsId - the primary key of the asset tag statistics instance
Throws:
PortalException - if the assetTagStats with the primary key could not be found
SystemException - if a system exception occurred

deleteTagStatsByClassNameId

public void deleteTagStatsByClassNameId(long classNameId)
                                 throws SystemException
Deletes all asset tag statistics instances associated with the asset entry matching the class name ID.

Parameters:
classNameId - the asset entry's class name ID
Throws:
SystemException - if a system exception occurred

deleteTagStatsByTagId

public void deleteTagStatsByTagId(long tagId)
                           throws SystemException
Deletes all asset tag statistics instances associated with the tag.

Parameters:
tagId - the primary key of the tag
Throws:
SystemException - if a system exception occurred

getTagStats

public List<AssetTagStats> getTagStats(long classNameId,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the asset tag statistics instances associated with the asset entry matching the class name ID.

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.

Parameters:
classNameId - the asset entry's class name ID
start - the lower bound of the range of results
end - the upper bound of the range of results (not inclusive)
Returns:
the range of asset tag statistics associated with the asset entry matching the class name ID
Throws:
SystemException - if a system exception occurred

getTagStats

public AssetTagStats getTagStats(long tagId,
                                 long classNameId)
                          throws SystemException
Returns the asset tag statistics instance with the tag and asset entry matching the class name ID

Parameters:
tagId - the primary key of the tag
classNameId - the asset entry's class name ID
Returns:
Returns the asset tag statistics instance with the tag and asset entry matching the class name ID
Throws:
SystemException - if a system exception occurred

updateTagStats

public AssetTagStats updateTagStats(long tagId,
                                    long classNameId)
                             throws PortalException,
                                    SystemException
Updates the asset tag statistics instance.

Parameters:
tagId - the primary key of the tag
classNameId - the asset entry's class name ID
Returns:
the updated asset tag statistics instance
Throws:
PortalException - if an asset tag with the tag ID could not be found
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5