public class ActionHitService
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService
implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
ActionHitService() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
createActionHit(ActionHit actionHit)
Creates an action hit
|
ActionHit |
findActionHit(String strActionName,
String strIdExtendableResource,
String strExtendableResourceType)
find an action hit
|
List<ActionHit> |
findActionHitsByAction(String strActionName,
String strExtendableResourceType)
Get the list of action hits associated to a given action and a given
resource type
|
List<ActionHit> |
findActionHitsByResource(String strResourceType,
String strIdExtendableResource)
Get the list of action hits associated with a given resource.
|
List<ActionHit> |
findAllActionHits()
Get the list of action hits
|
String |
getName() |
void |
removeActionHit(ActionHit actionHit)
Remove an action hit from its id
|
void |
removeActionHit(String strActionName,
String strIdExtendableResource,
String strExtendableResourceType)
Remove an action hit from its id
|
void |
removeByResource(String strExtendableResourceType,
String strIdExtendableResource)
Remove action hits associated with a given resource
|
void |
updateActionHit(ActionHit actionHit)
Update an action hit
|
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
public static final String BEAN_NAME
public void createActionHit(ActionHit actionHit)
actionHit
- The action hit to createpublic ActionHit findActionHit(String strActionName, String strIdExtendableResource, String strExtendableResourceType)
strActionName
- The name of the action to get the number of hit ofstrIdExtendableResource
- The id of the extendable resource to get
the number of hits ofstrExtendableResourceType
- The extendable resource type of the
resource to get the number of hits ofpublic List<ActionHit> findActionHitsByResource(String strResourceType, String strIdExtendableResource)
strResourceType
- The resource type of hitsstrIdExtendableResource
- The id of the extendable resource to get
hits ofpublic List<ActionHit> findActionHitsByAction(String strActionName, String strExtendableResourceType)
strActionName
- The name of the action to get the hits ofstrExtendableResourceType
- The resource typepublic List<ActionHit> findAllActionHits()
public void updateActionHit(ActionHit actionHit)
actionHit
- The action hit to updatepublic void removeActionHit(String strActionName, String strIdExtendableResource, String strExtendableResourceType)
strActionName
- The name of the action to removestrIdExtendableResource
- The id of the extendable resource to
removestrExtendableResourceType
- The extendable resource type of the
resource to removepublic void removeActionHit(ActionHit actionHit)
actionHit
- The action hit to removepublic void removeByResource(String strExtendableResourceType, String strIdExtendableResource)
strExtendableResourceType
- The type of the resource to remove hits
ofstrIdExtendableResource
- The id of the resource to remove hits ofpublic String getName()
getName
in interface fr.paris.lutece.portal.service.util.LuteceService
Copyright © 2015 City of Paris. All rights reserved.