Administration Methods
public String ucGetRoleMenu( Connection dbconn, SesameSession session)
public String ucGetRoleMenu(Connection con, SesameSession session) throws Exception { if ("ADMIN".equals(session.getUserId()) || "SYSTEM".equals(session.getUserId()))return null; String myRole = (String) session.getAttribute("USER_ROLE"); SecurityGroup sg = SecurityGroup.getReference(con, myRole); String myRoleTitle = ""; if (sg != null) myRoleTitle = sg.getTitle(); SesameMessageFormat smf = new SesameMessageFormat(con, session); smf.append("Current Role:"); smf.appendString(myRoleTitle); return "\n<i title=\ Z.m.msg(session, "This is your current role")>" + TextManager.htmlescape(smf.getFormattedMessage()) + "</li>"; }