Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HE-449 Removed all remaining getOnes
  • Loading branch information
Jennifer Hickey committed Feb 1, 2010
1 parent a799cbc commit e3a9466
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions hqu/hqapi1/app/AlertController.groovy
Expand Up @@ -5,15 +5,15 @@ 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.escalation.server.session.EscalationManagerImpl as EscMan
import org.hyperic.hq.escalation.shared.EscalationManager;
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 = Bootstrap.getBean(AlertManager.class)
private escMan = EscMan.one
private escMan = Bootstrap.getBean(EscalationManager.class)

private static final int ROUNDING_VOODOO = 60000

Expand Down
8 changes: 4 additions & 4 deletions hqu/hqapi1/app/ApplicationController.groovy
@@ -1,6 +1,6 @@
import org.hyperic.hq.hqapi1.ErrorCode
import org.hyperic.hq.bizapp.server.session.AppdefBossImpl as ABoss
import org.hyperic.hq.authz.server.session.ResourceManagerImpl as ResMan
import org.hyperic.hq.bizapp.shared.AppdefBoss;
import org.hyperic.hq.authz.shared.ResourceManager;
import org.hyperic.util.pager.PageControl
import org.hyperic.hq.auth.shared.SessionManager
import org.hyperic.hq.appdef.shared.AppdefEntityID
Expand All @@ -15,8 +15,8 @@ import org.hyperic.hq.context.Bootstrap
class ApplicationController extends ApiController {

def appMan = Bootstrap.getBean(ApplicationManager.class)
def aBoss = ABoss.one
def resMan = ResMan.one
def aBoss = Bootstrap.getBean(AppdefBoss.class)
def resMan = Bootstrap.getBean(ResourceManager.class)

def failureXml = null

Expand Down
6 changes: 4 additions & 2 deletions hqu/hqapi1/app/ServerconfigController.groovy
@@ -1,9 +1,11 @@
import org.hyperic.hq.common.server.session.ServerConfigManagerImpl as SMan

import org.hyperic.hq.appdef.shared.ServiceManager;
import org.hyperic.hq.context.Bootstrap;
import org.hyperic.hq.hqapi1.ErrorCode

class ServerconfigController extends ApiController {

private _serverMan = SMan.one
private _serverMan = Bootstrap.getBean(ServiceManager.class)

def getConfig(params) {

Expand Down

0 comments on commit e3a9466

Please sign in to comment.