From: <cl...@hy...> - 2008-03-01 21:24:16
|
Author: clee Date: 2008-03-01 13:24:12 -0800 (Sat, 01 Mar 2008) New Revision: 7989 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=7989 Modified: trunk/src/org/hyperic/hq/bizapp/server/action/email/EmailAction.java Log: Simplify getting the Resource Modified: trunk/src/org/hyperic/hq/bizapp/server/action/email/EmailAction.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/server/action/email/EmailAction.java 2008-03-01 21:23:49 UTC (rev 7988) +++ trunk/src/org/hyperic/hq/bizapp/server/action/email/EmailAction.java 2008-03-01 21:24:12 UTC (rev 7989) @@ -149,9 +149,7 @@ alert.getAlertDefinitionInterface(); AppdefEntityID appEnt = getResource(alertDef); - ResourceDAO rDao = new ResourceDAO(DAOFactory.getDAOFactory()); - Resource resource = rDao.findByInstanceId(appEnt.getAuthzTypeId(), - appEnt.getId()); + Resource resource = alertDef.getResource(); String[] body = new String[addrs.size()]; String[] htmlBody = new String[addrs.size()]; |