class TaskJuggler::ReportServerIface

Public Class Methods

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

Public Instance Methods

addFile(authKey, file) click to toggle source
# File lib/taskjuggler/daemon/ReportServer.rb, line 211
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 239
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 233
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 217
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 227
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 205
def ping(authKey)
  return false unless @server.checkKey(authKey, 'addFile')

  trap { @server.ping }
end