diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-01-14 14:08:14 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-01-14 14:08:14 +0100 |
commit | e65b7f04ce114affd6f1a3318c938f6a19fa1451 (patch) | |
tree | f39c29a0653b27c39fc53ba3bbe4f5caf43a96bb /report/report_service.rb | |
parent | 7a27e607b3b997b85e7ea62c3ab3464ae84030cb (diff) |
some commenting, reordering, creating examples without restclient
Diffstat (limited to 'report/report_service.rb')
-rw-r--r-- | report/report_service.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/report/report_service.rb b/report/report_service.rb index 5c75ae4..36bd176 100644 --- a/report/report_service.rb +++ b/report/report_service.rb @@ -102,6 +102,13 @@ module Reports @persistance.delete_report(type, id) end + def delete_all_reports( type ) + + LOGGER.info "deleteing all reports of ype '"+type.to_s+"'" + check_report_type(type) + @persistance.list_reports(type).each{ |id| @persistance.delete_report(type, id) } + end + def parse_type( report_uri ) raise "invalid uri" unless report_uri.to_s =~/^#{@home_uri}.*/ |