Permalink
Browse files

Removed getOne methods from AlertDefinitionManager and AlertManager

  • Loading branch information...
1 parent 26a8d90 commit dbbe30e7006c5aed01e481d5a8b3cb0a394446cb Jennifer Hickey committed Jan 31, 2010
Showing with 5 additions and 4 deletions.
  1. +3 −2 hqu/hqapi1/app/AlertController.groovy
  2. +2 −2 hqu/hqapi1/app/AlertdefinitionController.groovy
@@ -1,17 +1,18 @@
+import org.hyperic.hq.events.shared.AlertManager;
import org.hyperic.hq.hqapi1.ErrorCode
import org.hyperic.hq.events.AlertSeverity
import org.hyperic.hibernate.PageInfo
import org.hyperic.hq.events.server.session.AlertSortField
-import org.hyperic.hq.events.server.session.AlertManagerImpl as AlertMan
import org.hyperic.hq.escalation.server.session.EscalationManagerImpl as EscMan
+import org.hyperic.hq.context.Bootstrap;
import org.hyperic.hq.events.server.session.ClassicEscalationAlertType
import org.hyperic.hq.authz.shared.PermissionException
public class AlertController extends ApiController {
- private aMan = AlertMan.one
+ private aMan = Bootstrap.getBean(AlertManager.class)
private escMan = EscMan.one
private static final int ROUNDING_VOODOO = 60000
@@ -11,16 +11,16 @@ import org.hyperic.hq.events.AlertSeverity
import org.hyperic.hq.events.EventConstants
import org.hyperic.hq.events.shared.ActionValue
import org.hyperic.hq.events.shared.AlertConditionValue
+import org.hyperic.hq.events.shared.AlertDefinitionManager;
import org.hyperic.hq.events.shared.AlertDefinitionValue
-import org.hyperic.hq.events.server.session.AlertDefinitionManagerImpl as AMan
import org.hyperic.hq.measurement.shared.ResourceLogEvent
import org.hyperic.hq.product.LogTrackPlugin
import org.hyperic.util.config.ConfigResponse
import ApiController
public class AlertdefinitionController extends ApiController {
private eventBoss = Bootstrap.getBean(EventsBoss.class)
- private aMan = AMan.one
+ private aMan = Bootstrap.getBean(AlertDefinitionManager.class)
private EVENT_LEVEL_TO_NUM = [
ANY: -1,

0 comments on commit dbbe30e

Please sign in to comment.