Liferay 7.0-ce-b4

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:
IdentifiableOSGiService, 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
assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagStatsLocalService, assetTagStatsPersistence, counterLocalService, persistedModelLocalServiceRegistry
 
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, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetTagStats, getActionableDynamicQuery, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagStats, getAssetTagStatses, getAssetTagStatsesCount, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getCounterLocalService, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setCounterLocalService, updateAssetTagStats
 
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
 

Constructor Detail

AssetTagStatsLocalServiceImpl

public AssetTagStatsLocalServiceImpl()
Method Detail

addTagStats

public AssetTagStats addTagStats(long tagId,
                                 long classNameId)
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

deleteTagStats

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

Parameters:
tagStats - the asset tag statistics instance

deleteTagStats

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

Parameters:
tagStatsId - the primary key of the asset tag statistics instance
Throws:
PortalException

deleteTagStatsByClassNameId

public void deleteTagStatsByClassNameId(long classNameId)
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

deleteTagStatsByTagId

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

Parameters:
tagId - the primary key of the tag

getTagStats

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

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

getTagStats

public AssetTagStats getTagStats(long tagId,
                                 long classNameId)
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

updateTagStats

public AssetTagStats updateTagStats(long tagId,
                                    long classNameId)
                             throws PortalException
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

Liferay 7.0-ce-b4