Interface IResourceAction


public interface IResourceAction
Interface for action to apply on resources
IResourceAction only represents action button displayed. The content of the action should be implemented by a controller pointed by the URL of the action.
  • Method Details

    • canActionBePerformed

      boolean canActionBePerformed(String strIdResource, String strResourceType)
      Check if the action can be performed hover a given resource
      Parameters:
      strIdResource - The id of the resource
      strResourceType - The resource type
      Returns:
      True if the action can be performed, false otherwise
    • getActionUrl

      String getActionUrl(String strIdResource, String strResourceType)
      Get the URL of the action to perform
      Parameters:
      strIdResource - The id of the resource
      strResourceType - The resource type
      Returns:
      The URL of the action
    • getIcon

      String getIcon(String strIdResource, String strResourceType)
      Get the CSS class to display the icon of the action
      Parameters:
      strIdResource - The id of the resource
      strResourceType - The resource type
      Returns:
      the CSS class to display the icon of the action
    • getTitle

      String getTitle(String strIdResource, String strResourceType, Locale locale)
      Get the title of the action
      Parameters:
      strIdResource - The id of the resource
      strResourceType - The resource type
      locale - The locale
      Returns:
      The title of the action