Class: TaskJuggler::ReportServerIface

Inherits:
Object
  • Object
show all
Includes:
ProcessIntercomIface
Defined in:
lib/taskjuggler/daemon/ReportServer.rb

Instance Method Summary collapse

Methods included from ProcessIntercomIface

#connect, #disconnect, #terminate, #trap

Methods included from MessageHandler

#critical, #debug, #error, #fatal, #info, #warning

Constructor Details

#initialize(server) ⇒ ReportServerIface

Returns a new instance of ReportServerIface.



202
203
204
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 202

def initialize(server)
  @server = server
end

Instance Method Details

#addFile(authKey, file) ⇒ Object



212
213
214
215
216
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 212

def addFile(authKey, file)
  return false unless @server.checkKey(authKey, 'addFile')

  trap { @server.addFile(file) }
end

#checkStatusSheet(authKey, sheet) ⇒ Object



240
241
242
243
244
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 240

def checkStatusSheet(authKey, sheet)
  return false unless @server.checkKey(authKey, 'checkStatusSheet')

  trap { @server.checkStatusSheet(sheet) }
end

#checkTimeSheet(authKey, sheet) ⇒ Object



234
235
236
237
238
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 234

def checkTimeSheet(authKey, sheet)
  return false unless @server.checkKey(authKey, 'checkTimeSheet')

  trap { @server.checkTimeSheet(sheet) }
end

#generateReport(authKey, reportId, regExpMode, formats, dynamicAttributes) ⇒ Object



218
219
220
221
222
223
224
225
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 218

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) ⇒ Object



228
229
230
231
232
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 228

def listReports(authKey, reportId, regExpMode)
  return false unless @server.checkKey(authKey, 'generateReport')

  trap { @server.listReports(reportId, regExpMode) }
end

#ping(authKey) ⇒ Object



206
207
208
209
210
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 206

def ping(authKey)
  return false unless @server.checkKey(authKey, 'addFile')

  trap { @server.ping }
end