<%
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();
%>