Version Differences for Agent Status Details

(Added report info)
Line 1:
    + This report shows a user details of the agents that are available to the server. The user can see if an upgrade is required of the agent, if the agent is an acceptable version, and what the current version of the agent is. It also lists some debugging info about the agent as well.  
       
    + ----  
       
    + ''Content Type:''  
       
    + <pre>text/html</pre>  
       
    + ----  
       
    + ''Meta-Data Script:''  
       
    + There is no Meta-Data Script associated with this report.  
       
    + ----  
       
    + ''Context Script:''  
       
    + <pre>import com.urbancode.anthill3.domain.agent.*;  
    + import com.urbancode.anthill3.domain.reporting.*;  
    + import com.urbancode.anthill3.services.agent.*;  
       
    + agents = AgentFactory.getInstance().restoreAll();  
       
    + statusList = new ArrayList();  
    + for (Agent agent : agents) {  
    + status = AgentManager.getInstance().getAgentStatus(agent);  
    + if (status != null) {  
    + statusList.add(status);  
    + }  
    + }  
       
    + context.put("statusList", statusList);  
       
    + return context;</pre>  
       
    + ----  
       
    + ''Template Text:''  
       
    + <pre><table border="1" cellspacing="0" cellpadding="4">  
    + <tr>  
    + <th>Agent Name</th>  
    + <th>DB Info</th>  
    + <th>Version</th>  
    + <th>Upgrade Version</th>  
    + <th>Is Acceptable Version</th>  
    + <th>Is Manual Upgrade Required</th>  
    + </tr>  
    + #foreach( $status in $statusList )  
    + <tr>  
    + <td>$status.agent.name</td>  
    + <td>$status.agent.id - $status.agent.ver</td>  
    + <td align="center">$status.version</td>  
    + <td align="center">$status.upgradeVersion</td>  
    + <td align="center">$status.acceptableVersion</td>  
    + <td align="center">$status.manualUpgradeRequired</td>  
    + </tr>  
    + #end  
    + </table></pre>  
       
    + ----  
       
    + '''Related Content'''  
       
    + [[AnthillPro Velocity Reports]]<br/>  
    + [[Interactive Dependency Report (SVG)]]