<%@ 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" %> <%@ taglib uri="/WEB-INF/enum.tld" prefix="e" %> <%@ taglib uri="/WEB-INF/collectionPager.tld" prefix="cp"%>

:
:

<% int indexOfLastSlash = contextPrefix.lastIndexOf("/"); int indexOfDot = contextPrefix.lastIndexOf("."); String prefix = contextPrefix.substring(0,indexOfLastSlash+1); String suffix = contextPrefix.substring(indexOfDot,contextPrefix.length()); %> <% boolean canManageAtLeastOneUnitBoard = false; boolean atLeastOneUnitBoardIsPublic = false; boolean canWriteAtLeastOneUnitBoard = false; for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: unitAnnouncementBoards) { if (announcementBoard.hasWriter(person)) { canWriteAtLeastOneUnitBoard = true; break; } } for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: unitAnnouncementBoards) { if (announcementBoard.getReaders() == null) { atLeastOneUnitBoardIsPublic = true; break; } } for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: unitAnnouncementBoards) { if (announcementBoard.hasManager(person)) { canManageAtLeastOneUnitBoard = true; break; } } %> : /messaging/announcements/announcementsStartPageHandler.do?page=0&method=handleBoardListing&<%=extraParameters%> <% if (canManageAtLeastOneUnitBoard) { %> <% } %> <% if (atLeastOneUnitBoardIsPublic) { %> <% } %> <% boolean ableToRead = announcementBoard.getReaders() == null || announcementBoard.getReaders().isMember(person); boolean ableToWrite = announcementBoard.getWriters() == null || announcementBoard.getWriters().isMember(person); %> <% if (!announcementBoard.getBookmarkOwner().contains(person)) { %> <% } else { %> <% } %> <% if (announcementBoard.getManagers() == null || announcementBoard.getManagers().isMember(person)) { %> <% } else if (canManageAtLeastOneUnitBoard) { %> <% } 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 (atLeastOneUnitBoardIsPublic) { %> <% } %>
Favoritos RSS
<% if (ableToRead) { %> <% } else { %> <% } %> (">Adicionar) (">Remover) "> Gerir

<% int indexOfLastSlash = contextPrefix.lastIndexOf("/"); int indexOfDot = contextPrefix.lastIndexOf("."); String prefix = contextPrefix.substring(0,indexOfLastSlash+1); String suffix = contextPrefix.substring(indexOfDot,contextPrefix.length()); %> <% boolean canManageAtLeastOneExecutionCourseBoard = false; boolean atLeastOneExecutionCourseBoardIsPublic = false; boolean canWriteAtLeastOneExecutionCourseBoard = false; for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: executionCourseAnnouncementBoards) { if (announcementBoard.getWriters() == null || announcementBoard.getWriters().isMember(person)) { canWriteAtLeastOneExecutionCourseBoard = true; break; } } for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: executionCourseAnnouncementBoards) { if (announcementBoard.getReaders() == null) { atLeastOneExecutionCourseBoardIsPublic = true; break; } } for(net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard announcementBoard: executionCourseAnnouncementBoards) { if (announcementBoard.getManagers() == null || announcementBoard.getManagers().isMember(person)) { canManageAtLeastOneExecutionCourseBoard = true; break; } } %> : /messaging/announcements/announcementsStartPageHandler.do?page=0&method=handleBoardListing&<%=extraParameters%> <% if (canManageAtLeastOneExecutionCourseBoard) { %> <% } %> <% if (atLeastOneExecutionCourseBoardIsPublic) { %> <% } %> <% if (!announcementBoard.getBookmarkOwner().contains(person)) { %> <% } else { %> <% } %> <% if (announcementBoard.getManagers() == null || announcementBoard.getManagers().isMember(person)) { %> <% } else if (canManageAtLeastOneExecutionCourseBoard) { %> <% } 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 (atLeastOneExecutionCourseBoardIsPublic) { %> <% } %>
Nome Tipo Favoritos RSS
<% boolean ableToRead = announcementBoard.getReaders() == null || announcementBoard.getReaders().isMember(person); boolean ableToWrite = announcementBoard.getWriters() == null || announcementBoard.getWriters().isMember(person); if (ableToRead) { %> <% } else { %> <% } %> (">Adicionar) (">Remover) "> Gerir  
: