Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
nosi.core.webapp.BasePageDelegate Maven / Gradle / Ivy
Go to download
IGRP Framework is a powerful and highly customizable platform developed by the Operational Nucleus for the Information Society (NOSi) to create web applications, it provides out of box, several modules to make easy to create stand-alone, production-grade web applications: authentication and access-control, business processes automation, reporting, page builder with automatic code generation and incorporation of the Once-Only-Principle, written in Java. IGRP Framework WAR - Contains some keys resources that give UI to IGRP Framework and others supports files.
package nosi.core.webapp;
import java.io.File;
import java.io.IOException;
import java.util.function.Predicate;
import nosi.core.webapp.bpmn.InterfaceBPMNTask;
import nosi.core.webapp.bpmn.RuntimeTask;
import nosi.core.webapp.webservices.helpers.FileRest;
public abstract class BasePageDelegate {
public QueryString addQueryString(String name, Object value, Predicate predicate) {
return predicate.test(value) ? addQueryString(name, value) : queryString();
}
public QueryString addQueryString(String name, Object value) {
return Igrp.getInstance().getCurrentController().addQueryString(name, value);
}
public Response forward(String app, String page, String action, QueryString queryString) {
return Igrp.getInstance().getCurrentController().forward(app, page, action, queryString);
}
public Response forward(String app, String page, String action) {
return Igrp.getInstance().getCurrentController().forward(app, page, action);
}
public QueryString queryString() {
return Igrp.getInstance().getCurrentController().queryString();
}
public Response redirect(String app, String page, String action) throws IOException {
return Igrp.getInstance().getCurrentController().redirect(app, page, action);
}
public Response redirect(String r) {
return Igrp.getInstance().getCurrentController().redirect(r);
}
public Response redirect(String r, String qs) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(r, qs);
}
public Response redirect(String app, String page, String action, Model model) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(app, page, action, model);
}
public Response redirect(String app, String page, String action, QueryString queryString) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(app, page, action, queryString);
}
public Response redirect(String app, String page, String action, String qs) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(app, page, action, qs);
}
public Response redirect(String app, String page, String action, Model model, QueryString queryString) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(app, page, action, model, queryString);
}
public Response redirect(String app, String page, String action, QueryString queryString, int isPublic) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(app, page, action, queryString, isPublic);
}
public Response redirect(String app, String page, String action, String[] paramNames, String[] paramValues) throws IOException{
return Igrp.getInstance().getCurrentController().redirect(app, page, action, paramNames, paramValues);
}
public Response redirectError() throws IOException{
return Igrp.getInstance().getCurrentController().redirectError();
}
public Response redirectToUrl(String url){
return Igrp.getInstance().getCurrentController().redirectToUrl(url);
}
public Response sendFile(File file, String name, String contentType, boolean download){
return Igrp.getInstance().getCurrentController().sendFile(file, name, contentType, download);
}
public Response xSend(byte[] file, String name, String contentType, boolean download){
return Igrp.getInstance().getCurrentController().xSend(file, name, contentType, download);
}
public Response xSend(byte[] file, String name, String contentType, boolean download, String url){
return Igrp.getInstance().getCurrentController().xSend(file, name, contentType, download, url);
}
public Response xSend(FileRest file, String name, String contentType, boolean download){
return Igrp.getInstance().getCurrentController().xSend(file, name, contentType, download);
}
public Response renderView(View view) throws IOException {
return Igrp.getInstance().getCurrentController().renderView(view);
}
public Response renderView(View view, boolean isRenderPartial) throws IOException {
return Igrp.getInstance().getCurrentController().renderView(view, isRenderPartial);
}
public Response renderView(String content) throws IOException {
return Igrp.getInstance().getCurrentController().renderView(content);
}
public Response renderView(String app, String page, View v, InterfaceBPMNTask bpmn, RuntimeTask runtimeTask) throws IOException {
return Igrp.getInstance().getCurrentController().renderView(app, page, v, bpmn, runtimeTask);
}
public Response renderView(String app, String page, View v) throws IOException {
return Igrp.getInstance().getCurrentController().renderView(app, page, v);
}
}