public class ProducerOpenPosting extends ProducerList {
- public void setAdditional(String key, TemplateModel value) {
- additional.put(key,value);
- }
- public void handle(PrintWriter htmlout, EntityUsers user, boolean force, boolean sync)
- throws StorageObjectException, ModuleException {
+ public void handle(PrintWriter htmlout, EntityUsers user, boolean force, boolean sync)
+ throws StorageObjectException, ModuleException
+ {
listTemplate = MirConfig.getProp("Producer.OpenPosting.Template");
whereClause="is_published='1'";
orderBy="date desc, webdb_create desc";
fileDesc="open";
- SimpleScalar title = new SimpleScalar();
- title.setValue("Open-Posting");
setAdditional("topicslist",topicsModule.getTopicsList());
- setAdditional("title",title);
+ setAdditional("title",new SimpleScalar("Open-Posting"));
+ handleIt(htmlout,user,force);
+ }
+
- handleIt(htmlout,user,force);
+ public static void main(String argv[]){
+ try {
+ new ProducerOpenPosting().handle(new PrintWriter(System.out), null,false, false);
+ } catch(Exception e) {
+ System.err.println(e.toString());
}
+ }
- public static void main(String argv[]){
- try {
- new ProducerOpenPosting().handle(new PrintWriter(System.out), null,false, false);
- } catch(Exception e) {
- System.err.println(e.toString());
- }
- }
}