]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/result/ResultExcelView.java
clean org.argeo.slc.server project:
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / java / org / argeo / slc / web / mvc / result / ResultExcelView.java
index 5083719f86d68c81c67520733f2c8bc7abe8aa70..b44107d371c07f23649e0c7b1eb4021198063ea1 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.argeo.slc.web.mvc.result;
 
 import java.util.Map;
@@ -18,6 +34,10 @@ import org.argeo.slc.test.TestResultPart;
 import org.springframework.web.servlet.view.document.AbstractJExcelView;
 
 public class ResultExcelView extends AbstractJExcelView {
+       public final static String MODELKEY_RESULT = "result";
+
+       
+       @SuppressWarnings(value = { "unchecked" })
        protected void buildExcelDocument(Map model, WritableWorkbook workbook,
                        HttpServletRequest request, HttpServletResponse response) {
                try {
@@ -27,7 +47,7 @@ public class ResultExcelView extends AbstractJExcelView {
                        WritableSheet sheet = workbook.getSheet("SLC");
 
                        TreeTestResult ttr = (TreeTestResult) model
-                                       .get(ResultViewController.MODELKEY_RESULT);
+                                       .get(MODELKEY_RESULT);
 
                        sheet.addCell(new Label(0, 0, "Result " + ttr.getUuid()));