From: Thomas F. <tfo...@us...> - 2005-07-21 11:22:56
|
Update of /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/project In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21611/src/za/org/coefficient/modules/project Modified Files: Projects.java Log Message: added support for the RSS stuff Index: Projects.java =================================================================== RCS file: /cvsroot/coefficient/coefficient/src/za/org/coefficient/modules/project/Projects.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** Projects.java 19 Apr 2005 08:13:06 -0000 1.34 --- Projects.java 21 Jul 2005 11:21:24 -0000 1.35 *************** *** 43,51 **** import za.org.coefficient.core.ProjectComponent; import za.org.coefficient.events.*; - import za.org.coefficient.events.CoefficientEvent; - import za.org.coefficient.events.CoefficientEvents; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.modules.BaseModule; import za.org.coefficient.modules.attribute.*; import za.org.coefficient.statistics.data.ProjectStatistics; import za.org.coefficient.util.common.HardURLConverterChainUtil; --- 43,50 ---- import za.org.coefficient.core.ProjectComponent; import za.org.coefficient.events.*; import za.org.coefficient.interfaces.CoefficientContext; import za.org.coefficient.modules.BaseModule; import za.org.coefficient.modules.attribute.*; + import za.org.coefficient.modules.rss.AffectedData; import za.org.coefficient.statistics.data.ProjectStatistics; import za.org.coefficient.util.common.HardURLConverterChainUtil; *************** *** 352,356 **** ctx.setModuleContent("The " + ProjectConstants.PROJECT_NAME + " is now active", ! getModuleDisplayName()); } else { throw new StaleObjectStateException(prj.getClass(), --- 351,362 ---- ctx.setModuleContent("The " + ProjectConstants.PROJECT_NAME + " is now active", ! getModuleDisplayName()); ! List affectedObjects = new ArrayList(); ! affectedObjects.add(new RSSItemCreatedEvent.AffectedObject(Project.class, prj.getId().longValue())); ! String title = "Project activated: " + prj.getShortName(); ! String body = "A new project named \"" + prj.getName() + "\" has been approved and activated."; ! String link = "index.html?module=Project&clearProject=true&projectId=" + prj.getId(); ! //Project param is null here because this is site-wide RSS event ! createRSSItem(title, body, link, null, affectedObjects); } else { throw new StaleObjectStateException(prj.getClass(), |