Class: TaskJuggler::ReportServerIface
Instance Method Summary
collapse
#connect, #disconnect, #terminate, #trap
#critical, #debug, #error, #fatal, #info, #warning
Constructor Details
Returns a new instance of ReportServerIface.
201
202
203
|
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 201
def initialize(server)
@server = server
end
|
Instance Method Details
#addFile(authKey, file) ⇒ Object
211
212
213
214
215
|
# 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) ⇒ Object
239
240
241
242
243
|
# 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) ⇒ Object
233
234
235
236
237
|
# 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) ⇒ Object
217
218
219
220
221
222
223
224
|
# 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) ⇒ Object
227
228
229
230
231
|
# 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) ⇒ Object
205
206
207
208
209
|
# File 'lib/taskjuggler/daemon/ReportServer.rb', line 205
def ping(authKey)
return false unless @server.checkKey(authKey, 'addFile')
trap { @server.ping }
end
|