boolean adminActionRequired = false;
ArrayList<Message> messages = new ArrayList<Message>();
DN dn = config.dn();
ErrorLogPublisher errorLogPublisher = null;
for(ErrorLogPublisher publisher : errorPublishers)
{
if(publisher.getDN().equals(dn))
{
errorLogPublisher = publisher;
break;
}
}
if(errorLogPublisher == null)
{
if(config.isEnabled())
{
// Needs to be added and enabled.
return applyConfigurationAdd(config);
}
}
else
{
if(config.isEnabled())
{
// The publisher is currently active, so we don't need to do anything.
// Changes to the class name cannot be
// applied dynamically, so if the class name did change then
// indicate that administrative action is required for that
// change to take effect.
String className = config.getJavaClass();
if(!className.equals(errorLogPublisher.getClass().getName()))
{
adminActionRequired = true;
}
}
else