Interface IExtendableResourceActionHitListener


  • public interface IExtendableResourceActionHitListener
    Listener for extendable resource action hit
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getActionHit​(java.lang.String strActionName, java.lang.String strExtendableResourceType)
      Get the total number of hit associated to a given action name and resource type
      int getResourceActionHit​(java.lang.String strExtendableResourceId, java.lang.String strExtendableResourceType, java.lang.String strActionName)
      Get the number of hit associated with a resource and an action name
      java.util.Map<java.lang.String,​java.lang.Integer> getResourceHit​(java.lang.String strExtendableResourceId, java.lang.String strExtendableResourceType)
      Get the list of action names associated with a number of hit for a given resource
      void notifyActionOnResource​(java.lang.String strExtendableResourceId, java.lang.String strExtendableResourceType, java.lang.String strActionName)
      Notify this listener that an action has been performed on a resource
    • Method Detail

      • getActionHit

        int getActionHit​(java.lang.String strActionName,
                         java.lang.String strExtendableResourceType)
        Get the total number of hit associated to a given action name and resource type
        Parameters:
        strActionName - The name of the action to get the number of hit of
        strExtendableResourceType - The resource type to get the hit of
        Returns:
        The number of hit, or 0 if this action has no hit for this resource type
      • getResourceHit

        java.util.Map<java.lang.String,​java.lang.Integer> getResourceHit​(java.lang.String strExtendableResourceId,
                                                                               java.lang.String strExtendableResourceType)
        Get the list of action names associated with a number of hit for a given resource
        Parameters:
        strExtendableResourceId - The id of the resource
        strExtendableResourceType - The type of the resource
        Returns:
        A map containing associations between action names and hit number
      • getResourceActionHit

        int getResourceActionHit​(java.lang.String strExtendableResourceId,
                                 java.lang.String strExtendableResourceType,
                                 java.lang.String strActionName)
        Get the number of hit associated with a resource and an action name
        Parameters:
        strExtendableResourceId - The id of the resource
        strExtendableResourceType - The type of the resource
        strActionName - The name of the action
        Returns:
        The number of hit, or 0 if the resource has no hit for this action
      • notifyActionOnResource

        void notifyActionOnResource​(java.lang.String strExtendableResourceId,
                                    java.lang.String strExtendableResourceType,
                                    java.lang.String strActionName)
        Notify this listener that an action has been performed on a resource
        Parameters:
        strExtendableResourceId - The id of the resource the action was performed on
        strExtendableResourceType - The type of the resource the action was performed on
        strActionName - The name of the action that was performed on the resource