<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/fenix-renderers.tld" prefix="fr" %> <% int indexOfLastSlash = contextPrefix.lastIndexOf("/"); int indexOfDot = contextPrefix.lastIndexOf("."); String prefix = contextPrefix.substring(0,indexOfLastSlash+1); String suffix = contextPrefix.substring(indexOfDot,contextPrefix.length()); %> <% boolean canManageAtLeastOneBoard = false; boolean atLeastOneBoardIsPublic = false; boolean canWriteAtLeastOneBoard = false; for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: mandatoryAnnouncementBoards) { if (announcementBoard.hasWriter(person)) { canWriteAtLeastOneBoard = true; break; } } for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: mandatoryAnnouncementBoards) { if (announcementBoard.getReaders() == null) { atLeastOneBoardIsPublic = true; break; } } for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: mandatoryAnnouncementBoards) { if (announcementBoard.hasManager(person)) { canManageAtLeastOneBoard = true; break; } } %> <% if (canManageAtLeastOneBoard) { %> <% } %> <% if (atLeastOneBoardIsPublic) { %> <% } %> <% boolean ableToRead = announcementBoard.hasReader(person); boolean ableToWrite = announcementBoard.hasWriter(person); %> <% if (announcementBoard.getManagers() == null || announcementBoard.getManagers().isMember(person)) { %> <% } else if (canManageAtLeastOneBoard) { %> <% } java.util.Map parameters = new java.util.HashMap(); parameters.put("method","simple"); parameters.put("announcementBoardId",announcementBoard.getIdInternal()); request.setAttribute("parameters",parameters); %> <% if (announcementBoard.getReaders() == null) { %> <% } else if (atLeastOneBoardIsPublic) { %> <% } %>
Nome Tipo RSS
<% if (ableToRead) { %> <% } %> <% if (!ableToRead) { %> <% } %> "> Gerir   <bean:message key="/>