Changeset 3743 in main
- Timestamp:
- 04/25/12 22:17:41 (10 years ago)
- Location:
- trunk/src/main
- Files:
-
- 3 added
- 1 deleted
- 49 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/db/mysql/filestore_tab_c.sql
r3727 r3743 8 8 create table FILE_STORE( 9 9 NAME varchar (1000) not null, 10 CONTENT blob,10 CONTENT longblob, 11 11 MODIFIED_DTS datetime, 12 12 ACCESSED_DTS datetime, -
trunk/src/main/java/org/ibisph/databean/DataBeanToXMLService.java
r3536 r3743 19 19 20 20 protected boolean convertExtendedASCIIChars = true; 21 protected java.text.DateFormat xmlDateFormat = new java.text.SimpleDateFormat();21 protected java.text.DateFormat dateFormat = new java.text.SimpleDateFormat(); 22 22 23 23 … … 48 48 * Optional Java date format property used to convert a bean's date to a 49 49 * string when creating the XML element. 50 * @param xmlDateFormat Java date format used to convert a bean's date to a50 * @param dateFormat Java date format used to convert a bean's date to a 51 51 * string when creating the XML (Default is a SimpleDateFormat). 52 52 * @see java.text.DateFormat 53 53 */ 54 public void set XMLDateFormat(java.text.DateFormat xmlDateFormat) {55 this. xmlDateFormat = xmlDateFormat;54 public void setDateFormat(java.text.DateFormat dateFormat) { 55 this.dateFormat = dateFormat; 56 56 } //-------------------------- End of Method ------------------------------ 57 57 … … 87 87 Date date = dataBean.getDateFieldValue(fieldKey[i]); 88 88 temp = ""; 89 if(date != null) temp = this. xmlDateFormat.format(date);89 if(date != null) temp = this.dateFormat.format(date); 90 90 containerElement.add( XMLLib.newElement(fieldKey[i], temp) ); 91 91 break; … … 96 96 break; 97 97 case DataBean.Field.TYPE_COLLECTION: 98 // create a container element and loop through all the elements and add.98 // TODO: create a container element and loop through all the elements and add. 99 99 break; 100 100 default: -
trunk/src/main/java/org/ibisph/indicatorprofile/service/PublishedIndicatorsXML.java
r3734 r3743 1 1 package org.ibisph.indicatorprofile.service; 2 2 3 import java.io.File; 4 import java.io.FilenameFilter; 3 import java.util.List; 5 4 6 5 import org.dom4j.Document; … … 236 235 StringBuffer actionsReturnMessage = new StringBuffer(); 237 236 237 // get a list of all files for the path. If files exist then either backup 238 // or delete the existing published indicators. 238 239 String directoryPath = this.xmlPath; 239 240 if(!StrLib.isSomething(directoryPath)) directoryPath = IOPath.getPath(this.publishedIndicatorsPathAndFilename); 240 241 File publishedIndicatorsPathAndFile = new File(this.publishedIndicatorsPathAndFilename); 242 File directory = new File(directoryPath); 243 String[] xmlFiles = directory.list( new XMLFileNameFilter() ); 244 if(xmlFiles != null) { 241 List<String> pathAndFilenames = this.xmlDocumentService.getDirectoryPathAndFilenames(directoryPath); 242 if(pathAndFilenames.size() > 0) { 245 243 // backup published IP xml else if file exists, then delete it... 246 244 org.ibisph.filebackup.FileBackup fileBackup = null; 247 if( this.fileBackupFactory != null)245 if(null != this.fileBackupFactory) 248 246 fileBackup = this.fileBackupFactory.newFileBackup(publishedIndicatorsPathAndFilename); 249 else if(publishedIndicatorsPathAndFile.exists()) 250 publishedIndicatorsPathAndFile.delete(); 247 else 248 this.xmlDocumentService.delete(this.publishedIndicatorsPathAndFilename); 249 250 // Now loop through all the IP's and put into the published IP XML. 251 251 Document publishedProfilesDocument = getPublishedIndicators(); 252 252 Document indicatorProfileDocument; 253 254 253 try { 255 for( int i=0; i < xmlFiles.length; i++) {256 indicatorProfileDocument = xmlDocumentService.get( IOPath.concat(directoryPath, xmlFiles[i]));257 if( indicatorProfileDocument.getRootElement().getName().equals("INDICATOR")) {254 for(String pathAndFilename: pathAndFilenames) { 255 indicatorProfileDocument = xmlDocumentService.get(pathAndFilename); 256 if((null != indicatorProfileDocument) && indicatorProfileDocument.getRootElement().getName().equals("INDICATOR")) { 258 257 actionsReturnMessage.append( 259 258 updatePublishedIndicators(publishedProfilesDocument, indicatorProfileDocument) … … 261 260 } 262 261 } 263 this. savePublishedIndicatorsXMLFile(publishedProfilesDocument);262 this.xmlDocumentService.save(publishedProfilesDocument, this.publishedIndicatorsPathAndFilename); 264 263 } 265 264 catch(Exception ex) { 266 265 actionsReturnMessage.append("Problem saving the published indicator profiles file. "); 267 266 if(fileBackup != null) { 268 publishedIndicatorsPathAndFile.delete();269 267 fileBackup.restore(); 270 268 } … … 284 282 } //-------------------------- End of Method ------------------------------ 285 283 286 287 // needs to be moved into the utils...288 class XMLFileNameFilter implements FilenameFilter {289 public boolean accept(File dir, String name) {290 if(new File(dir, name).isDirectory() ) return false;291 name = name.toLowerCase();292 return( name.endsWith(".xml") );293 }294 } //------------------------End of Internal Class--------------------------295 296 284 } //============================ END OF CLASS ================================= 297 285 -
trunk/src/main/java/org/ibisph/indicatorprofile/springmvc/XMLChartGraphicController.java
r3652 r3743 1 1 package org.ibisph.indicatorprofile.springmvc; 2 3 import java.util.Map; 4 5 import javax.servlet.http.HttpServletRequest; 6 7 import org.dom4j.Document; 2 8 3 9 import org.ibisph.chart.ChartData; … … 21 27 public class XMLChartGraphicController extends org.ibisph.web.springmvc.ModelMapAndViewController { 22 28 29 protected String xmlPath = null; 30 protected org.ibisph.xml.service.Document xmlDocumentService = null; 31 23 32 protected ChartDataService chartDataService = new ChartDataFromIndicatorViewXML(); 24 protected String xmlPath = null;25 33 protected String viewNamePrefix = null; 26 34 protected String viewNameSuffix = null; … … 61 69 public void setXMLPath(String xmlPath) {this.xmlPath = xmlPath;} 62 70 71 /** 72 * Sets the DAO type service that can be used to retrieve the XML content with. 73 * @param xmlDocumentService Document DAO type service used to retrieve the 74 * XML. If not set then the controller will use the system id. 75 */ 76 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) { 77 this.xmlDocumentService = xmlDocumentService; 78 } //-------------------------- End of Method ------------------------------ 79 63 80 /** 64 81 * Sets the indicator profile ChartData XML model service. … … 98 115 // servlet / controller / path 1 / indicator view name . image type [?GraphicType|type, name, printerfriendly] 99 116 // url: indicator / chart / chart name / InfMort.Ut_US.svg 100 protected java.util.Map<String, Object> getModelMap(javax.servlet.http.HttpServletRequest request) throws Exception {117 protected Map<String, Object> getModelMap(HttpServletRequest request) throws Exception { 101 118 String urlPath = request.getPathInfo(); 102 119 String xmlFilenameWithHeight = IOPath.getFilenameWithoutExtension(urlPath); … … 117 134 118 135 // load the chart data via the service 119 ChartData chartData = (ChartData)this.chartDataService.getChartData(xmlSystemID); 136 // can handle system id, file, document, xml string... 137 ChartData chartData = null; 138 if(null != this.xmlDocumentService) { 139 Document document = this.xmlDocumentService.get(IOPath.concat(this.xmlPath, xmlFilename, "/")); 140 chartData = (ChartData)this.chartDataService.getChartData(document); 141 } 142 else { 143 chartData = (ChartData)this.chartDataService.getChartData(xmlSystemID); 144 } 120 145 121 146 // now build the model info -
trunk/src/main/java/org/ibisph/indicatorprofile/springmvc/databean/EditIndicatorViewDataSourcesController.java
r3536 r3743 8 8 9 9 import org.ibisph.databean.DataBean; 10 import org.ibisph.databean.dao.*;11 10 import org.ibisph.indicatorprofile.databean.DataSource; 12 11 import org.ibisph.indicatorprofile.databean.IndicatorView; -
trunk/src/main/java/org/ibisph/indicatorprofile/springmvc/databean/EditIndicatorViewValuesController.java
r3536 r3743 7 7 8 8 import org.ibisph.databean.DataBean; 9 import org.ibisph.databean.dao.*;10 9 import org.ibisph.indicatorprofile.databean.DatasetCategory; 11 10 import org.ibisph.indicatorprofile.databean.DatasetCategoryValue; -
trunk/src/main/java/org/ibisph/jdbc/JDBCTemplate.java
r3734 r3743 1 1 package org.ibisph.jdbc; 2 2 3 import java.io.BufferedInputStream;4 3 import java.io.ByteArrayInputStream; 5 import java.io.ByteArrayOutputStream;6 4 import java.io.IOException; 7 5 import java.io.InputStream; -
trunk/src/main/java/org/ibisph/modelmap/AddModelDateModelToModelMap.java
r3734 r3743 105 105 public void processModelMap(Map<String, Object> modelMap) throws Exception { 106 106 Object sourceModel = modelMap.get(this.sourceModelModelMapKey); 107 107 String dateString = this.defaultDateString; 108 108 long date = 0; 109 109 … … 122 122 s = XMLLib.getText(document.getRootElement(), sourceModelDateXPath); 123 123 124 // did have parsing with the date format but later reformat with same 125 // format so no point. If the datestring is something then use it. 126 // The other option is to use a Joda type date handler. 124 127 if(StrLib.isSomething(s)) { 125 date = Long.parseLong(s);128 dateString = s; 126 129 break; 127 130 } … … 137 140 138 141 // finally format the date and put into the model map. 139 String dateString = this.defaultDateString;140 142 if(date > 0) dateString = this.getFormattedDate(date); 141 143 modelMap.put(this.formattedDateModelMapKey, dateString); -
trunk/src/main/java/org/ibisph/querydefinition/modelmap/QueryModuleToQueryDefinition.java
r3678 r3743 17 17 * @author Garth Braithwaite, STG 18 18 */ 19 19 public class QueryModuleToQueryDefinition implements ProcessModelMapFromHTTPRequest { 20 20 21 21 protected static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(QueryModuleToQueryDefinition.class); -
trunk/src/main/java/org/ibisph/system/databean/AdminDatabaseInfo.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 6 5 /** -
trunk/src/main/java/org/ibisph/system/databean/RecordInfo.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 6 5 /** -
trunk/src/main/java/org/ibisph/system/databean/SurveyResponse.java
r3535 r3743 4 4 5 5 import org.ibisph.databean.DataBean; 6 import org.ibisph.databean.DataBean.Field;7 6 8 7 /** -
trunk/src/main/java/org/ibisph/system/databean/SystemCommand.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 import org.ibisph.util.StrLib; 6 5 -
trunk/src/main/java/org/ibisph/user/databean/RoleAuthority.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 6 5 /** -
trunk/src/main/java/org/ibisph/user/databean/User.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 import org.ibisph.util.StrLib; 6 5 -
trunk/src/main/java/org/ibisph/user/databean/UserAuthority.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 6 5 /** -
trunk/src/main/java/org/ibisph/user/databean/UserLog.java
r3535 r3743 4 4 5 5 import org.ibisph.databean.DataBean; 6 import org.ibisph.databean.DataBean.Field;7 6 8 7 /** -
trunk/src/main/java/org/ibisph/user/databean/UserRole.java
r3535 r3743 2 2 3 3 import org.ibisph.databean.DataBean; 4 import org.ibisph.databean.DataBean.Field;5 4 6 5 /** -
trunk/src/main/java/org/ibisph/xml/modelmap/DocumentFromHTTPRequestEndOfPathInfo.java
r3735 r3743 56 56 * contains the XML model file(s). 57 57 */ 58 public void set FilePath(String xmlPath) {this.xmlPath = xmlPath;}58 public void setXMLPath(String xmlPath) {this.xmlPath = xmlPath;} 59 59 60 60 /** -
trunk/src/main/java/org/ibisph/xml/modelmap/DocumentFromHTTPRequestParameter.java
r3735 r3743 5 5 import org.dom4j.Document; 6 6 7 import org.ibisph.modelmap.AbstractModelMap;8 7 import org.ibisph.modelmap.GetModelMapFromHTTPRequest; 9 8 import org.ibisph.util.StrLib; … … 16 15 */ 17 16 public class DocumentFromHTTPRequestParameter 18 extends AbstractModelMap17 extends SimpleDocument 19 18 implements GetModelMapFromHTTPRequest 20 19 { 21 protected String defaultXMLFilePathAndFilename = null;22 20 protected String xmlPathAndFilenameHTTPRequestParameterName = null; 23 protected org.ibisph.xml.service.Document xmlDocumentService = null;24 21 25 22 26 23 public DocumentFromHTTPRequestParameter() {} 27 24 public DocumentFromHTTPRequestParameter(String filePathAndFilename) { 28 this.defaultXMLFilePathAndFilename = filePathAndFilename;25 super(filePathAndFilename); 29 26 } //----------------------- End of Constructor ---------------------------- 30 27 31 28 32 29 /** 33 * Sets/specifies the file path/key for the XML content IF the http request34 * param is not set or if the actual value does not exist. If the request35 * param name is not set and this is then this effectively provides a simple36 * XML document model map.37 * @param defaultXMLFilePathAndFilename directory path and filename that is38 * the key to the rdbms blob record or disk file that contains the XML model.39 */40 public void setXMLDefaultFilePathAndFilename(String defaultXMLFilePathAndFilename) {41 this.defaultXMLFilePathAndFilename = defaultXMLFilePathAndFilename;42 } //-------------------------- End of Method ------------------------------43 44 /**45 30 * Sets the http request parameter name to use for the XML document to be 46 * retrieved from. 31 * retrieved from. IF the http request param is not set or if the actual 32 * value does not exist then the filename and path defaults to the parent's 33 * xmlFilePathAndFilename property. 34 * 47 35 * @param xmlPathAndFilenameHTTPRequestParameterName key/path to the XML. If 48 36 * blank (either this value or the actual request parameter) then the 49 * default PathAndFilename will be used.37 * default XMLPathAndFilename will be used. 50 38 */ 51 39 public void setXMLPathAndFilenameHTTPRequestParameterName(String xmlPathAndFilenameHTTPRequestParameterName) { 52 40 this.xmlPathAndFilenameHTTPRequestParameterName = xmlPathAndFilenameHTTPRequestParameterName; 53 } //-------------------------- End of Method ------------------------------54 55 /**56 * Sets the DAO object that will be used to save the XML content with.57 * This simply keeps with the plugable Spring framework.58 * @param xmlDocumentService Service/DAO used to save the XML document to disk.59 */60 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) {61 this.xmlDocumentService = xmlDocumentService;62 41 } //-------------------------- End of Method ------------------------------ 63 42 … … 70 49 */ 71 50 protected Object getModel(HttpServletRequest request) throws Exception { 72 String pathAndFilename = this. defaultXMLFilePathAndFilename;51 String pathAndFilename = this.xmlPathAndFilename; 73 52 if(StrLib.isSomething(this.xmlPathAndFilenameHTTPRequestParameterName)) { 74 53 pathAndFilename = request.getParameter(this.xmlPathAndFilenameHTTPRequestParameterName); 75 if(!StrLib.isSomething(pathAndFilename)) pathAndFilename = this. defaultXMLFilePathAndFilename;54 if(!StrLib.isSomething(pathAndFilename)) pathAndFilename = this.xmlPathAndFilename; 76 55 } 77 56 Document document = this.xmlDocumentService.get(pathAndFilename); -
trunk/src/main/java/org/ibisph/xml/service/AbstractDocument.java
r3727 r3743 3 3 import java.io.IOException; 4 4 import java.net.URLConnection; 5 import java.text.DateFormat; 5 6 6 7 import org.dom4j.DocumentException; … … 8 9 9 10 import org.ibisph.util.NetLib; 11 import org.ibisph.util.StrLib; 10 12 import org.ibisph.util.StreamLib; 11 13 … … 22 24 protected OutputFormat outputFormat = null; 23 25 protected boolean escapeTextWhenSaving = true; 26 27 protected DateFormat dateFormat = null; 24 28 25 29 … … 39 43 this.outputFormat = outputFormat; 40 44 } //-------------------------- End of Method ------------------------------ 41 45 46 /** 47 * XML file date format property. This date format property is used to create 48 * the last modified date string which may be used by the XSLT to display the 49 * source file's last modified date. 50 * 51 * @param dateFormat Any valid date format (typically a SimpleDateFormat). 52 * @see java.text.DateFormat 53 */ 54 public void setDateFormat(DateFormat dateFormat) {this.dateFormat = dateFormat;} 55 42 56 /** 43 57 * Sets escape text boolean flag used to control escaping reserved characters … … 50 64 public void setEscapeTextWhenSaving(boolean escapeTextWhenSaving) { 51 65 this.escapeTextWhenSaving = escapeTextWhenSaving; 66 } //-------------------------- End of Method ------------------------------ 67 public void setEscapeTextWhenSaving(Boolean escapeTextWhenSaving) { 68 this.escapeTextWhenSaving = escapeTextWhenSaving.booleanValue(); 69 } //-------------------------- End of Method ------------------------------ 70 public void setEscapeTextWhenSaving(String escapeTextWhenSaving) { 71 this.escapeTextWhenSaving = StrLib.isTorYorX(escapeTextWhenSaving); 72 } //-------------------------- End of Method ------------------------------ 73 74 public boolean getEscapeTextWhenSaving() { 75 return(this.escapeTextWhenSaving); 52 76 } //-------------------------- End of Method ------------------------------ 53 77 -
trunk/src/main/java/org/ibisph/xml/service/BLOBStoredDocument.java
r3734 r3743 7 7 import java.sql.SQLException; 8 8 import java.sql.Timestamp; 9 import java.text.DateFormat; 10 import java.util.ArrayList; 9 11 import java.util.Date; 12 import java.util.List; 10 13 11 14 import org.dom4j.DocumentException; … … 34 37 ; 35 38 36 protected String fileStore SQLExistsQuery =39 protected String fileStoreExistsSQLQuery = 37 40 "select NAME " + 38 41 "from FILE_STORE " + … … 40 43 ; 41 44 45 protected String fileStoreListSQLQuery = 46 "select NAME " + 47 "from FILE_STORE " + 48 "where NAME like ? " 49 ; 50 42 51 protected String fileStoreSQLInsert = 43 52 "insert into FILE_STORE " + … … 88 97 this.fileStoreSQLDelete = fileStoreSQLDelete; 89 98 } //-------------------------- End of Method ------------------------------ 99 100 public void setFileStoreExistsSQLQuery(String fileStoreExistsSQLQuery) { 101 this.fileStoreExistsSQLQuery = fileStoreExistsSQLQuery; 102 } //-------------------------- End of Method ------------------------------ 103 104 public void setFileStoreListSQLQuery(String fileStoreListSQLQuery) { 105 this.fileStoreListSQLQuery = fileStoreListSQLQuery; 106 } //-------------------------- End of Method ------------------------------ 107 90 108 91 109 /** … … 127 145 // add in the modified dts so that the modelmap will put this value in 128 146 // for the xslt view to access and present to the user. 147 String dateString = this.dateFormat.format(modifiedDTS.getTime()); 129 148 XMLLib.replaceElement(document.getRootElement(), 130 XMLLib.newElement("MODIFIED_DTS", modifiedDTS.toString())149 XMLLib.newElement("MODIFIED_DTS", dateString) 131 150 ); 132 151 … … 229 248 public boolean exists(String xmlPathAndFilename) { 230 249 JDBCTemplate jdbcTemplate = this.jdbcTemplateFactory.get(); 231 jdbcTemplate.setPreparedStatement(this.fileStore SQLExistsQuery);250 jdbcTemplate.setPreparedStatement(this.fileStoreExistsSQLQuery); 232 251 jdbcTemplate.setPreparedStatementString(1, xmlPathAndFilename); 233 252 jdbcTemplate.executePreparedStatement(); … … 236 255 return(exists); 237 256 } //-------------------------- End of Method ------------------------------ 238 239 257 258 259 260 public List<String> getDirectoryPathAndFilenames(String xmlPath) { 261 List<String> fileList = new ArrayList<String>(); 262 JDBCTemplate jdbcTemplate = this.jdbcTemplateFactory.get(); 263 jdbcTemplate.setPreparedStatement(this.fileStoreListSQLQuery); 264 jdbcTemplate.setPreparedStatementString(1, xmlPath); 265 jdbcTemplate.executePreparedStatementQuery(); 266 while(jdbcTemplate.next()) { 267 String name = jdbcTemplate.getString("NAME"); 268 fileList.add(name); 269 } 270 jdbcTemplate.close(); 271 272 return(fileList); 273 } //-------------------------- End of Method ------------------------------ 274 240 275 241 276 /** -
trunk/src/main/java/org/ibisph/xml/service/Document.java
r3734 r3743 1 1 package org.ibisph.xml.service; 2 3 import java.util.List; 2 4 3 5 /** … … 47 49 */ 48 50 public boolean exists(String xmlPathAndFilename) throws Exception; 51 52 53 /** 54 * Get's a list of files based on the supplied path name. 55 * @param xmlPath either a file disk path or a file disk path that the rdbms 56 * uses to select the xml from. 57 * @return list of filenames with their full path. 58 * @throws Exception 59 */ 60 public List<String> getDirectoryPathAndFilenames(String xmlPath) throws Exception; 49 61 } //--------------------------- END OF INTERFACE ----------------------------- -
trunk/src/main/java/org/ibisph/xml/service/FileStoredDocument.java
r3735 r3743 2 2 3 3 import java.io.File; 4 import java.io.FilenameFilter; 4 5 import java.io.IOException; 5 6 import java.io.OutputStream; 6 7 import java.io.UnsupportedEncodingException; 8 import java.util.ArrayList; 9 import java.util.List; 7 10 8 11 import org.dom4j.DocumentException; … … 183 186 return(null); 184 187 } //-------------------------- End of Method ------------------------------ 185 188 189 190 public List<String> getDirectoryPathAndFilenames(String xmlPath) { 191 List<String> fileList = new ArrayList<String>(); 192 File directory = new File(xmlPath); 193 String[] xmlFiles = directory.list( new XMLFileNameFilter() ); 194 for(int i=0; i < xmlFiles.length; i++) { 195 fileList.add(IOPath.concat(xmlPath, xmlFiles[i], "/")); 196 } 197 return(fileList); 198 } //-------------------------- End of Method ------------------------------ 199 200 201 // needs to be moved into the utils... 202 class XMLFileNameFilter implements FilenameFilter { 203 public boolean accept(File dir, String name) { 204 if(new File(dir, name).isDirectory() ) return false; 205 name = name.toLowerCase(); 206 return( name.endsWith(".xml") ); 207 } 208 } //------------------------End of Internal Class-------------------------- 209 186 210 } //============================ END OF CLASS ================================= 187 211 -
trunk/src/main/webapps/ibisph-admin/WEB-INF/config/site_specific.properties
r3493 r3743 28 28 ViewApp.PreviewIndicatorProfile.URL =http://localhost/ibisph-view/view?xslt=html/indicator/profile/complete_profile/CompleteProfilePage.xslt&xmlURL=http://localhost/ibisph-admin/indicator/########.xml 29 29 ViewApp.PreviewImportantFacts.URL =http://localhost/ibisph-view/view?xslt=html/indicator/profile/important_facts/ImportantFactsPage.xslt&xmlURL=http://localhost/ibisph-admin/indicator/########.xml 30 ViewApp.PreviewAvailableServices.URL =http://localhost/ibisph-view/view?xslt=html/indicator/profile/available s_services/AvailableServicesPage.xslt&xmlURL=http://localhost/ibisph-admin/indicator/########.xml30 ViewApp.PreviewAvailableServices.URL =http://localhost/ibisph-view/view?xslt=html/indicator/profile/available_services/AvailableServicesPage.xslt&xmlURL=http://localhost/ibisph-admin/indicator/########.xml 31 31 ViewApp.PreviewIndicatorViewChart.URL =http://localhost/ibisph-view/view?xslt=html/indicator/profile/view/ViewPage.xslt&xmlURL=http://localhost/ibisph-admin/indicator/########.xml 32 32 ViewApp.PreviewIndicatorViewNumbers.URL =http://localhost/ibisph-view/view?xslt=html/indicator/profile/view_numbers/ViewNumbersPage.xslt&xmlURL=http://localhost/ibisph-admin/indicator/########.xml -
trunk/src/main/webapps/ibisph-admin/WEB-INF/config/spring/common.xml
r3734 r3743 141 141 <bean id="Common.XML.OutputFormat" class="org.dom4j.io.OutputFormat"> 142 142 <property name="encoding" value="${XML.EncodingScheme}"/> 143 <property name="indentSize" value=" 0"/> <!--\t = 	 = horizontal tab -->144 <property name="indent" value=" "/>145 <property name="newlines" value=" false"/> <!-- if true just adds extra blank line inbetween... -->143 <property name="indentSize" value="1"/> <!-- count of indents indents are tabs: \t = 	 = horizontal tab --> 144 <property name="indent" value="true"/> 145 <property name="newlines" value="true"/> <!-- if true just adds extra blank line inbetween... --> 146 146 <property name="padText" value="false"/> <!-- if true just adds extra blank line inbetween... --> 147 147 <property name="trimText" value="false"/> <!-- do NOT set to true --> … … 263 263 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 264 264 <property name="escapeTextWhenSaving" value="${XML.EscapeText}"/> 265 <property name="dateFormat" ref="Common.DateFormat"/> 265 266 </bean> 266 267 267 268 <bean id="Common.DataBeanToXML.Service" class="org.ibisph.databean.DataBeanToXMLService"> 268 269 <property name="convertExtendedASCIIChars" value="${XML.ConvertExtendedASCIIChars}"/> 269 <property name=" XMLDateFormat"ref="Common.DateFormat"/>270 <property name="dateFormat" ref="Common.DateFormat"/> 270 271 </bean> 271 272 -
trunk/src/main/webapps/ibisph-admin/WEB-INF/config/spring/indicator.xml
r3688 r3743 67 67 <property name="relationDataBeanCollection" ref="Indicator.Relation.DataBeanCollection"/> 68 68 <property name="convertExtendedASCIIChars" ref="Common.XML.ConvertExtendedASCIIChars"/> 69 <property name=" XMLDateFormat"ref="Common.DateFormat"/>69 <property name="dateFormat" ref="Common.DateFormat"/> 70 70 </bean> 71 71 -
trunk/src/main/webapps/ibisph-admin/WEB-INF/config/spring/indicator_view.xml
r3688 r3743 18 18 <property name="dataBeanDAOService" ref="Common.DataBeanDAO.Service"/> 19 19 <property name="convertExtendedASCIIChars" ref="Common.XML.ConvertExtendedASCIIChars"/> 20 <property name=" XMLDateFormat"ref="Common.DateFormat"/>20 <property name="dateFormat" ref="Common.DateFormat"/> 21 21 </bean> 22 22 -
trunk/src/main/webapps/ibisph-admin/WEB-INF/config/spring/publish-blob.xml
r3734 r3743 16 16 provides published_indicators.xml file management. 17 17 --> 18 <bean id="Publish.CategorizedIndex .XML.PathAndFilename" class="java.lang.String">18 <bean id="Publish.CategorizedIndexXML.PathAndFilename" class="java.lang.String"> 19 19 <constructor-arg value="xml/indicator/categorized_index.xml"/> 20 20 </bean> 21 <bean id="Publish.OrgUnits .XML.PathAndFilename" class="java.lang.String">21 <bean id="Publish.OrgUnitsXML.PathAndFilename" class="java.lang.String"> 22 22 <constructor-arg value="xml/org_units.xml"/> 23 23 </bean> … … 25 25 <constructor-arg value="xml/indicator/published_profiles.xml"/> 26 26 </bean> 27 <bean id="Publish.IndicatorProfile .XML.Path" class="java.lang.String">27 <bean id="Publish.IndicatorProfileXML.Path" class="java.lang.String"> 28 28 <constructor-arg value="xml/indicator/profile"/> 29 29 </bean> … … 31 31 <bean id="Publish.BLOBStoredXML.Service" class="org.ibisph.xml.service.BLOBStoredDocument"> 32 32 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 33 <property name="escapeTextWhenSaving" value="false"/> 33 <property name="escapeTextWhenSaving" value="true"/> 34 <property name="dateFormat" ref="Common.DateFormat"/> 34 35 <property name="JDBCTemplateFactory"> 35 36 <bean class="org.ibisph.jdbc.JDBCTemplateFactory"> … … 48 49 <bean id="Publish.PublishedIndicators.Service" class="org.ibisph.indicatorprofile.service.PublishedIndicatorsXML"> 49 50 <property name="publishedIndicatorsPathAndFilename" ref="Publish.PublishedIndicatorProfilesXML.PathAndFilename"/> 50 <property name="XMLPath" ref="Publish.IndicatorProfile .XML.Path"/>51 <property name="XMLPath" ref="Publish.IndicatorProfileXML.Path"/> 51 52 <property name="XMLDocumentService" ref="Publish.BLOBStoredXML.Service"/> 52 53 </bean> … … 65 66 class="org.ibisph.databean.springmvc.PublishCollectionToXMLFileController" 66 67 > 67 <property name="XMLPathAndFilename" ref="Publish.CategorizedIndex .XML.PathAndFilename"/>68 <property name="XMLPathAndFilename" ref="Publish.CategorizedIndexXML.PathAndFilename"/> 68 69 <property name="dataBeanClassName" value="org.ibisph.indicatorprofile.databean.CategorizedIndex"/> 69 70 <property name="rootXMLElementName" value="CATEGORIZED_INDEXES"/> … … 74 75 class="org.ibisph.databean.springmvc.PublishCollectionToXMLFileController" 75 76 > 76 <property name="XMLPathAndFilename" ref="Publish.OrgUnits .XML.PathAndFilename"/>77 <property name="XMLPathAndFilename" ref="Publish.OrgUnitsXML.PathAndFilename"/> 77 78 <property name="dataBeanClassName" value="org.ibisph.indicatorprofile.databean.OrgUnit"/> 78 79 <property name="rootXMLElementName" value="ORG_UNITS"/> … … 85 86 <property name="indicatorViewDataBeanToXMLService" ref="IndicatorView.DataBeanToXML.Service"/> 86 87 <property name="publishedIndicatorsService" ref="Publish.PublishedIndicators.Service"/> 87 <property name="XMLPath" ref="Publish.IndicatorProfile .XML.Path"/>88 <property name="XMLDocumentService" ref="Publish.BLOBStoredXML.Service"/>88 <property name="XMLPath" ref="Publish.IndicatorProfileXML.Path"/> 89 <property name="XMLDocumentService" ref="Publish.BLOBStoredXML.Service"/> 89 90 </bean> 90 91 <bean id="Publish.Indicator.Controller" -
trunk/src/main/webapps/ibisph-admin/WEB-INF/config/spring/publish-direct.xml
r3734 r3743 43 43 provides published_indicators.xml file management. 44 44 --> 45 <bean id="Publish.CategorizedIndex .XML.PathAndFilename" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">45 <bean id="Publish.CategorizedIndexXML.PathAndFilename" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 46 46 <description>used by indicator indexes</description> 47 47 <property name="targetObject" ref="Common.Context.Servlet"/> … … 49 49 <property name="arguments"><list><value>../ibisph-view/xml/indicator/categorized_index.xml</value></list></property> 50 50 </bean> 51 <bean id="Publish.OrgUnits .XML.PathAndFilename" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">51 <bean id="Publish.OrgUnitsXML.PathAndFilename" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 52 52 <description>used by indicator indexes</description> 53 53 <property name="targetObject" ref="Common.Context.Servlet"/> … … 61 61 <property name="arguments"><list><value>../ibisph-view/xml/indicator/published_profiles.xml</value></list></property> 62 62 </bean> 63 <bean id="Publish.IndicatorProfile .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">63 <bean id="Publish.IndicatorProfileXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 64 64 <property name="targetObject" ref="Common.Context.Servlet"/> 65 65 <property name="targetMethod" value="getRealPath"/> … … 69 69 <bean id="Publish.PublishedIndicators.Service" class="org.ibisph.indicatorprofile.service.PublishedIndicatorsXML"> 70 70 <property name="publishedIndicatorsPathAndFilename" ref="Publish.PublishedIndicatorProfilesXML.PathAndFilename"/> 71 <property name="XMLPath" ref="Publish.IndicatorProfile .XML.Path"/>71 <property name="XMLPath" ref="Publish.IndicatorProfileXML.Path"/> 72 72 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 73 73 <property name="fileBackupFactory" ref="Common.Versioned.FileBackupFactory"/> … … 88 88 class="org.ibisph.databean.springmvc.PublishCollectionToXMLFileController" 89 89 > 90 <property name="XMLPathAndFilename" ref="Publish.CategorizedIndex .XML.PathAndFilename"/>90 <property name="XMLPathAndFilename" ref="Publish.CategorizedIndexXML.PathAndFilename"/> 91 91 <property name="dataBeanClassName" value="org.ibisph.indicatorprofile.databean.CategorizedIndex"/> 92 92 <property name="rootXMLElementName" value="CATEGORIZED_INDEXES"/> … … 97 97 class="org.ibisph.databean.springmvc.PublishCollectionToXMLFileController" 98 98 > 99 <property name="XMLPathAndFilename" ref="Publish.OrgUnits .XML.PathAndFilename"/>99 <property name="XMLPathAndFilename" ref="Publish.OrgUnitsXML.PathAndFilename"/> 100 100 <property name="dataBeanClassName" value="org.ibisph.indicatorprofile.databean.OrgUnit"/> 101 101 <property name="rootXMLElementName" value="ORG_UNITS"/> … … 108 108 <property name="indicatorViewDataBeanToXMLService" ref="IndicatorView.DataBeanToXML.Service"/> 109 109 <property name="publishedIndicatorsService" ref="Publish.PublishedIndicators.Service"/> 110 <property name="XMLPath" ref="Publish.IndicatorProfile .XML.Path"/>110 <property name="XMLPath" ref="Publish.IndicatorProfileXML.Path"/> 111 111 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 112 112 <property name="fileBackupFactory" ref="Common.Versioned.FileBackupFactory"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/common.xml
r3734 r3743 175 175 </bean> 176 176 177 <bean id="Common.OrgUnits.ModelMap" class="org.ibisph.xml.modelmap.SimpleDocument"> 178 <description> 179 </description> 180 <property name="modelMapKey" value="Page.orgUnits"/> 181 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 182 <property name="XMLPathAndFilename" value="xml/org_units.xml"/> 183 </bean> 184 177 185 178 186 <!-- X M L R E S O U R C E S --> … … 186 194 </bean> 187 195 196 <!-- 188 197 <bean id="Common.FileStoredXML.Service" class="org.ibisph.xml.service.FileStoredDocument"> 198 <description> 199 Provides a local disk based document get, save, delete service. 200 </description> 189 201 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 190 202 </bean> 191 <bean id="Common.BLOBStoredXML.Service" class="org.ibisph.xml.service.BLOBStoredDocument"> 203 --> 204 <bean id="Common.XMLDocument.Service" class="org.ibisph.xml.service.BLOBStoredDocument"> 205 <description> 206 Provides the RDBMS BLOB based document get, save, delete service. 207 </description> 192 208 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 209 <property name="escapeTextWhenSaving" value="true"/> 210 <property name="dateFormat" ref="Common.DateFormat"/> 193 211 <property name="JDBCTemplateFactory"> 194 212 <bean class="org.ibisph.jdbc.JDBCTemplateFactory"> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/community.xml
r3710 r3743 25 25 </bean> 26 26 27 <bean id="Community.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">27 <bean id="Community.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 28 28 <property name="targetObject" ref="Common.Context.Servlet"/> 29 29 <property name="targetMethod" value="getRealPath"/> … … 31 31 </bean> 32 32 <bean id="Community.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 33 <constructor-arg ref="Community.HTMLContent .XML.Path"/>33 <constructor-arg ref="Community.HTMLContentXML.Path"/> 34 34 <constructor-arg value="Introduction.xml"/> 35 35 </bean> 36 36 37 <bean id="Community.Highlight .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">37 <bean id="Community.HighlightXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 38 38 <property name="targetObject" ref="Common.Context.Servlet"/> 39 39 <property name="targetMethod" value="getRealPath"/> … … 43 43 44 44 <bean id="Community.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 45 <property name=" FilePath" ref="Community.HTMLContent.XML.Path"/>45 <property name="filePath" ref="Community.HTMLContentXML.Path"/> 46 46 </bean> 47 47 <bean id="Community.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> … … 61 61 <ref bean="Community.HTMLContent.ModelMap"/> 62 62 <ref bean="Community.DefaultHTMLContent.ModelMap"/> 63 <ref bean="Common.OrgUnits.ModelMap"/> 63 64 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 64 65 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 73 74 <list> 74 75 <ref bean="Community.Dimensions.ModelMap"/> 76 <ref bean="Common.OrgUnits.ModelMap"/> 75 77 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 76 78 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 85 87 <list> 86 88 <ref bean="Community.Dimensions.ModelMap"/> 89 <ref bean="Common.OrgUnits.ModelMap"/> 87 90 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 88 91 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 97 100 --> 98 101 </bean> 102 103 99 104 <bean id="Community.Highlight.Introduction.Controller" class="org.ibisph.communityprofile.modelmap.XMLModelAndDate"> 100 105 <!-- … … 102 107 --> 103 108 </bean> 109 110 104 111 <bean id="Community.Highlight.Profile.Controller" class="org.ibisph.communityprofile.modelmap.XMLModelAndDate"> 105 112 <!-- … … 116 123 117 124 <bean id="Community.Highlight.ChartGraphic.Controller" class="org.ibisph.communityprofile.springmvc.ChartGraphicController"> 118 <property name="XMLPath" ref="Indicator.Profile .XML.Path"/>125 <property name="XMLPath" ref="Indicator.ProfileXML.Path"/> 119 126 <!-- 120 127 <property name="chartDataService" ref="Indicator.ChartData.ModelMap"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/home.xml
r3710 r3743 14 14 15 15 <!-- M O D E L S / C O N T R O L L E R R E S O R U C E S --> 16 <bean id="Home.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">16 <bean id="Home.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 17 17 <property name="targetObject" ref="Common.Context.Servlet"/> 18 18 <property name="targetMethod" value="getRealPath"/> … … 20 20 </bean> 21 21 <bean id="Home.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 22 <constructor-arg ref="Home.HTMLContent .XML.Path"/>22 <constructor-arg ref="Home.HTMLContentXML.Path"/> 23 23 <constructor-arg value="Welcome.xml"/> 24 24 </bean> 25 25 26 26 <bean id="Home.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 27 <property name=" FilePath" ref="Home.HTMLContent.XML.Path"/>27 <property name="filePath" ref="Home.HTMLContentXML.Path"/> 28 28 </bean> 29 29 <bean id="Home.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> … … 38 38 <ref bean="Home.HTMLContent.ModelMap"/> 39 39 <ref bean="Home.DefaultHTMLContent.ModelMap"/> 40 <ref bean="Common.OrgUnits.ModelMap"/> 40 41 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 41 42 <ref bean="Common.HTTPRequestParameters.ModelMap"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/indicator.xml
r3710 r3743 15 15 16 16 <!-- M O D E L S / C O N T R O L L E R R E S O R U C E S --> 17 <bean id="Indicator.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 18 <property name="targetObject" ref="Common.Context.Servlet"/> 19 <property name="targetMethod" value="getRealPath"/> 20 <property name="arguments"> <list><value>xml/indicator</value></list></property> 21 </bean> 22 <bean id="Indicator.Profile.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 17 <bean id="Indicator.ProfileXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 23 18 <property name="targetObject" ref="Common.Context.Servlet"/> 24 19 <property name="targetMethod" value="getRealPath"/> 25 20 <property name="arguments"> <list><value>xml/indicator/profile</value></list></property> 26 21 </bean> 27 <bean id="Indicator.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">22 <bean id="Indicator.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 28 23 <property name="targetObject" ref="Common.Context.Servlet"/> 29 24 <property name="targetMethod" value="getRealPath"/> … … 32 27 33 28 <bean id="Indicator.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 34 <constructor-arg ref="Indicator.HTMLContent .XML.Path"/>29 <constructor-arg ref="Indicator.HTMLContentXML.Path"/> 35 30 <constructor-arg value="Introduction.xml"/> 36 31 </bean> … … 47 42 <!-- X M L M O D E L S --> 48 43 <bean id="Indicator.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 49 <property name=" FilePath" ref="Indicator.HTMLContent.XML.Path"/>44 <property name="filePath" ref="Indicator.HTMLContentXML.Path"/> 50 45 </bean> 51 46 <bean id="Indicator.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> … … 59 54 </bean> 60 55 <bean id="Indicator.Profile.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 61 <property name=" FilePath" ref="Indicator.Profile.XML.Path"/>56 <property name="filePath" ref="Indicator.ProfileXML.Path"/> 62 57 </bean> 63 58 … … 66 61 </bean> 67 62 63 <bean id="Indicator.PublishedIndicatorsXML.ModelMap" class="org.ibisph.xml.modelmap.SimpleDocument"> 64 <description> 65 </description> 66 <property name="modelMapKey" value="Indicator.publishedIndicators"/> 67 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 68 <property name="XMLPathAndFilename" value="xml/indicator/published_profiles.xml"/> 69 </bean> 70 68 71 69 72 <!-- C O N T R O L L E R S --> … … 73 76 <ref bean="Indicator.HTMLContent.ModelMap"/> 74 77 <ref bean="Indicator.DefaultHTMLContent.ModelMap"/> 78 <ref bean="Common.OrgUnits.ModelMap"/> 75 79 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 76 80 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 85 89 <list> 86 90 <ref bean="Indicator.PublishedIndicatorProfiles.ModelMap"/> 91 <ref bean="Common.OrgUnits.ModelMap"/> 87 92 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 88 93 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 96 101 <list> 97 102 <ref bean="Indicator.CategorziedIndex.ModelMap"/> 103 <ref bean="Common.OrgUnits.ModelMap"/> 98 104 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 99 105 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 109 115 <list> 110 116 <ref bean="Indicator.Profile.ModelMap"/> 111 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 112 <ref bean="Common.HTTPRequestParameters.ModelMap"/> 113 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 114 </list> 115 </property> 116 </bean> 117 <bean id="Indicator.View.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 117 <ref bean="Common.OrgUnits.ModelMap"/> 118 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 119 <ref bean="Common.HTTPRequestParameters.ModelMap"/> 120 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 121 </list> 122 </property> 123 </bean> 124 <bean id="Indicator.View.Controller" 125 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 126 parent="Indicator.Profile.Controller.CommonProperties" 127 > 118 128 <property name="view" ref="Indicator.View.View"/> 119 129 </bean> 120 <bean id="Indicator.ImportantFacts.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 130 <bean id="Indicator.ImportantFacts.Controller" 131 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 132 parent="Indicator.Profile.Controller.CommonProperties" 133 > 121 134 <property name="view" ref="Indicator.ImportantFacts.View"/> 122 135 </bean> 123 136 124 <bean id="Indicator.RelatedIndicators.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 137 <bean id="Indicator.RelatedIndicators.Controller" 138 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 139 parent="Indicator.Profile.Controller.CommonProperties" 140 > 125 141 <property name="modelMapList"> 126 142 <list> 127 143 <ref bean="Indicator.SelectedRelationName.ModelMap"/> 128 144 <ref bean="Indicator.Profile.ModelMap"/> 145 <ref bean="Indicator.PublishedIndicatorsXML.ModelMap"/> 129 146 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 130 147 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 135 152 </bean> 136 153 137 <bean id="Indicator.AvailableServices.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 154 <bean id="Indicator.AvailableServices.Controller" 155 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 156 parent="Indicator.Profile.Controller.CommonProperties" 157 > 138 158 <property name="view" ref="Indicator.AvailableServices.View"/> 139 159 </bean> 140 <bean id="Indicator.OtherResources.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 160 <bean id="Indicator.OtherResources.Controller" 161 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 162 parent="Indicator.Profile.Controller.CommonProperties" 163 > 141 164 <property name="view" ref="Indicator.OtherResources.View"/> 142 165 </bean> 143 <bean id="Indicator.ViewNumbers.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 166 <bean id="Indicator.ViewNumbers.Controller" 167 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 168 parent="Indicator.Profile.Controller.CommonProperties" 169 > 144 170 <property name="view" ref="Indicator.ViewNumbers.View"/> 145 171 </bean> 146 <bean id="Indicator.CompleteProfile.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Indicator.Profile.Controller.CommonProperties"> 172 <bean id="Indicator.CompleteProfile.Controller" 173 class="org.ibisph.web.springmvc.ModelMapListProcessingController" 174 parent="Indicator.Profile.Controller.CommonProperties" 175 > 176 <property name="modelMapList"> 177 <list> 178 <ref bean="Indicator.Profile.ModelMap"/> 179 <ref bean="Indicator.PublishedIndicatorsXML.ModelMap"/> 180 <ref bean="Common.OrgUnits.ModelMap"/> 181 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 182 <ref bean="Common.HTTPRequestParameters.ModelMap"/> 183 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 184 </list> 185 </property> 147 186 <property name="view" ref="Indicator.CompleteProfile.View"/> 148 187 </bean> 149 188 150 189 <bean id="Indicator.ChartGraphic.Controller" class="org.ibisph.indicatorprofile.springmvc.XMLChartGraphicController"> 151 <property name="XMLPath" ref="Indicator.Profile .XML.Path"/>190 <property name="XMLPath" ref="Indicator.ProfileXML.Path"/> 152 191 <property name="chartDataService"><bean class="org.ibisph.indicatorprofile.service.ChartDataFromIndicatorViewXML"/></property> 153 192 <property name="viewNamePrefix" ref="Chart.ViewNamePrefix"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/phom.xml
r3710 r3743 14 14 15 15 <!-- M O D E L S / C O N T R O L L E R R E S O R U C E S --> 16 <bean id="PHOM.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">16 <bean id="PHOM.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 17 17 <property name="targetObject" ref="Common.Context.Servlet"/> 18 18 <property name="targetMethod" value="getRealPath"/> … … 21 21 22 22 <bean id="PHOM.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 23 <constructor-arg ref="PHOM.HTMLContent .XML.Path"/>23 <constructor-arg ref="PHOM.HTMLContentXML.Path"/> 24 24 <constructor-arg value="Introduction.xml"/> 25 25 </bean> … … 27 27 28 28 <bean id="PHOM.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 29 <property name=" FilePath" ref="PHOM.HTMLContent.XML.Path"/>29 <property name="filePath" ref="PHOM.HTMLContentXML.Path"/> 30 30 </bean> 31 31 <bean id="PHOM.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> … … 41 41 <ref bean="PHOM.HTMLContent.ModelMap"/> 42 42 <ref bean="PHOM.DefaultHTMLContent.ModelMap"/> 43 <ref bean="Common.OrgUnits.ModelMap"/> 43 44 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 44 45 <ref bean="Common.HTTPRequestParameters.ModelMap"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/publications.xml
r3710 r3743 14 14 15 15 <!-- M O D E L S / C O N T R O L L E R R E S O R U C E S --> 16 <bean id="Publications.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">16 <bean id="Publications.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 17 17 <property name="targetObject" ref="Common.Context.Servlet"/> 18 18 <property name="targetMethod" value="getRealPath"/> … … 20 20 </bean> 21 21 <bean id="Publications.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 22 <constructor-arg ref="Publications.HTMLContent .XML.Path"/>22 <constructor-arg ref="Publications.HTMLContentXML.Path"/> 23 23 <constructor-arg value="Introduction.xml"/> 24 24 </bean> … … 30 30 31 31 <bean id="Publications.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 32 <property name=" FilePath" ref="Publications.HTMLContent.XML.Path"/>32 <property name="filePath" ref="Publications.HTMLContentXML.Path"/> 33 33 </bean> 34 34 <bean id="Publications.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> … … 48 48 <ref bean="Publications.HTMLContent.ModelMap"/> 49 49 <ref bean="Publications.DefaultHTMLContent.ModelMap"/> 50 <ref bean="Common.OrgUnits.ModelMap"/> 50 51 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 51 52 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 59 60 <list> 60 61 <ref bean="Publications.List.ModelMap"/> 62 <ref bean="Common.OrgUnits.ModelMap"/> 61 63 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 62 64 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 70 72 <list> 71 73 <ref bean="Publications.List.ModelMap"/> 74 <ref bean="Common.OrgUnits.ModelMap"/> 72 75 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 73 76 <ref bean="Common.HTTPRequestParameters.ModelMap"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/publish-remote.xml
r3734 r3743 5 5 a remote admin application. This mechanism is used when the admin and view 6 6 apps exist on different app servers or do not have access to a shared/common 7 file server. Direct file publishing offers several advantages over the 8 remote publishing mechanism; like faster, and easier to configure. 7 file server or when not using the RDBMS publishing mechanism. Direct file 8 publishing offers several advantages over the remote publishing mechanism; 9 like faster, and easier to configure. Publishing to an RDBMS has advantages 10 in that published files are not contained within the app so deployments are 11 cleaner. 9 12 10 13 To use remote publishing both apps need to be configured to the appropriate … … 60 63 <property name="targetObject" ref="Common.Context.Servlet"/> 61 64 <property name="targetMethod" value="getRealPath"/> 62 <property name="arguments"><list><value> ../ibisph-view/xml/indicator/published_profiles.xml</value></list></property>65 <property name="arguments"><list><value>xml/indicator/published_profiles.xml</value></list></property> 63 66 </bean> 64 67 … … 74 77 (bean creation). If the admin app is wired to publish directly then 75 78 this service is not needed (which is not the case with remote 76 publishing). Summary: Service provides published_ indicators.xml file79 publishing). Summary: Service provides published_profiles.xml file 77 80 management. 78 81 --> … … 94 97 <bean id="Publish.PublishedIndicators.Service" class="org.ibisph.indicatorprofile.service.PublishedIndicatorsXML"> 95 98 <property name="publishedIndicatorsPathAndFilename" ref="Publish.PublishedIndicatorProfilesXML.PathAndFilename"/> 96 <property name="XMLPath" ref="Indicator.Profile.XML.Path"/> 97 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 98 <!-- 99 <property name="XMLPath" ref="Indicator.ProfileXML.Path"/> 100 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 99 101 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 100 -->101 102 </bean> 102 103 … … 106 107 <bean id="Publish.CategorizedIndex.Controller" class="org.ibisph.xml.springmvc.RemotePublishRequestController"> 107 108 <property name="baseRequestURL" ref="Common.AdminApp.CategorizedIndexXML.BaseURL"/> 108 <property name="destinationFilePath" ref="Indicator.XML.Path"/>109 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/>109 <property name="destinationFilePath" value="xml/indicator"/> 110 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 110 111 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 111 112 </bean> … … 114 115 <property name="baseRequestURL" ref="Common.AdminApp.IndicatorXML.BaseURL"/> 115 116 <property name="baseIndicatorViewRequestURL" ref="Common.AdminApp.IndicatorViewXML.BaseURL"/> 116 <property name="destinationFilePath" ref="Indicator.Profile .XML.Path"/>117 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/>117 <property name="destinationFilePath" ref="Indicator.ProfileXML.Path"/> 118 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 118 119 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 119 120 <property name="publishedIndicatorsService" ref="Publish.PublishedIndicators.Service"/> … … 123 124 <property name="baseRequestURL" ref="Common.AdminApp.OrgUnitsXML.BaseURL"/> 124 125 <property name="destinationFilePath" ref="Publish.OrgUnitsXML.Path"/> 125 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/>126 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 126 127 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 127 128 </bean> 128 129 129 130 </beans> 131 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/query.xml
r3737 r3743 18 18 </bean> 19 19 20 <bean id="Query.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">20 <bean id="Query.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 21 21 <property name="targetObject" ref="Common.Context.Servlet"/> 22 22 <property name="targetMethod" value="getRealPath"/> … … 24 24 </bean> 25 25 <bean id="Query.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 26 <constructor-arg ref="Query.HTMLContent .XML.Path"/>26 <constructor-arg ref="Query.HTMLContentXML.Path"/> 27 27 <constructor-arg value="Introduction.xml"/> 28 28 </bean> 29 29 30 <bean id="Query.Module Base.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">30 <bean id="Query.ModuleXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 31 31 <property name="targetObject" ref="Common.Context.Servlet"/> 32 32 <property name="targetMethod" value="getRealPath"/> … … 55 55 <!-- S E R V I C E S --> 56 56 <bean id="Query.Module.XML.Service" class="org.ibisph.querymodule.service.QueryModuleXML"> 57 <property name="XMLPath" ref="Query.Module Base.XML.Path"/>57 <property name="XMLPath" ref="Query.ModuleXML.Path"/> 58 58 <property name="XMLDocumentService" ref="Query.QueryModule.XMLDocumentService"/> 59 59 </bean> … … 65 65 <!-- X M L M O D E L S --> 66 66 <bean id="Query.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 67 <property name=" FilePath" ref="Query.HTMLContent.XML.Path"/>67 <property name="filePath" ref="Query.HTMLContentXML.Path"/> 68 68 </bean> 69 69 <bean id="Query.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties"> … … 72 72 73 73 <bean id="Query.ModuleSelectionSystemID.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestPathInfo" parent="Common.XMLModelMap.CommonProperties"> 74 <property name=" FilePath" ref="Query.ModuleBase.XML.Path"/>74 <property name="filePath" ref="Query.ModuleXML.Path"/> 75 75 </bean> 76 76 … … 133 133 <ref bean="Query.HTMLContent.ModelMap"/> 134 134 <ref bean="Query.DefaultHTMLContent.ModelMap"/> 135 <ref bean="Common.OrgUnits.ModelMap"/> 135 136 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 136 137 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 145 146 <list> 146 147 <ref bean="Query.ModuleSelectionSystemID.ModelMap"/> 148 <ref bean="Common.OrgUnits.ModelMap"/> 147 149 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 148 150 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 159 161 <ref bean="Query.Module.ModifiedDate.ModelMap"/> 160 162 <ref bean="QueryDefinition.AddStickyDefinition.ModelMap"/> 163 <ref bean="Common.OrgUnits.ModelMap"/> 161 164 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 162 165 </list> … … 188 191 <ref bean="Query.Module.ChangeDisplay.ModelMap"/> 189 192 <ref bean="Query.Module.ModifiedDate.ModelMap"/> 193 <ref bean="Common.OrgUnits.ModelMap"/> 190 194 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 191 195 </list> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/query_definition.xml
r3727 r3743 36 36 <bean id="QueryDefinition.XML.Service" class="org.ibisph.querydefinition.service.QueryDefinitionXML"> 37 37 <property name="XMLPath" ref="QueryDefinition.XML.Path"/> 38 <property name="XMLDocumentService" ref="Common. BLOBStoredXML.Service"/>38 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 39 39 </bean> 40 40 <bean id="QueryDefinition.DefinitionToModule.Service" class="org.ibisph.querydefinition.service.QueryDefinitionXMLToQueryModuleXML"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/secure.xml
r3727 r3743 14 14 15 15 <!-- M O D E L S / C O N T R O L L E R R E S O R U C E S --> 16 <bean id="Secure.Selection .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">16 <bean id="Secure.SelectionXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 17 17 <property name="targetObject" ref="Common.Context.Servlet"/> 18 18 <property name="targetMethod" value="getRealPath"/> … … 20 20 </bean> 21 21 <bean id="Secure.DefaultSelection.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 22 <constructor-arg ref="Secure.Selection .XML.Path"/>22 <constructor-arg ref="Secure.SelectionXML.Path"/> 23 23 <constructor-arg value="Index.xml"/> 24 24 </bean> 25 <bean id="Secure.QueryModule Base.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">25 <bean id="Secure.QueryModuleXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 26 26 <property name="targetObject" ref="Common.Context.Servlet"/> 27 27 <property name="targetMethod" value="getRealPath"/> … … 32 32 33 33 <bean id="Secure.QueryModule.XML.Service" class="org.ibisph.querymodule.service.QueryModuleXML"> 34 <property name="XMLPath" ref="Secure.QueryModule Base.XML.Path"/>34 <property name="XMLPath" ref="Secure.QueryModuleXML.Path"/> 35 35 <property name="XMLDocumentService" ref="Query.QueryModule.XMLDocumentService"/> 36 36 </bean> … … 42 42 </bean> 43 43 <bean id="Secure.Selection.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 44 <property name=" FilePath" ref="Secure.Selection.XML.Path"/>44 <property name="filePath" ref="Secure.SelectionXML.Path"/> 45 45 </bean> 46 46 47 47 <bean id="Secure.Query.ModuleSelectionSystemID.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestPathInfo" parent="Common.XMLModelMap.CommonProperties"> 48 <property name=" FilePath" ref="Secure.QueryModuleBase.XML.Path"/>48 <property name="filePath" ref="Secure.QueryModuleXML.Path"/> 49 49 </bean> 50 50 <bean id="Secure.QueryModule.DocumentFromHTTPRequest.ModelMap" class="org.ibisph.querymodule.modelmap.QueryModuleFromHTTPRequest" parent="Common.XMLModelMap.CommonProperties"> … … 61 61 <ref bean="Secure.DefaultSelection.ModelMap"/> 62 62 <ref bean="Secure.UserAuthoritiesXML.ModelMap"/> 63 <ref bean="Common.OrgUnits.ModelMap"/> 63 64 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 64 65 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 74 75 <list> 75 76 <ref bean="Secure.Query.ModuleSelectionSystemID.ModelMap"/> 77 <ref bean="Common.OrgUnits.ModelMap"/> 76 78 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 77 79 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 86 88 <ref bean="Secure.QueryModule.DocumentFromHTTPRequest.ModelMap"/> 87 89 <ref bean="Query.Module.ModifiedDate.ModelMap"/> 90 <ref bean="Common.OrgUnits.ModelMap"/> 88 91 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 89 92 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 100 103 <ref bean="Query.Module.DeleteIBISQResult.ModelMap"/> 101 104 <ref bean="Query.Module.ModifiedDate.ModelMap"/> 105 <ref bean="Common.OrgUnits.ModelMap"/> 102 106 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 103 107 <ref bean="Common.HTTPRequestParameters.ModelMap"/> … … 115 119 <ref bean="Query.Module.ChangeDisplay.ModelMap"/> 116 120 <ref bean="Query.Module.ModifiedDate.ModelMap"/> 121 <ref bean="Common.OrgUnits.ModelMap"/> 117 122 <ref bean="Common.WebAppURLContextPrefixFromHTTPRequest.ModelMap"/> 118 123 <ref bean="Common.HTTPRequestParameters.ModelMap"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/security-xml_authentication.xml
r3727 r3743 24 24 <bean id="Security-XML.Authentication.UserDetails.Service" class="org.ibisph.user.springsecurity.XMLUserDetailsService"> 25 25 <property name="XMLPath" ref="Security-XML.UserXML.Path"/> 26 <property name="XMLDocumentService" ref="Common. FileStoredXML.Service"/>26 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 27 27 </bean> 28 28 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/user.xml
r3727 r3743 18 18 </bean> 19 19 20 <bean id="User.HTMLContent .XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">20 <bean id="User.HTMLContentXML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 21 21 <property name="targetObject" ref="Common.Context.Servlet"/> 22 22 <property name="targetMethod" value="getRealPath"/> … … 31 31 32 32 <bean id="User.RegistartionStatus.HTMLContent.XML.SystemID" class="org.ibisph.systemid.FileSystemID"> 33 <constructor-arg ref="User.HTMLContent .XML.Path"/>33 <constructor-arg ref="User.HTMLContentXML.Path"/> 34 34 <constructor-arg value="Status.xml"/> 35 35 </bean> … … 125 125 <bean id="User.XML.Service" class="org.ibisph.user.service.UserProfileXML"> 126 126 <property name="XMLPath" ref="User.XML.Path"/> 127 <property name="XMLDocumentService" ref="Common.BLOBStoredXML.Service"/>127 <property name="XMLDocumentService" ref="Common.XMLDocument.Service"/> 128 128 </bean> 129 129 … … 241 241 </bean> 242 242 <bean id="User.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties"> 243 <property name=" FilePath" ref="User.HTMLContent.XML.Path"/>243 <property name="filePath" ref="User.HTMLContentXML.Path"/> 244 244 </bean> 245 245 … … 304 304 <ref bean="User.HTMLContent.ModelMap"/> 305 305 <ref bean="User.DefaultHTMLContent.ModelMap"/> 306 <ref bean="Common.OrgUnits.ModelMap"/> 306 307 <ref bean="Common.ModifiedDateFromFileSystemID.ModelMap"/> 307 308 <ref bean="Common.HTTPRequestParameters.ModelMap"/> -
trunk/src/main/webapps/ibisph-view/WEB-INF/web.xml
r3727 r3743 172 172 /WEB-INF/config/spring/home.xml 173 173 /WEB-INF/config/spring/publications.xml 174 /WEB-INF/config/spring/indicator .xml174 /WEB-INF/config/spring/indicator_blob.xml 175 175 /WEB-INF/config/spring/community.xml 176 176 /WEB-INF/config/spring/query.xml -
trunk/src/main/webapps/ibisph-view/xslt/html/Page.xslt
r3484 r3743 393 393 > 394 394 <xsl:param name="orgUnitName" select="if(string-length($Page.orgUnitName) = 0) then 'DEFAULT' else $Page.orgUnitName"/> 395 <xsl:param name="orgUnit" select="$Page.orgUnits/ ORG_UNIT[NAME=$orgUnitName]"/>395 <xsl:param name="orgUnit" select="$Page.orgUnits//ORG_UNIT[NAME=$orgUnitName]"/> 396 396 397 397 <xsl:if test="string-length($orgUnit/TITLE) > 0"> -
trunk/src/main/webapps/ibisph-view/xslt/html/indicator/index/categorized/Page.xslt
r3225 r3743 25 25 26 26 <xsl:param name="CategorizedIndexName"/> 27 28 <xsl:param name="CategorizedIndex.publishedProfilesXMLFilePath" select="'published_profiles.xml'"/> 29 30 31 <!-- changed 1/12/07 to accomodate the admin cat index preview 32 <xsl:param name="publishedIndicators" select="document('published_profiles.xml', /)/INDICATORS"/> 33 --> 34 <xsl:param name="publishedIndicators" select="document($CategorizedIndex.publishedProfilesXMLFilePath, /)/INDICATORS"/> 35 36 <xsl:param name="categorizedIndexes" select="/CATEGORIZED_INDEXES"/> 27 <xsl:param name="publishedIndicators" select="document('published_profiles.xml', /)"/> 28 <xsl:param name="categorizedIndexes" select="/CATEGORIZED_INDEXES"/> 37 29 38 30 <xsl:param name="indexTitle"> … … 216 208 --> 217 209 <xsl:choose> 218 <xsl:when test="exists($publishedIndicators/ INDICATOR[NAME=$indexElement/INDICATOR_NAME])">210 <xsl:when test="exists($publishedIndicators//INDICATOR[NAME=$indexElement/INDICATOR_NAME])"> 219 211 <a class="Document" title="Go to the Indicator Profile report page view." 220 href="{concat($ibis.urlPrefix, 'indicator/view/', $publishedIndicators/ INDICATOR[NAME=$indexElement/INDICATOR_NAME]/DEFAULT_INDICATOR_VIEW_NAME, '.html')}"212 href="{concat($ibis.urlPrefix, 'indicator/view/', $publishedIndicators//INDICATOR[NAME=$indexElement/INDICATOR_NAME]/DEFAULT_INDICATOR_VIEW_NAME, '.html')}" 221 213 > 222 214 <span class="Icon"/> … … 227 219 </xsl:when> 228 220 <xsl:otherwise> 229 <xsl:value-of select="$publishedIndicators/ INDICATOR[NAME=$indexElement/INDICATOR_NAME]/TITLE"/>221 <xsl:value-of select="$publishedIndicators//INDICATOR[NAME=$indexElement/INDICATOR_NAME]/TITLE"/> 230 222 </xsl:otherwise> 231 223 </xsl:choose> -
trunk/src/main/webapps/ibisph-view/xslt/html/indicator/profile/Graphic.xslt
r3225 r3743 127 127 <h2><xsl:value-of select="$indicatorView/SUPPLEMENTAL_IMAGE_TITLE"/></h2> 128 128 </xsl:if> 129 <img src="{$indicatorView/SUPPLEMENTAL_IMAGE_URL}"/>129 <img width="590" src="{$indicatorView/SUPPLEMENTAL_IMAGE_URL}"/> 130 130 <br/> 131 131 -
trunk/src/main/webapps/ibisph-view/xslt/html/indicator/profile/Indicator.xslt
r3738 r3743 404 404 <xsl:param name="relatedIndicatorNames" select=" 405 405 if($previewFlag)then $relation/RELATED_INDICATOR_NAMES/RELATED_INDICATOR_NAME 406 else $relation/RELATED_INDICATOR_NAMES/RELATED_INDICATOR_NAME[text() = $Indicator.publishedIndicators/ INDICATOR/NAME]"406 else $relation/RELATED_INDICATOR_NAMES/RELATED_INDICATOR_NAME[text() = $Indicator.publishedIndicators//INDICATOR/NAME]" 407 407 /> 408 408 … … 418 418 <ul> 419 419 <xsl:for-each select="$relatedIndicatorNames"> 420 421 420 <xsl:variable name="indicatorXMLFilename" select="concat(current(), '.xml')"/> 421 <xsl:variable name="indicator" select="document($indicatorXMLFilename, /)/INDICATOR"/> 422 422 <li> 423 423 <a href="{if($previewFlag) then '#' else concat($ibis.urlPrefix, 'indicator/view/', $indicator/DEFAULT_INDICATOR_VIEW_NAME, '.html')}">
Note: See TracChangeset
for help on using the changeset viewer.