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.
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
Modifier and TypeMethodDescriptionbooleancanActionBePerformed(String strIdResource, String strResourceType) Check if the action can be performed hover a given resourcegetActionUrl(String strIdResource, String strResourceType) Get the URL of the action to performGet the CSS class to display the icon of the actionGet the title of the action
-
Method Details
-
canActionBePerformed
Check if the action can be performed hover a given resource- Parameters:
strIdResource- The id of the resourcestrResourceType- The resource type- Returns:
- True if the action can be performed, false otherwise
-
getActionUrl
Get the URL of the action to perform- Parameters:
strIdResource- The id of the resourcestrResourceType- The resource type- Returns:
- The URL of the action
-
getIcon
Get the CSS class to display the icon of the action- Parameters:
strIdResource- The id of the resourcestrResourceType- The resource type- Returns:
- the CSS class to display the icon of the action
-
getTitle
Get the title of the action- Parameters:
strIdResource- The id of the resourcestrResourceType- The resource typelocale- The locale- Returns:
- The title of the action
-