boolean adminActionRequired = false;
ArrayList<Message> messages = new ArrayList<Message>();
DN dn = config.dn();
DebugLogPublisher debugLogPublisher = null;
for(DebugLogPublisher publisher : debugPublishers)
{
if(publisher.getDN().equals(dn))
{
debugLogPublisher = publisher;
}
}
if(debugLogPublisher == 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(debugLogPublisher.getClass().getName()))
{
adminActionRequired = true;
}
}
else