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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canActionBePerformed​(java.lang.String strIdResource, java.lang.String strResourceType)
      Check if the action can be performed hover a given resource
      java.lang.String getActionUrl​(java.lang.String strIdResource, java.lang.String strResourceType)
      Get the URL of the action to perform
      java.lang.String getIcon​(java.lang.String strIdResource, java.lang.String strResourceType)
      Get the CSS class to display the icon of the action
      java.lang.String getTitle​(java.lang.String strIdResource, java.lang.String strResourceType, java.util.Locale locale)
      Get the title of the action
    • Method Detail

      • canActionBePerformed

        boolean canActionBePerformed​(java.lang.String strIdResource,
                                     java.lang.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

        java.lang.String getActionUrl​(java.lang.String strIdResource,
                                      java.lang.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

        java.lang.String getIcon​(java.lang.String strIdResource,
                                 java.lang.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

        java.lang.String getTitle​(java.lang.String strIdResource,
                                  java.lang.String strResourceType,
                                  java.util.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