nosi.core.gui.components.IGRPLogBar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of igrp-core Show documentation
Show all versions of igrp-core Show documentation
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.gui.components;
import java.util.Iterator;
import java.util.List;
import nosi.core.webapp.FlashMessage;
import nosi.core.webapp.Igrp;
/**
* Iekiny Marcel
* Jan 11, 2018
*/
public class IGRPLogBar {
private List logs;
public IGRPLogBar() {
logs = Igrp.getInstance().getLog().getMsgLog();
}
public void displayLogs() {
Iterator i = logs.iterator();
FlashMessage flashMessage = Igrp.getInstance().getFlashMessage();
while(i.hasNext())
flashMessage.addMessage("debug", i.next());
}
}