Changeset 3081
- Timestamp:
- 08/27/11 21:34:15 (9 months ago)
- Location:
- trunk/src/main
- Files:
-
- 6 added
- 4 deleted
- 12 edited
-
db/mysql/replace_ut_with_ak.sql (added)
-
java/org/ibisph/listener/ConfigureLogback.java (added)
-
java/org/ibisph/listener/LogbackConfigListener.java (deleted)
-
java/org/ibisph/mvc/controller/AbstractModelAndView.java (modified) (1 diff)
-
java/org/ibisph/mvc/controller/xml/XMLModelAndDate.java (modified) (1 diff)
-
java/org/ibisph/mvc/controller/xml/query/IBISQResult.java (added)
-
java/org/ibisph/mvc/controller/xml/query/Result.java (modified) (4 diffs)
-
java/org/ibisph/mvc/controller/xml/secure/AddUserSecurityContextRolesAsParametersXMLModelAndDate.java (deleted)
-
java/org/ibisph/mvc/controller/xml/secure/UserAuthoritiesToXMLParameter.java (added)
-
java/org/ibisph/security/CreateUserDetailsAndLogUserPreAuthenticationProcessingFilter.java (added)
-
webapps/ibisph-admin/WEB-INF/lib/ibisph-2.0.0.jar (deleted)
-
webapps/ibisph-admin/WEB-INF/web.xml (modified) (1 diff)
-
webapps/ibisph-view/WEB-INF/config/spring/dispatcher_servlet.xml (modified) (1 diff)
-
webapps/ibisph-view/WEB-INF/config/spring/query.xml (modified) (2 diffs)
-
webapps/ibisph-view/WEB-INF/lib/ibisph-2.0.0.jar (deleted)
-
webapps/ibisph-view/WEB-INF/web.xml (modified) (1 diff)
-
webapps/ibisph-view/css/_default.css (modified) (1 diff)
-
webapps/ibisph-view/css/header.css (modified) (1 diff)
-
webapps/ibisph-view/css/siteNavigationMenu.css (modified) (1 diff)
-
webapps/ibisph-view/image/background.gif (added)
-
webapps/ibisph-view/image/header.gif (modified) (previous)
-
webapps/ibisph-view/xslt/html/Page.xslt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/org/ibisph/mvc/controller/AbstractModelAndView.java
r3013 r3081 169 169 * Spring Controller handleRequest implementation. This is the main action 170 170 * handler that sets the model and specifies the view to be used. Called by 171 * the Spring Framework's RequestDispatcher servlet based on the URL mapping. 171 * the AbstractController's handleRequest (which does some request method type 172 * checking, some cache checking, and session checking). The handleRequest 173 * is called via Spring Framework's RequestDispatcher servlet and is based on 174 * the URL mapping. 172 175 * 173 176 * @param request HTTP Servlet Request passed from the servlet. -
trunk/src/main/java/org/ibisph/mvc/controller/xml/XMLModelAndDate.java
r2197 r3081 190 190 if(this.includeRequestParameters) { 191 191 String paramName, paramValue; 192 java.util.Enumeration parameterName = request.getParameterNames();192 java.util.Enumeration<String> parameterName = request.getParameterNames(); 193 193 while( parameterName.hasMoreElements() ) { 194 paramName = (String)parameterName.nextElement();194 paramName = parameterName.nextElement(); 195 195 paramValue = request.getParameter(paramName); 196 196 parametersMap.put(paramName, paramValue); -
trunk/src/main/java/org/ibisph/mvc/controller/xml/query/Result.java
r2773 r3081 3 3 import org.ibisph.util.NetLib; 4 4 import org.ibisph.util.StrLib; 5 import org.ibisph.util.XMLLib;6 5 7 6 /** … … 67 66 * measure and chart name values. The view is responsible for recognizing 68 67 * what to display and if the page needs a redirect. Both of these items are 69 * determined by whether a QUERY_RESULT element is present. If present then70 * display the data. If not then display the please wait and do a Result get.71 * The controller will then inspect the user's query module object from their72 * session and will invoke the approp business rules.68 * determined by whether a IBISQ_QUERY_RESULT element is present. If present 69 * then display the data. If not then display the please wait and do a 70 * Result get. The controller will then inspect the user's query module 71 * object from their session and will invoke the approp business rules. 73 72 * 74 73 * @param request Provides access to the HTTP request which the XML System ID … … 111 110 // add the result to the query module object, and set the result date time. 112 111 else if(!this.queryModuleService.hasQueryResponse(queryModule)) { 113 String url = this.queryModuleService.getBaseQueryApplicationURL(queryModule); 114 if(url == null) url = this.queryApplicationURL; 115 url = url + "?" + this.queryModuleService.getQueryURLParameters(queryModule, this.urlCharacterEncoding, this.controlParameterPrefix); 116 this.queryModuleService.setCompleteQueryURL(queryModule, url); 117 this.queryModuleService.setRequestSubmittedDateTimeStamp(queryModule, queryDateFormat.format(new java.util.Date())); 118 String queryResult = null; 119 try { 120 queryResult = NetLib.getURLContent(url, username, password); 121 if(!StrLib.isSomething(queryResult)) 122 this.queryModuleService.setRequestError(queryModule, 123 "Query Application did NOT respond", 124 "This is typically a network connection problem." 125 ); 126 else { 127 logger.debug(".getXMLModelAndDate - Query Result Content: {}", queryResult); 128 this.queryModuleService.setQueryResult(queryModule, queryResult); 129 this.queryModuleService.setResultGroupByDimensionNames(queryModule); 130 } 131 } 132 catch(Exception e) { 133 // clear so doesn't throw although maybe should throw with approp message. 134 // typically when this happens it is using the query proxy and the URL 135 // contains a "<=" type sequence which the dest tomcat can't handle. 136 logger.error(".getXMLModelAndDate - Exception with getting Query Result. URL: " + url, e); 137 logger.debug(".getXMLModelAndDate - Query result problem content: {}", queryResult); 138 139 if(e instanceof org.dom4j.DocumentException) 140 this.queryModuleService.setRequestError( 141 queryModule, 142 "IBIS-Q returned malformed/invalid XML.", 143 "This is typically backend module configuration problem. Parsing Exception: "+e.getMessage(), 144 queryResult 145 ); 146 else if(e instanceof java.io.FileNotFoundException) 147 this.queryModuleService.setRequestError( 148 queryModule, 149 "Could not locate the requested Query server.", 150 "This is typically a network connection problem or using the proxy and the query contains a <= parameter." 151 ); 152 else 153 this.queryModuleService.setRequestError( 154 queryModule, 155 "Problem processing the query result XML.", e.getMessage() 156 ); 157 } 158 this.queryModuleService.setRequestFinishedDateTimeStamp( queryModule, queryDateFormat.format(new java.util.Date()) ); 112 getResultAndProcess(request, queryModule); 159 113 } 160 114 … … 174 128 } // ---------------------------End of method------------------------------- 175 129 130 131 /** 132 * Helper that localizes getting the IBISQ result and adding results to the 133 * query module XML. 134 * @param request 135 * @param queryModule 136 * @throws Exception 137 */ 138 protected void getResultAndProcess( 139 javax.servlet.http.HttpServletRequest request, 140 org.dom4j.Document queryModule 141 ) throws Exception { 142 String url = this.queryModuleService.getBaseQueryApplicationURL(queryModule); 143 if(url == null) url = this.queryApplicationURL; 144 url = url + "?" + this.queryModuleService.getQueryURLParameters(queryModule, this.urlCharacterEncoding, this.controlParameterPrefix); 145 this.queryModuleService.setCompleteQueryURL(queryModule, url); 146 this.queryModuleService.setRequestSubmittedDateTimeStamp(queryModule, queryDateFormat.format(new java.util.Date())); 147 String queryResult = null; 148 try { 149 queryResult = NetLib.getURLContent(url, username, password); 150 if(!StrLib.isSomething(queryResult)) 151 this.queryModuleService.setRequestError(queryModule, 152 "Query Application did NOT respond", 153 "This is typically a network connection problem." 154 ); 155 else { 156 logger.debug(".getXMLModelAndDate - Query Result Content: {}", queryResult); 157 this.queryModuleService.setQueryResult(queryModule, queryResult); 158 this.queryModuleService.setResultGroupByDimensionNames(queryModule); 159 } 160 } 161 catch(Exception e) { 162 // clear so doesn't throw although maybe should throw with approp message. 163 // typically when this happens it is using the query proxy and the URL 164 // contains a "<=" type sequence which the dest tomcat can't handle. 165 logger.error(".getXMLModelAndDate - Exception with getting Query Result. URL: " + url, e); 166 logger.debug(".getXMLModelAndDate - Query result problem content: {}", queryResult); 167 168 if(e instanceof org.dom4j.DocumentException) 169 this.queryModuleService.setRequestError( 170 queryModule, 171 "IBIS-Q returned malformed/invalid XML.", 172 "This is typically backend module configuration problem. Parsing Exception: "+e.getMessage(), 173 queryResult 174 ); 175 else if(e instanceof java.io.FileNotFoundException) 176 this.queryModuleService.setRequestError( 177 queryModule, 178 "Could not locate the requested Query server.", 179 "This is typically a network connection problem or using the proxy and the query contains a <= parameter." 180 ); 181 else 182 this.queryModuleService.setRequestError( 183 queryModule, 184 "Problem processing the query result XML.", e.getMessage() 185 ); 186 } 187 this.queryModuleService.setRequestFinishedDateTimeStamp( queryModule, queryDateFormat.format(new java.util.Date()) ); 188 } // ---------------------------End of method------------------------------- 189 176 190 } // ============================= End of Class ================================= -
trunk/src/main/webapps/ibisph-admin/WEB-INF/web.xml
r3016 r3081 298 298 to be defined above (which specifies the config file to be used). 299 299 </description> 300 <listener-class>org.ibisph.listener. LogbackConfigListener</listener-class>300 <listener-class>org.ibisph.listener.ConfigureLogback</listener-class> 301 301 </listener> 302 302 -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/dispatcher_servlet.xml
r2936 r3081 77 77 <prop key="/query/result/**/*.html" >Query.Result.Controller</prop> 78 78 <prop key="/query/result/**/*.xls" >Query.Result.Controller</prop> <!-- put here so can plug in Excel specifici controller in the future. --> 79 79 <prop key="/query/result/**/*.xml" >Query.IBISQResult.Controller</prop> 80 80 <prop key="/query/result/graphic/Map/**/*.*">Query.MapGraphic.Controller</prop> 81 81 <prop key="/query/result/graphic/**/*.*" >Query.ChartGraphic.Controller</prop> -
trunk/src/main/webapps/ibisph-view/WEB-INF/config/spring/query.xml
r2508 r3081 86 86 <property name="queryModuleService"> <ref bean="Query.Module.Service"/></property> 87 87 <property name="view"> <ref bean="Query.Builder.View"/></property> 88 <property name="XMLDateFormat"> <ref bean="Common.DateFormat"/></property>88 <property name="XMLDateFormat"> <ref bean="Common.DateFormat"/></property> 89 89 <property name="XMLDateParameterName"><ref bean="Common.XMLDateParameterName"/></property> 90 90 <property name="noCacheHTTPHeader"> <value>true</value></property> … … 117 117 <property name="view"><ref bean="Query.MapGraphic.View"/></property> 118 118 <property name="noCacheHTTPHeader"><value>true</value></property> 119 </bean> 120 121 <bean id="Query.IBISQResult.Controller" class="org.ibisph.mvc.controller.xml.query.IBISQResult"> 122 <property name="queryModuleService"> <ref bean="Query.Module.Service"/></property> 123 <property name="XMLDateFormat"> <ref bean="Common.DateFormat"/></property> 124 <property name="XMLDateParameterName"><ref bean="Common.XMLDateParameterName"/></property> 125 <property name="noCacheHTTPHeader"> <value>true</value></property> 119 126 </bean> 120 127 -
trunk/src/main/webapps/ibisph-view/WEB-INF/web.xml
r3016 r3081 322 322 to be defined above (which specifies the config file to be used). 323 323 </description> 324 <listener-class>org.ibisph.listener. LogbackConfigListener</listener-class>324 <listener-class>org.ibisph.listener.ConfigureLogback</listener-class> 325 325 </listener> 326 326 -
trunk/src/main/webapps/ibisph-view/css/_default.css
r2832 r3081 19 19 } 20 20 21 21 22 body 22 23 { 23 width: 755px;24 width: 100%; 24 25 height: 100%; 25 margin: 0px; /* see collapsing margins if margin and padding not specified */26 padding: 0 px; /* can't set for NN 4.x tables and assoc elements - messes things up */27 background -color: #cccccc;26 margin: 0; 27 padding: 0; /* can't set for NN 4.x tables and assoc elements - messes things up */ 28 background: url('http://www.hss.state.ak.us/css/images/background.gif') repeat-x #003366; 28 29 font-size: 0.75em; /* .70 (IE) -72 (FF)=original small. 75%=little bit bigger */ 29 30 } 30 31 32 33 div.Body 34 { 35 width: 755px; 36 margin: auto; /* centers block on page - whole point of this container */ 37 padding-top: 20px; 38 } 31 39 32 40 -
trunk/src/main/webapps/ibisph-view/css/header.css
r2832 r3081 19 19 #siteHeader 20 20 { 21 height: 95px;22 background: whiteurl(../image/header.gif) no-repeat left top;21 height: 105px; 22 background: transparent url(../image/header.gif) no-repeat left top; 23 23 24 24 position: relative; /* so that the pf and menu will be relative */ -
trunk/src/main/webapps/ibisph-view/css/siteNavigationMenu.css
r1891 r3081 30 30 float: left; 31 31 width: 100%; 32 top: 49px;32 top: 59px; 33 33 left: 155px; 34 34 padding: 0; -
trunk/src/main/webapps/ibisph-view/xslt/html/Page.xslt
r3053 r3081 407 407 <xsl:template name="Page._body" ibis:doc="Produces the HTML BODY element and contents."> 408 408 <body id="_body"> 409 <xsl:call-template name="Page.header"/> 410 <xsl:call-template name="Page.body"/> 411 <xsl:call-template name="Page.footer"/> 409 <div class="Body"> 410 <xsl:call-template name="Page.header"/> 411 <xsl:call-template name="Page.body"/> 412 <xsl:call-template name="Page.footer"/> 413 </div> 412 414 </body> 413 415 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.