Changeset 3727 in main
- Timestamp:
- 04/18/12 17:32:43 (10 years ago)
- Location:
- trunk/src/main
- Files:
-
- 9 added
- 1 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/org/ibisph/indicatorprofile/service/PublishedIndicatorsXML.java
r3535 r3727 24 24 protected String activeFlag = "x"; 25 25 26 protected File publishedIndicatorsFile= null;26 protected String publishedIndicatorsPathAndFilename = null; 27 27 protected String indicatorProfileXMLPath = null; 28 28 29 protected org.ibisph.xml. dao.Document documentDAO= null;29 protected org.ibisph.xml.service.Document xmlDocumentService = null; 30 30 31 31 protected org.ibisph.filebackup.FileBackupFactory fileBackupFactory = null; … … 41 41 ) throws java.net.URISyntaxException { 42 42 java.net.URI uri = new java.net.URI(publishedIndicatorProfilesSystemID.toString()); 43 this.publishedIndicatorsFile = new java.io.File(uri);43 // this.publishedIndicatorsPathAndFilename = new java.io.File(uri); 44 44 } //-------------------------- End of Method ------------------------------ 45 45 … … 67 67 * Sets the DAO object that will be used to save the XML content with. 68 68 * This simply keeps with the plugable Spring framework. 69 * @param documentDAO Standard Document DAO used to save the XML document 70 * to disk. 71 */ 72 public void setDocumentDAO(org.ibisph.xml.dao.Document documentDAO) {this.documentDAO = documentDAO;} 69 * @param xmlDocumentService Document DAO type service used to persist the XML. 70 */ 71 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) { 72 this.xmlDocumentService = xmlDocumentService; 73 } //-------------------------- End of Method ------------------------------ 73 74 74 75 /** … … 88 89 */ 89 90 public Document getPublishedIndicators() throws Exception { 90 Document document = documentDAO.get(this.publishedIndicatorsFile);91 Document document = xmlDocumentService.get(this.publishedIndicatorsPathAndFilename); 91 92 if(document == null) document = XMLLib.newDocument("INDICATORS"); 92 93 return(document); … … 184 185 StringBuffer actionsReturnMessage = new StringBuffer(); 185 186 org.ibisph.filebackup.FileBackup fileBackup = null; 186 if(this.fileBackupFactory != null) fileBackup = this.fileBackupFactory.newFileBackup(publishedIndicators File);187 if(this.fileBackupFactory != null) fileBackup = this.fileBackupFactory.newFileBackup(publishedIndicatorsPathAndFilename); 187 188 try { 188 189 // Note: used null output format so that the pretty printer would be used. … … 190 191 // messed if the standard output format (which works great for indicator 191 192 // xml) is used??? 192 documentDAO.save(publishedIndicators, publishedIndicatorsFile);193 xmlDocumentService.save(publishedIndicators, publishedIndicatorsPathAndFilename); 193 194 actionsReturnMessage.append("Published indicator profiles document saved to XML file. "); 194 195 } … … 196 197 actionsReturnMessage.append("Problem saving the published indicator profiles file. "); 197 198 if(fileBackup != null) { 198 publishedIndicatorsFile.delete();199 // publishedIndicatorsPathAndFilename.delete(); 199 200 fileBackup.restore(); 200 201 } … … 215 216 public synchronized String verifyPublishedIndicatorsXMLFile() throws Exception { 216 217 StringBuffer statusMessage = new StringBuffer(); 217 statusMessage.append("Checking Published Indicators XML File ").append(this.publishedIndicatorsFile.getName());218 if(this.publishedIndicatorsFile.exists()) {219 statusMessage.append(". File exists.");220 }221 else {222 statusMessage.append(". File DOES NOT EXIST. Recreating it. Status: ");223 statusMessage.append(createPublishedIndicatorsXMLFile());224 }218 // statusMessage.append("Checking Published Indicators XML File ").append(this.publishedIndicatorsPathAndFilename.getName()); 219 // if(this.publishedIndicatorsPathAndFilename.exists()) { 220 // statusMessage.append(". File exists."); 221 // } 222 // else { 223 // statusMessage.append(". File DOES NOT EXIST. Recreating it. Status: "); 224 // statusMessage.append(createPublishedIndicatorsXMLFile()); 225 // } 225 226 logger.info(".verifyPublishedIndicatorsXMLFile - status: {}", statusMessage); 226 227 return(statusMessage.toString()); … … 237 238 238 239 String directoryPath = this.indicatorProfileXMLPath; 239 if(directoryPath == null) directoryPath = IOPath.getPath( this.publishedIndicatorsFile.getAbsolutePath() );240 // if(directoryPath == null) directoryPath = IOPath.getPath( this.publishedIndicatorsPathAndFilename.getAbsolutePath() ); 240 241 File directory = new File(directoryPath); 241 242 String[] xmlFiles = directory.list( new XMLFileNameFilter() ); … … 244 245 org.ibisph.filebackup.FileBackup fileBackup = null; 245 246 if(this.fileBackupFactory != null) 246 fileBackup = this.fileBackupFactory.newFileBackup(publishedIndicators File);247 else if(this.publishedIndicatorsFile.exists())248 this.publishedIndicatorsFile.delete();247 fileBackup = this.fileBackupFactory.newFileBackup(publishedIndicatorsPathAndFilename); 248 // else if(this.publishedIndicatorsPathAndFilename.exists()) 249 // this.publishedIndicatorsPathAndFilename.delete(); 249 250 Document publishedProfilesDocument = getPublishedIndicators(); 250 251 Document indicatorProfileDocument; … … 252 253 try { 253 254 for(int i=0; i < xmlFiles.length; i++) { 254 indicatorProfileDocument = documentDAO.get( IOPath.concat(directoryPath, xmlFiles[i]));255 indicatorProfileDocument = xmlDocumentService.get( IOPath.concat(directoryPath, xmlFiles[i])); 255 256 if(indicatorProfileDocument.getRootElement().getName().equals("INDICATOR")) { 256 257 actionsReturnMessage.append( … … 264 265 actionsReturnMessage.append("Problem saving the published indicator profiles file. "); 265 266 if(fileBackup != null) { 266 this.publishedIndicatorsFile.delete();267 // this.publishedIndicatorsPathAndFilename.delete(); 267 268 fileBackup.restore(); 268 269 } -
trunk/src/main/java/org/ibisph/jdbc/JDBCTemplate.java
r3726 r3727 220 220 } 221 221 catch(SQLException ex) { 222 logException("setPreparedStatement BLOB", "Position: "+ position+ ", inputStream: "+inputStream, ex);222 logException("setPreparedStatementInputStream", "Position: "+ position+ ", inputStream: "+inputStream, ex); 223 223 } 224 224 return(false); … … 227 227 public boolean setPreparedStatementBlob(int position, byte[] byteArray) { 228 228 ByteArrayInputStream bais = new ByteArrayInputStream(byteArray); 229 try { 230 preparedStatement.setBinaryStream(position, bais); 231 // setPreparedStatementInputStream(position, bais); 232 return(true); 233 } 234 catch(SQLException ex) { 235 logException("setPreparedStatementBLOB", "Position: "+ position+ ", byteArray length: "+byteArray.length, ex); 236 } 237 finally { 238 try { bais.close(); } 239 catch(Exception e) {} 240 } 241 return(false); 242 } //-------------------------- End of Method ------------------------------ 243 244 245 246 247 229 return( 230 setPreparedStatementInputStream(position, bais) 231 ); 232 } //-------------------------- End of Method ------------------------------ 248 233 249 234 -
trunk/src/main/java/org/ibisph/querydefinition/service/QueryDefinitionXML.java
r3679 r3727 1 1 package org.ibisph.querydefinition.service; 2 2 3 import java.io.IOException;4 3 import java.util.Date; 5 4 6 5 import org.dom4j.Document; 7 import org.dom4j.DocumentException;8 6 import org.dom4j.Element; 9 7 … … 20 18 protected static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(QueryDefinitionXML.class); 21 19 20 protected String queryDefinitionsRootElementName = "QUERY_DEFINITIONS"; 22 21 protected String xmlPath = ""; 23 24 protected String queryDefinitionsRootElementName = "QUERY_DEFINITIONS"; 25 protected org.ibisph.xml.dao.Document documentDAO = new org.ibisph.xml.dao.Document(); 22 protected org.ibisph.xml.service.Document xmlDocumentService = null; 26 23 27 24 28 25 //------------------------------------------- P R O P E R T Y S E T T E R S 29 30 /**31 * Sets the DAO object that will be used to save the XML content with.32 * This simply keeps with the plugable Spring framework.33 * @param documentDAO Standard Document DAO used to save the XML document34 * to disk.35 */36 public void setDocumentDAO(org.ibisph.xml.dao.Document documentDAO) {37 this.documentDAO = documentDAO;38 } //-------------------------- End of Method ------------------------------39 26 40 27 /** … … 46 33 } //-------------------------- End of Method ------------------------------ 47 34 35 /** 36 * Sets the DAO object that will be used to save the XML content with. 37 * This simply keeps with the plugable Spring framework. 38 * @param xmlDocumentService Service/DAO used to save the XML document to disk. 39 */ 40 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) { 41 this.xmlDocumentService = xmlDocumentService; 42 } //-------------------------- End of Method ------------------------------ 43 48 44 49 45 //-------------------------------------------- P U B L I C S E R V I C E S 50 46 51 public Document getQueryDefinitions(String queryDefinitionsName) throws DocumentException {47 public Document getQueryDefinitions(String queryDefinitionsName) throws Exception { 52 48 String filename = getQueryDefinitionsXMLPathAndFilename(queryDefinitionsName); 53 Document document = this. documentDAO.get(filename);49 Document document = this.xmlDocumentService.get(filename); 54 50 if(document == null) { 55 51 document = XMLLib.newDocument(this.queryDefinitionsRootElementName); … … 62 58 Document queryDefinitionsDocument, 63 59 String queryDefinitionsName 64 ) throws IOException {60 ) throws Exception { 65 61 XMLLib.setElementText(queryDefinitionsDocument.getRootElement(), "NAME", queryDefinitionsName); 66 62 String filename = getQueryDefinitionsXMLPathAndFilename(queryDefinitionsName); 67 this. documentDAO.save(queryDefinitionsDocument, filename);63 this.xmlDocumentService.save(queryDefinitionsDocument, filename); 68 64 } //-------------------------- End of Method ------------------------------ 69 65 70 66 71 public void saveQueryDefinition( 72 String queryDefinitionsName, 73 Element queryDefinition 74 ) throws IOException, DocumentException { 67 public void saveQueryDefinition(String queryDefinitionsName, Element queryDefinition) throws Exception { 75 68 Date now = new Date(); 76 69 XMLLib.replaceElement(queryDefinition, XMLLib.newElement("MODIFIED_DATE", now.toString())); … … 83 76 84 77 85 public Element getQueryDefinition( 86 String queryDefinitionsName, 87 String queryDefinitionName 88 ) throws IOException, DocumentException { 78 public Element getQueryDefinition(String queryDefinitionsName, String queryDefinitionName) throws Exception { 89 79 Document queryDefinitions = this.getQueryDefinitions(queryDefinitionsName); 90 80 return( (Element)XMLLib.getNode(queryDefinitions, "/QUERY_DEFINITIONS/QUERY_DEFINITION[NAME='" + queryDefinitionName + "']") ); -
trunk/src/main/java/org/ibisph/querymodule/service/QueryModuleXML.java
r3654 r3727 1 1 package org.ibisph.querymodule.service; 2 2 3 import java.util.HashMap; 3 4 import java.util.Map; 4 import java.util.HashMap;5 5 6 6 import org.dom4j.Document; … … 10 10 import org.ibisph.util.StrLib; 11 11 import org.ibisph.util.XMLLib; 12 import org.ibisph.xml.service.XIncludeDocument; 12 13 13 14 /** … … 25 26 private static long loadCount = 0L; // used to track number of times query modules are loaded. 26 27 27 protected String xmlPath 28 protected Object documentDAO= null;28 protected String xmlPath = null; 29 protected XIncludeDocument xmlDocumentService = null; 29 30 30 31 … … 56 57 * Sets the XML DAO to be used to load the query module file. This usually 57 58 * is an XInclude XSLT transformation DAO or a straight XML file reader etc. 58 * @param documentDAODAO to be used.59 * @param xmlDocumentService DAO to be used. 59 60 */ 60 public void setDocumentDAO(Object documentDAO) {this.documentDAO = documentDAO;} 61 public void setXMLDocumentService(XIncludeDocument xmlDocumentService) { 62 this.xmlDocumentService = xmlDocumentService; 63 } 61 64 62 65 /** … … 86 89 String configurationName = IOPath.getFilenameWithoutExtension(configurationPath); 87 90 String xmlFilename = IOPath.concat(xmlPath, IOPath.getPath(configurationPath) + ".xml"); 88 if( documentDAO instanceof org.ibisph.xml.dao.XIncludeDocument) {91 if(xmlDocumentService instanceof org.ibisph.xml.service.XIncludeDocument) { 89 92 HashMap<String, Object> parameterMap = new HashMap<String, Object>(); 90 93 parameterMap.put(transformationConfigurationNameParameterName, configurationName); 91 queryModule = ((org.ibisph.xml. dao.XIncludeDocument)documentDAO).get(xmlFilename, parameterMap);92 } 93 else if( documentDAO instanceof org.ibisph.xml.dao.Document)94 queryModule = ((org.ibisph.xml. dao.Document)documentDAO).get(xmlFilename);94 queryModule = ((org.ibisph.xml.service.XIncludeDocument)xmlDocumentService).get(xmlFilename, parameterMap); 95 } 96 else if(xmlDocumentService instanceof org.ibisph.xml.service.Document) 97 queryModule = ((org.ibisph.xml.service.Document)xmlDocumentService).get(xmlFilename); 95 98 96 99 // create the new query module object and populate with the just acquired -
trunk/src/main/java/org/ibisph/user/service/UserProfileXML.java
r3715 r3727 1 1 package org.ibisph.user.service; 2 2 3 import java.io.IOException;4 3 5 4 import org.dom4j.Document; 6 import org.dom4j.DocumentException;7 5 8 6 import org.ibisph.util.IOPath; … … 21 19 22 20 protected String userRootElementName = "USER"; 23 protected org.ibisph.xml. dao.Document documentDAO = new org.ibisph.xml.dao.Document();21 protected org.ibisph.xml.service.Document xmlDocumentService = null; 24 22 25 23 … … 29 27 * Sets the DAO object that will be used to get/save the XML content with. 30 28 * This simply keeps with the plugable Spring framework. 31 * @param documentDAO Standard Document DAO used to save the XML document 32 * to disk. 29 * @param xmlDocumentService Standard Document DAO used to persist the XML document. 33 30 */ 34 public void set DocumentDAO(org.ibisph.xml.dao.Document documentDAO) {35 this. documentDAO = documentDAO;31 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) { 32 this.xmlDocumentService = xmlDocumentService; 36 33 } //-------------------------- End of Method ------------------------------ 37 34 … … 47 44 //-------------------------------------------- P U B L I C S E R V I C E S 48 45 49 public Document getUser(String userName) throws DocumentException {46 public Document getUser(String userName) throws Exception { 50 47 String filename = getXMLPathAndFilename(userName); 51 Document document = this. documentDAO.get(filename);48 Document document = this.xmlDocumentService.get(filename); 52 49 // if(document == null) { 53 50 // document = XMLLib.newDocument(this.userRootElementName); … … 57 54 } //-------------------------- End of Method ------------------------------ 58 55 59 public void saveUser(Document userDocument) throws IOException {56 public void saveUser(Document userDocument) throws Exception { 60 57 String id = XMLLib.getText(userDocument, "/USER/ID"); 61 58 String filename = getXMLPathAndFilename(id); 62 this. documentDAO.save(userDocument, filename);59 this.xmlDocumentService.save(userDocument, filename); 63 60 } //-------------------------- End of Method ------------------------------ 64 61 -
trunk/src/main/java/org/ibisph/user/springsecurity/XMLUserDetailsService.java
r3715 r3727 43 43 protected boolean enableGroups = true; 44 44 45 protected org.ibisph.xml. dao.Document documentDAO = new org.ibisph.xml.dao.Document();45 protected org.ibisph.xml.service.Document xmlDocumentService = null; 46 46 protected String xmlPath = ""; 47 47 //protected UserProfile userProfileXMLService = new UserProfile(); … … 67 67 68 68 /** 69 * Injects the XML DAO Service to be used to load the User Bean.70 * @param beanDAOService71 */72 // public void setUserProfileXMLService(UserProfile userProfileXMLService) {73 // this.userProfileXMLService = userProfileXMLService;74 // } //-------------------------- End of Method ------------------------------75 76 /**77 69 * Sets the DAO object that will be used to get/save the XML content with. 78 70 * This simply keeps with the plugable Spring framework. 79 * @param documentDAO Standard Document DAO used to save the XML document 80 * to disk. 81 */ 82 public void setDocumentDAO(org.ibisph.xml.dao.Document documentDAO) { 83 this.documentDAO = documentDAO; 71 * @param xmlDocumentService Standard Document DAO used to persist the XML document. 72 */ 73 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) { 74 this.xmlDocumentService = xmlDocumentService; 84 75 } //-------------------------- End of Method ------------------------------ 85 76 … … 104 95 // userDocument = userProfileXMLService.getUser(username); 105 96 String xmlFilename = IOPath.concat(this.xmlPath, username + ".xml"); 106 userDocument = this. documentDAO.get(xmlFilename);97 userDocument = this.xmlDocumentService.get(xmlFilename); 107 98 if(userDocument == null) { 108 99 throw new UsernameNotFoundException( -
trunk/src/main/java/org/ibisph/util/XMLLib.java
r3535 r3727 28 28 return(DocumentHelper.parseText(xmlString)); 29 29 } //------------------------------ End of Method --------------------------- 30 31 /** 32 * Localizes the parsing of an XML byte array into a new document. 33 * @param xmlByteArray XML structured byte array to be parsed. 34 * @return new Document based on the parsed XML. 35 * @throws DocumentException 36 */ 37 public static Document parseToNewDocument(byte[] xmlByteArray) throws DocumentException { 38 return(DocumentHelper.parseText(new String(xmlByteArray))); 39 } //------------------------------ End of Method --------------------------- 40 30 41 31 42 /** -
trunk/src/main/java/org/ibisph/xml/springmvc/RemotePublishRequestController.java
r3536 r3727 33 33 protected String destinationFilePath = null; 34 34 35 protected org.ibisph.xml. dao.Document documentDAO= null;35 protected org.ibisph.xml.service.Document xmlDocumentService = null; 36 36 37 37 protected org.ibisph.filebackup.FileBackupFactory fileBackupFactory = null; … … 55 55 * Sets the DAO object that will be used to save the XML content with. 56 56 * This simply keeps with the plugable Spring framework. 57 * @param documentDAO Standard Document DAO used to save the XML document 58 * to disk. 59 */ 60 public void setDocumentDAO(org.ibisph.xml.dao.Document documentDAO) {this.documentDAO = documentDAO;} 57 * @param xmlDocumentService Document DAO type service used to persist the XML. 58 */ 59 public void setXMLDocumentService(org.ibisph.xml.service.Document xmlDocumentService) { 60 this.xmlDocumentService = xmlDocumentService; 61 } //-------------------------- End of Method ------------------------------ 61 62 62 63 /** … … 225 226 } 226 227 227 documentDAO.save(document, filenameAndPath);228 xmlDocumentService.save(document, filenameAndPath); 228 229 responseMessage.append("Content saved to: ").append(filenameAndPath).append(". "); 229 230 } //-------------------------- End of Method ------------------------------ -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/common.xml
r3726 r3727 181 181 </bean> 182 182 183 <bean id="Common. XML.DAO" class="org.ibisph.xml.dao.Document">183 <bean id="Common.FileStoredXML.Service" class="org.ibisph.xml.service.FileStoredDocument"> 184 184 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 185 185 </bean> 186 <bean id="Common.BLOB.DAO" class="org.ibisph.xml.dao.BLOBDocument"> 187 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 188 <property name="JDBCTemplateFactory"> 189 <bean class="org.ibisph.jdbc.JDBCTemplateFactory"> 190 <property name="dataSource"> 191 <bean class="org.springframework.jndi.JndiObjectFactoryBean"> 192 <property name="jndiName" value="java:comp/env/jdbc/doh_ibisph"/> 193 </bean> 194 </property> 195 </bean> 196 </property> 197 </bean> 198 <!-- 199 <bean id="Common.JDBCTemplate.Factory" class="org.ibisph.jdbc.JDBCTemplateFactory"> 200 <property name="dataSource" ref="Common.DataSource.JNDI"/> 201 </bean> 202 <property name="JDBCTemplateFactory" ref="Common.JDBCTemplate.Factory"/> 203 --> 186 <bean id="Common.BLOBStoredXML.Service" class="org.ibisph.xml.service.BLOBStoredDocument"> 187 <property name="outputFormat" ref="Common.XML.OutputFormat"/> 188 <property name="JDBCTemplateFactory"> 189 <bean class="org.ibisph.jdbc.JDBCTemplateFactory"> 190 <property name="dataSource"> 191 <bean class="org.springframework.jndi.JndiObjectFactoryBean"> 192 <property name="jndiName" value="java:comp/env/jdbc/doh_ibisph"/> 193 </bean> 194 </property> 195 </bean> 196 </property> 197 </bean> 198 204 199 205 200 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/publish-remote.xml
r3687 r3727 88 88 <bean id="Publish.PublishedIndicators.Service" class="org.ibisph.indicatorprofile.service.PublishedIndicatorsXML"> 89 89 <property name="publishedIndicatorProfilesSystemID" ref="Indicator.PublishedIndicatorProfiles.XML.SystemID"/> 90 <property name="documentDAO" ref="Common.XML.DAO"/>90 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 91 91 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 92 92 <property name="indicatorProfileXMLPath" ref="Indicator.Profile.XML.Path"/> … … 99 99 <property name="baseRequestURL" ref="Common.AdminApp.CategorizedIndexXML.BaseURL"/> 100 100 <property name="destinationFilePath" ref="Indicator.XML.Path"/> 101 <property name="documentDAO" ref="Common.XML.DAO"/>101 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 102 102 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 103 103 </bean> … … 107 107 <property name="baseIndicatorViewRequestURL" ref="Common.AdminApp.IndicatorViewXML.BaseURL"/> 108 108 <property name="destinationFilePath" ref="Indicator.Profile.XML.Path"/> 109 <property name="documentDAO" ref="Common.XML.DAO"/>109 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 110 110 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 111 111 <property name="publishedIndicatorsService" ref="Publish.PublishedIndicators.Service"/> … … 115 115 <property name="baseRequestURL" ref="Common.AdminApp.OrgUnitsXML.BaseURL"/> 116 116 <property name="destinationFilePath" ref="Publish.OrgUnitsXML.Path"/> 117 <property name="documentDAO" ref="Common.XML.DAO"/>117 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 118 118 <property name="fileBackupFactory" ref="Publish.Versioned.FileBackupFactory"/> 119 119 </bean> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/query.xml
r3710 r3727 37 37 <constructor-arg value="xslt/xml/query/module/ConfigurationIncludeCriteriaExclude.xslt"/> 38 38 </bean> 39 <bean id="Query.QueryModule XML.DAO" class="org.ibisph.xml.dao.XIncludeDocument">39 <bean id="Query.QueryModule.XMLDocumentService" class="org.ibisph.xml.service.XIncludeDocument"> 40 40 <property name="xincludeXSLTSystemIDResource" ref="Query.ModuleXInclude.XSLT.SystemID"/> 41 41 <property name="transformation" ref="Common.XSLT.Transformation"/> … … 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.ModuleBase.XML.Path"/>58 <property name=" documentDAO" ref="Query.QueryModuleXML.DAO"/>57 <property name="XMLPath" ref="Query.ModuleBase.XML.Path"/> 58 <property name="XMLDocumentService" ref="Query.QueryModule.XMLDocumentService"/> 59 59 </bean> 60 60 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/query_definition.xml
r3726 r3727 35 35 <!-- S E R V I C E S --> 36 36 <bean id="QueryDefinition.XML.Service" class="org.ibisph.querydefinition.service.QueryDefinitionXML"> 37 <property name="XMLPath" ref="QueryDefinition.XML.Path"/>38 <property name=" documentDAO" ref="Common.BLOB.DAO"/>37 <property name="XMLPath" ref="QueryDefinition.XML.Path"/> 38 <property name="XMLDocumentService" ref="Common.BLOBStoredXML.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
r3710 r3727 32 32 33 33 <bean id="Secure.QueryModule.XML.Service" class="org.ibisph.querymodule.service.QueryModuleXML"> 34 <property name="XMLPath" ref="Secure.QueryModuleBase.XML.Path"/>35 <property name=" documentDAO" ref="Query.QueryModuleXML.DAO"/>34 <property name="XMLPath" ref="Secure.QueryModuleBase.XML.Path"/> 35 <property name="XMLDocumentService" ref="Query.QueryModule.XMLDocumentService"/> 36 36 </bean> 37 37 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/security-xml_authentication.xml
r3687 r3727 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=" documentDAO" ref="Common.XML.DAO"/>26 <property name="XMLDocumentService" ref="Common.FileStoredXML.Service"/> 27 27 </bean> 28 28 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/user.xml
r3726 r3727 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="documentDAO" ref="Common.XML.DAO"/>127 <property name="XMLDocumentService" ref="Common.BLOBStoredXML.Service"/> 128 128 </bean> 129 129 -
trunk/src/main/webapps/ibisph-view/WEB-INF/web.xml
r3726 r3727 43 43 44 44 <!-- =========================================== J N D I R E S O U R C E S --> 45 <!-- For a detailed discussion of J NDI resources, see the comments within46 the admin app's web.xml. This gist is that resource refs provide an47 a lias mechanism so that the app server can define the actual name45 <!-- For a detailed discussion of JDBC and JNDI resources, see the comments 46 within the admin app's web.xml. This gist is that resource refs provide 47 an alias mechanism so that the app server can define the actual name 48 48 according to their IT naming convention. An intermediary xml config/ 49 49 mapping file then maps the real JNDI server name with the aliased … … 51 51 entry is not needed. In the case of enterprise app servers it typically 52 52 is used. 53 53 --> 54 54 <resource-ref> 55 55 <description>Resource reference to the app server container managed JNDI database connection factory</description> … … 57 57 <res-ref-type>javax.sql.DataSource</res-ref-type> 58 58 <res-auth>Container</res-auth> 59 <res-sharing-scope>Shareable</res-sharing-scope> 59 60 </resource-ref> 60 -->61 61 <resource-ref> 62 62 <description>Resource reference to the app server container managed JNDI JavaMail factory</description>
Note: See TracChangeset
for help on using the changeset viewer.