use of com.manydesigns.portofino.resourceactions.AbstractResourceAction in project Portofino by ManyDesigns.
the class ActionsAction method getResourceAction.
protected AbstractResourceAction getResourceAction() {
String actionPath = StringUtils.join(parameters, "/");
Resource resource = getResource(actionPath);
if (resource instanceof AbstractResourceAction) {
return ((AbstractResourceAction) resource);
} else {
logger.error("Not a ResourceAction: " + resource);
throw new WebApplicationException();
}
}
Aggregations