permissions.add(permission);
sel = JetspeedSecurity.hasPermission(roleName, permission.getName());
ix = ix + 1;
selected.add(ix, new Boolean(sel));
}
selected.trimToSize();
permissions.trimToSize();
rundata.getUser().setTemp(SecurityConstants.CONTEXT_PERMISSIONS, permissions);
rundata.getUser().setTemp(SecurityConstants.CONTEXT_SELECTED, selected);
context.put(SecurityConstants.CONTEXT_PERMISSIONS, permissions);