public Autoaction() { super(); setContent(""); setState("on"); }
public Autoaction() { super(); setContent(""); setState("on"); }
/** * Expand parms in the event autoaction(s) */ private void expandParms(Autoaction[] autoactions, Event event) { boolean expanded = false; for (Autoaction action : autoactions) { String strRet = m_eventUtil.expandParms(action.getContent(), event); if (strRet != null) { action.setContent(strRet); expanded = true; } } if (expanded) { event.setAutoaction(autoactions); } }
/** * Expand parms in the event autoaction(s) */ private void expandParms(Autoaction[] autoactions, Event event) { boolean expanded = false; for (Autoaction action : autoactions) { String strRet = m_eventUtil.expandParms(action.getContent(), event); if (strRet != null) { action.setContent(strRet); expanded = true; } } if (expanded) { event.setAutoaction(autoactions); } }
/** * This method is used to transform an auto action event configuration * instance into an auto action event instance. This is used when the * incoming event does not have any auto action information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed auto action information. * */ private org.opennms.netmgt.xml.event.Autoaction transform(org.opennms.netmgt.xml.eventconf.Autoaction src) { org.opennms.netmgt.xml.event.Autoaction dest = new org.opennms.netmgt.xml.event.Autoaction(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }
/** * This method is used to transform an auto action event configuration * instance into an auto action event instance. This is used when the * incoming event does not have any auto action information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed auto action information. * */ private org.opennms.netmgt.xml.event.Autoaction transform(org.opennms.netmgt.xml.eventconf.Autoaction src) { org.opennms.netmgt.xml.event.Autoaction dest = new org.opennms.netmgt.xml.event.Autoaction(); dest.setContent(src.getContent()); dest.setState(src.getState().toString()); return dest; }