Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed getOne methods from AlertDefinitionManager and AlertManager
  • Loading branch information
Jennifer Hickey committed Jan 31, 2010
1 parent 26a8d90 commit dbbe30e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions hqu/hqapi1/app/AlertController.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
Expand Down
4 changes: 2 additions & 2 deletions hqu/hqapi1/app/AlertdefinitionController.groovy
Expand Up @@ -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,
Expand Down

0 comments on commit dbbe30e

Please sign in to comment.