class TaskJuggler::ReportServerIface

Public Class Methods

new(server) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 200
def initialize(server)
  @server = server
end

Public Instance Methods

addFile(authKey, file) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 210
def addFile(authKey, file)
  return false unless @server.checkKey(authKey, 'addFile')

  trap { @server.addFile(file) }
end
checkStatusSheet(authKey, sheet) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 238
def checkStatusSheet(authKey, sheet)
  return false unless @server.checkKey(authKey, 'checkStatusSheet')

  trap { @server.checkStatusSheet(sheet) }
end
checkTimeSheet(authKey, sheet) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 232
def checkTimeSheet(authKey, sheet)
  return false unless @server.checkKey(authKey, 'checkTimeSheet')

  trap { @server.checkTimeSheet(sheet) }
end
generateReport(authKey, reportId, regExpMode, formats, dynamicAttributes) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 216
def generateReport(authKey, reportId, regExpMode, formats,
                   dynamicAttributes)
  return false unless @server.checkKey(authKey, 'generateReport')

  trap do
    @server.generateReport(reportId, regExpMode, formats, dynamicAttributes)
  end
end
listReports(authKey, reportId, regExpMode) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 226
def listReports(authKey, reportId, regExpMode)
  return false unless @server.checkKey(authKey, 'generateReport')

  trap { @server.listReports(reportId, regExpMode) }
end
ping(authKey) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 204
def ping(authKey)
  return false unless @server.checkKey(authKey, 'addFile')

  trap { @server.ping }
end