Interface IResourceAction
-
public interface IResourceActionInterface 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 booleancanActionBePerformed(java.lang.String strIdResource, java.lang.String strResourceType)Check if the action can be performed hover a given resourcejava.lang.StringgetActionUrl(java.lang.String strIdResource, java.lang.String strResourceType)Get the URL of the action to performjava.lang.StringgetIcon(java.lang.String strIdResource, java.lang.String strResourceType)Get the CSS class to display the icon of the actionjava.lang.StringgetTitle(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 resourcestrResourceType- 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 resourcestrResourceType- 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 resourcestrResourceType- 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 resourcestrResourceType- The resource typelocale- The locale- Returns:
- The title of the action
-
-