public final class ExtendableResourceActionHit extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_ARCHIVE
Archive action
|
static String |
ACTION_CREATION
Creation action
|
static String |
ACTION_DELETE
Delete action
|
static String |
ACTION_DOWNLOAD
Download action
|
static String |
ACTION_UPDATE
Update action
|
Modifier and Type | Method and Description |
---|---|
int |
getActionHit(String strActionName,
String strExtendableResourceType)
Get the total number of hit associated to a given action name and resource type
|
static ExtendableResourceActionHit |
getInstance()
Get the service instance
|
int |
getResourceActionHit(String strExtendableResourceId,
String strExtendableResourceType,
String strActionName)
Get the number of hit associated with a resource and an action name
|
Map<String,Integer> |
getResourceHit(String strExtendableResourceId,
String strExtendableResourceType)
Get the list of action names associated with a number of hit for a given resource
|
void |
notifyActionOnResource(String strExtendableResourceId,
String strExtendableResourceType,
String strActionName)
Notify every listeners that an action has been performed on a resource
|
public static final String ACTION_DOWNLOAD
public static final String ACTION_CREATION
public static final String ACTION_UPDATE
public static final String ACTION_ARCHIVE
public static final String ACTION_DELETE
public static ExtendableResourceActionHit getInstance()
public int getActionHit(String strActionName, String strExtendableResourceType)
strActionName
- The name of the action to get the number of hit ofstrExtendableResourceType
- The resource type to get the hit ofpublic Map<String,Integer> getResourceHit(String strExtendableResourceId, String strExtendableResourceType)
strExtendableResourceId
- The id of the resourcestrExtendableResourceType
- The type of the resourcepublic int getResourceActionHit(String strExtendableResourceId, String strExtendableResourceType, String strActionName)
strExtendableResourceId
- The id of the resourcestrExtendableResourceType
- The type of the resourcestrActionName
- The name of the actionpublic void notifyActionOnResource(String strExtendableResourceId, String strExtendableResourceType, String strActionName)
strExtendableResourceId
- The id of the resource the action was performed onstrExtendableResourceType
- The type of the resource the action was performed onstrActionName
- The name of the action that was performed on the resource. Action names can be any strings, but the class ExtendableResourceActionHit
exposes standard action names.Copyright © 2020 City of Paris. All rights reserved.