new Integer(MessageLogger.LOG_DEBUG),
"log_debug"));
editor.addOption(new DefaultSelectOption(
new Integer(MessageLogger.LOG_DYNAMIC),
"log_dynamic"));
editor.setFormatter(new IntegerFormatter());
generalFieldsContext.addFieldInfo(new FieldInfo(id, id, modifier, editor));
}
{
// -------------------------
// Transfer log notification level drop down
// -------------------------
String id = NOTIFICATION_LEVEL;
ModelModifier modifier = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
return new Integer(((Pipe) model).getTransferLogNotificationLevel());
}
public void setModelValue(Object model, Object value) throws Exception {
((Pipe) model).setTransferLogNotificationLevel(((Integer) value).intValue());
}
};
SelectEditor editor = new SelectEditor();
editor.addOption(new DefaultSelectOption(
new Integer(MessageLogger.MAIL_ERROR),
"log_errors"));
editor.addOption(new DefaultSelectOption(
new Integer(MessageLogger.MAIL_WARNING),
"log_warnings"));
editor.addOption(new DefaultSelectOption(
new Integer(MessageLogger.MAIL_DEBUG),
"log_debug"));
editor.addOption(new DefaultSelectOption(
new Integer(MessageLogger.MAIL_NONE),
"mail_none"));
editor.setFormatter(new IntegerFormatter());
generalFieldsContext.addFieldInfo(new FieldInfo(id, id, modifier, editor));
}{
// ----------
// Mail server field