List<RBACManagerImplementationInformation> informations =
new ArrayList<RBACManagerImplementationInformation>( beans.size() );
for ( Map.Entry<String, RBACManager> entry : beans.entrySet() )
{
RBACManager rbacManager = applicationContext.getBean( entry.getKey(), RBACManager.class );
if ( rbacManager.isFinalImplementation() )
{
RBACManagerImplementationInformation information = new RBACManagerImplementationInformation();
information.setBeanId( StringUtils.substringAfter( entry.getKey(), "#" ) );
information.setDescriptionKey( rbacManager.getDescriptionKey() );
information.setReadOnly( rbacManager.isReadOnly() );
informations.add( information );
}
}
return informations;