Skip to content
Snippets Groups Projects
UserGUI.java 572 B
Newer Older
thtamagnau's avatar
thtamagnau committed
package com.uca.gui;

import com.uca.core.UserCore;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;

Thomas Mewily's avatar
Thomas Mewily committed
public class UserGUI 
{
thtamagnau's avatar
thtamagnau committed
    public static String getAllUsers() throws IOException, TemplateException {

        Map<String, Object> input = new HashMap<>();
        input.put("users", UserCore.getAllUsers());
Thomas Mewily's avatar
Thomas Mewily committed
        return DefaultGUI.getDefaultGUI(input);
thtamagnau's avatar
thtamagnau committed
    }
}