adding all of botlist, initial add
[botlist.git] / openbotlist / WEB-INF / jsps / botverse / text / botverse_light.rb
blob857ee33e241b7e5b73dba70ba967900d7aac261a
1 ########################################
2 ## Berlin Brown
3 ## 11/4/2006
4 ## Updated: 4/15/2008
5 ##
6 ## create_listing.rb
7 ########################################
9 require 'java'
10 include Java
12 import org.spirit.form.ext.BotListMapEntityLink unless defined? BotListMapEntityLink
14 class ViewLightController               
15   def initialize(controller)
16     @controller = controller
17     @daohelper = @controller.entityLinksDao
18   end    
19   
20   def getModel(request)
21     
22     # Audit the request
23     @controller.auditLogPage(request, "botverse_light.html")        
24     query = "from org.spirit.bean.impl.BotListEntityLinks as links order by links.id desc"
25     links = @daohelper.pageEntityLinks(query, 0, 40)
26     map = BotListMapEntityLink.new
27     map['listings'] = links
28     return map
29   end
30    
31   # Processed when the form is submitted, 
32   # see the controller 'processFormSubmission()' method
33   def onSubmit(request, response, form, errors)      
34     return form
35   end
36 end
38 ViewLightController.new($controller)
40 ## End of Script ##