doc/TaskJuggler/ProjectBrokerIface.html in taskjuggler-0.0.8 vs doc/TaskJuggler/ProjectBrokerIface.html in taskjuggler-0.0.9

- old
+ new

@@ -133,10 +133,12 @@ <li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li> <li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li> + <li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li> + <li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li> <li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li> <li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li> @@ -211,10 +213,12 @@ <li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li> <li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li> + <li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li> + <li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li> <li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li> <li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li> @@ -243,10 +247,12 @@ <li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li> <li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li> + <li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li> + <li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li> <li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li> <li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li> @@ -523,10 +529,12 @@ <li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li> <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li> + <li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li> + <li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li> <li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li> <li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li> @@ -549,12 +557,10 @@ <li><a href="../RuntimeConfig.html">RuntimeConfig</a></li> <li><a href="../String.html">String</a></li> - <li><a href="../StringIO.html">StringIO</a></li> - </ul> <div id="no-class-search-results" style="display: none;">No matching classes.</div> </div> @@ -603,14 +609,14 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 455</span> -455: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">broker</span>) -456: <span class="ruby-ivar">@broker</span> = <span class="ruby-identifier">broker</span> -457: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 503</span> +503: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">broker</span>) +504: <span class="ruby-ivar">@broker</span> = <span class="ruby-identifier">broker</span> +505: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -648,16 +654,16 @@ <div class="method-source-code" id="api-ersion-source"> <pre> - <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 464</span> -464: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apiVersion</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">version</span>) -465: <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-value str">'apiVersion'</span>) -466: -467: <span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span> -468: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 512</span> +512: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apiVersion</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">version</span>) +513: <span class="ruby-keyword kw">return</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-value str">'apiVersion'</span>) +514: +515: <span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span> +516: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -684,33 +690,35 @@ <div class="method-source-code" id="command-source"> <pre> - <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 484</span> -484: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">args</span>) -485: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">cmd</span>) -486: -487: <span class="ruby-identifier">trap</span> <span class="ruby-keyword kw">do</span> -488: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cmd</span> -489: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:status</span> -490: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">status</span> -491: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:stop</span> -492: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">stop</span> -493: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:addProject</span> -494: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">addProject</span> -495: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:removeProject</span> -496: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">removeProject</span>(<span class="ruby-identifier">args</span>) -497: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:getProject</span> -498: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">getProject</span>(<span class="ruby-identifier">args</span>) -499: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:update</span> -500: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">update</span> -501: <span class="ruby-keyword kw">else</span> -502: <span class="ruby-constant">LogFile</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-value str">'Unknown command #{cmd} called'</span>) -503: <span class="ruby-keyword kw">end</span> -504: <span class="ruby-keyword kw">end</span> -505: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 532</span> +532: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">args</span>) +533: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">cmd</span>) +534: +535: <span class="ruby-identifier">trap</span> <span class="ruby-keyword kw">do</span> +536: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cmd</span> +537: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:status</span> +538: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">status</span> +539: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:stop</span> +540: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">stop</span> +541: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:addProject</span> +542: <span class="ruby-comment cmt"># To pass the DRbObject as separate arguments we need to convert it</span> +543: <span class="ruby-comment cmt"># into a real Array again.</span> +544: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">addProject</span>(*<span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>)) +545: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:removeProject</span> +546: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">removeProject</span>(<span class="ruby-identifier">args</span>) +547: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:getProject</span> +548: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">getProject</span>(<span class="ruby-identifier">args</span>) +549: <span class="ruby-keyword kw">when</span> <span class="ruby-value">:update</span> +550: <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">update</span> +551: <span class="ruby-keyword kw">else</span> +552: <span class="ruby-constant">LogFile</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-value str">'Unknown command #{cmd} called'</span>) +553: <span class="ruby-keyword kw">end</span> +554: <span class="ruby-keyword kw">end</span> +555: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -739,23 +747,23 @@ <div class="method-source-code" id="trap-source"> <pre> - <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 471</span> -471: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trap</span> -472: <span class="ruby-identifier">log</span> = <span class="ruby-constant">LogFile</span>.<span class="ruby-identifier">instance</span> -473: -474: <span class="ruby-keyword kw">begin</span> -475: <span class="ruby-keyword kw">yield</span> -476: <span class="ruby-keyword kw">rescue</span> -477: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">to_s</span> -478: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>) -479: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-identifier">$!</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>)) -480: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-node">&quot;Unexpected exception: #{$!}&quot;</span>) -481: <span class="ruby-keyword kw">end</span> -482: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 519</span> +519: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trap</span> +520: <span class="ruby-identifier">log</span> = <span class="ruby-constant">LogFile</span>.<span class="ruby-identifier">instance</span> +521: +522: <span class="ruby-keyword kw">begin</span> +523: <span class="ruby-keyword kw">yield</span> +524: <span class="ruby-keyword kw">rescue</span> +525: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">to_s</span> +526: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>) +527: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-identifier">$!</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>)) +528: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-node">&quot;Unexpected exception: #{$!}&quot;</span>) +529: <span class="ruby-keyword kw">end</span> +530: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -768,11 +776,11 @@ <a name="method-i-updateState"></a> <div class="method-heading"> <span class="method-name">updateState</span><span - class="method-args">(authKey, id, status, modified)</span> + class="method-args">(authKey, projectKey, id, status, modified)</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> @@ -782,13 +790,15 @@ <div class="method-source-code" id="update-tate-source"> <pre> - <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 507</span> -507: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updateState</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">modified</span>) -508: <span class="ruby-identifier">trap</span> { <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">updateState</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">modified</span>) } -509: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/daemon/ProjectBroker.rb, line 557</span> +557: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updateState</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-identifier">projectKey</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">modified</span>) +558: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">checkKey</span>(<span class="ruby-identifier">authKey</span>, <span class="ruby-value str">'updateState'</span>) +559: +560: <span class="ruby-identifier">trap</span> { <span class="ruby-ivar">@broker</span>.<span class="ruby-identifier">updateState</span>(<span class="ruby-identifier">projectKey</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">modified</span>) } +561: <span class="ruby-keyword kw">end</span></pre> </div> </div>