EntityIdentifier ei = user.getEntityIdentifier();
IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());
for (IChannelDefinition channel : allChannels) {
if (ap.canManage(channel.getId())) {
registry.addChannel(new ChannelBean(channel));
}
}
}
return registry;