package hirondelle.fish.translate.translation;
import hirondelle.web4j.action.ActionImpl;
import hirondelle.web4j.action.ResponsePage;
import hirondelle.web4j.model.AppException;
import hirondelle.web4j.request.RequestParser;
import hirondelle.web4j.ui.translate.Translation;
public final class TranslationsList extends ActionImpl {
public TranslationsList(RequestParser aRequestParser){
super(FORWARD, aRequestParser);
}
public ResponsePage execute() throws AppException {
TranslationDAO dao = new TranslationDAO();
addToRequest(ITEMS_FOR_LISTING, dao.list());
return getResponsePage();
}
private static final ResponsePage FORWARD = new ResponsePage(
"List Translations", "TranslationsList.jsp", TranslationsList.class
);
}