use of eu.ggnet.saft.api.auth.Authorisation in project dwoss by gg-net.
the class ShowRightsAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
Ui.exec(() -> {
Ui.build().fx().show(() -> {
StringBuilder sb = new StringBuilder();
Guardian accessCos = Dl.local().lookup(Guardian.class);
sb.append("<html><body><u>Benutzer:</u> <b>").append(accessCos.getUsername()).append("</b><br /><u>Berechtigungen</u><ul>");
for (Authorisation authorisation : accessCos.getRights()) {
sb.append("<li>").append(authorisation.toName()).append("</li>");
}
sb.append("</ul></body></html>");
return sb.toString();
}, () -> new HtmlPane());
});
}
Aggregations