|
|
+ |
This is pretty helpful for trying to determine it Envs short names match a naming convention. This report has to be used in conjunction with a report template such as the [[HTML Template]].
|
|
|
+ |
<pre>import com.urbancode.anthill3.domain.reporting.*;
|
|
|
+ |
ReportMetaData rmd = new ReportMetaData();
|
|
|
+ |
rmd.addColumn("Environment");
|
|
|
+ |
rmd.addColumn("Short Name");
|
|
|
+ |
// Lastly, return the meta data
|
|
|
+ |
<pre>import com.urbancode.anthill3.domain.reporting.*;
|
|
|
+ |
import com.urbancode.anthill3.domain.servergroup.*;
|
|
|
+ |
ReportOutput output = new ReportOutput(metaData);
|
|
|
+ |
ServerGroup[] serverGroups = ServerGroupFactory.getInstance().restoreAll();
|
|
|
+ |
for (int i = 0; i < serverGroups.length; i++) {
|
|
|
+ |
ServerGroup env = serverGroups[i];
|
|
|
+ |
ReportRow row = new ReportRow(output, "Environment");
|
|
|
+ |
row.setColumnValue("Environment", env.getName());
|
|
|
+ |
row.setColumnValue("Short Name", env.getShortName());
|
|
|
+ |
[[AnthillPro Template Reports]]<br/>
|