<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%> <%@ taglib uri="http://fenix-ashes.ist.utl.pt/fenix-renderers" prefix="fr"%> <%@page import="module.organization.domain.Person"%> <%@page import="module.mission.domain.MissionSystem"%> <%@page import="java.util.Collections"%> <%@page import="java.util.List"%> <%@page import="module.organization.domain.Accountability"%> <%@page import="java.util.Set"%> <%@page import="module.organization.domain.AccountabilityType"%> <%@page import="java.util.Collection"%> <%@page import="module.mission.domain.util.AuthorizationChain"%> <%@page import="module.mission.domain.util.ParticipantAuthorizationChain"%> <%@page import="module.organization.domain.Unit"%> <%@page import="java.util.Iterator"%> <% final MissionSystem missionSystem = MissionSystem.getInstance(); final Person person = (Person) request.getAttribute("person"); %>

<% final Set accountabilityTypes = MissionSystem.getInstance().getAccountabilityTypesForAuthorization(accountability.getAccountabilityType()); final Collection participantAuthorizationChain = ParticipantAuthorizationChain.getParticipantAuthorizationChains(accountabilityTypes, accountability); request.setAttribute("participantAuthorizationChain", participantAuthorizationChain); %>

:

  • -

<% int order = 0; for (AuthorizationChain authorizationChain = participantAuthorization; authorizationChain != null; authorizationChain = authorizationChain.getNext()) { final Unit unit = authorizationChain.getUnit(); request.setAttribute("unit", unit); final Collection authorities = unit.getChildrenAccountabilities(missionSystem.getAccountabilityTypesThatAuthorize()); final int span = Math.max(authorities.size(), 1); final Iterator iterator = authorities.iterator(); %> <% while (iterator.hasNext()) { final Accountability authority = iterator.next(); %> <% } } %>
<%= ++order %> <%= unit.getPresentationName() %> <% if (authorities.isEmpty()) { %> <% } else { final Accountability authority = iterator.next(); %> " class="secondaryLink"> <%= authority.getChild().getPresentationName() %> <% } %>
" class="secondaryLink"> <%= authority.getChild().getPresentationName() %>