Changeset 1207
- Timestamp:
- 12/04/11 23:06:31 (18 months ago)
- Location:
- raptor-web/trunk/src/main
- Files:
-
- 2 added
- 1 deleted
- 17 edited
- 5 moved
-
java/uk/ac/cardiff/raptorweb/engine/RaptorWebEngine.java (modified) (1 diff)
-
java/uk/ac/cardiff/raptorweb/model/GraphModel.java (modified) (5 diffs)
-
java/uk/ac/cardiff/raptorweb/model/MUAEntry.java (modified) (4 diffs)
-
java/uk/ac/cardiff/raptorweb/service/GraphService.java (modified) (1 diff)
-
java/uk/ac/cardiff/raptorweb/service/impl/GraphServiceImpl.java (modified) (3 diffs)
-
java/uk/ac/cardiff/raptorweb/service/impl/SetupServiceImpl.java (modified) (3 diffs)
-
webapp/WEB-INF/config/dashboard-statistics.xml (modified) (1 diff)
-
webapp/WEB-INF/config/metadata.xml (modified) (1 diff)
-
webapp/WEB-INF/config/mua-endpoints.xml (modified) (1 diff)
-
webapp/WEB-INF/config/raptorweb-servlet.xml (modified) (1 diff)
-
webapp/WEB-INF/config/security.xml (modified) (2 diffs)
-
webapp/WEB-INF/config/users.xml (modified) (1 diff)
-
webapp/WEB-INF/config/web-core.xml (modified) (1 diff)
-
webapp/WEB-INF/config/webflow-config.xml (modified) (2 diffs)
-
webapp/WEB-INF/flows/reports/about.xhtml (moved) (moved from raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/about.jspx) (3 diffs)
-
webapp/WEB-INF/flows/reports/addPostProcessorPanel.xhtml (moved) (moved from raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/postProcessorPanel.xhtml) (2 diffs)
-
webapp/WEB-INF/flows/reports/dashboard.xhtml (moved) (moved from raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/startReport.xhtml) (2 diffs)
-
webapp/WEB-INF/flows/reports/editPostProcessorPanel.xhtml (added)
-
webapp/WEB-INF/flows/reports/global-flow.xml (added)
-
webapp/WEB-INF/flows/reports/graphicalReports.xhtml (modified) (7 diffs)
-
webapp/WEB-INF/flows/reports/main-flow.xml (moved) (moved from raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/reports-flow.xml) (7 diffs)
-
webapp/WEB-INF/flows/reports/setupRaptorWeb.xhtml (modified) (3 diffs)
-
webapp/WEB-INF/flows/reports/viewStatistics.html (deleted)
-
webapp/WEB-INF/flows/reports/working-panel.xhtml (modified) (1 diff)
-
webapp/login.jsp (moved) (moved from raptor-web/trunk/src/main/webapp/login.html) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/engine/RaptorWebEngine.java
r1051 r1207 155 155 156 156 /** 157 * Gets the capabilites from the selectedEndpoint. This is a live lookup. 158 * 157 159 * @param selectedEndpoint 158 * @return 160 * the endpoint to get the capabilities of. 161 * @return the {@link Capabilities} of the selected endpoint. 159 162 */ 160 163 public Capabilities getCapabilities(MUAEntry selectedEndpoint) { 161 164 return serviceEndpointClient.discoverMUACapabilities(selectedEndpoint); 165 } 166 167 /** 168 * Gets the capabilites from the currently selected endpoint (held in <code>attachedMUA</code>). This is a live lookup. 169 * 170 * @return the {@link Capabilities} of the selected endpoint. 171 */ 172 public Capabilities getCapabilitiesOfCurrentlyAttachedEndpoint() { 173 return serviceEndpointClient.discoverMUACapabilities(attachedMUA); 162 174 } 163 175 -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/model/GraphModel.java
r1075 r1207 26 26 import uk.ac.cardiff.model.report.AggregatorGraphModel; 27 27 import uk.ac.cardiff.model.report.Series; 28 import uk.ac.cardiff.model.wsmodel.MethodParameter; 28 29 import uk.ac.cardiff.model.wsmodel.ProcessorInformation; 29 30 import uk.ac.cardiff.model.wsmodel.StatisticParameters.EventType; … … 76 77 77 78 private SuggestionValues suggestionValues; 79 80 /** Record for holding information about a new processor to add */ 81 private ProcessorInformation processorToAdd; 78 82 79 83 /** Selected series modal panel */ … … 104 108 } 105 109 110 public void initialiseNewProcessorAdd() { 111 processorToAdd = new ProcessorInformation(); 112 113 } 114 115 /** 116 * Makes a copy of any method parameters from the suggestion values, into the processorToAdd 117 */ 118 public void setupProcessorToAdd() { 119 if (processorToAdd != null) { 120 log.trace("Finding method parameters for {}", processorToAdd.getFriendlyName()); 121 List<ProcessorInformation> processorsInformation = suggestionValues.getPossiblePostProcessors(); 122 for (ProcessorInformation information : processorsInformation) { 123 if (information.getFriendlyName().equals(processorToAdd.getFriendlyName())) { 124 processorToAdd.setProcessorClass(information.getProcessorClass()); 125 if (information.getMethodParameters() != null) { 126 List<MethodParameter> parameters = new ArrayList<MethodParameter>(); 127 for (MethodParameter parameter : information.getMethodParameters()) { 128 MethodParameter parameterNew = new MethodParameter(); 129 log.debug("Setup parameter {}", parameter.getParameterName()); 130 parameterNew.setParameterName(parameter.getParameterName()); 131 parameterNew.setParameterType(parameter.getParameterType()); 132 parameterNew.setValueType(parameter.getValueType()); 133 parameters.add(parameterNew); 134 } 135 processorToAdd.setMethodParameters(parameters); 136 } else { 137 processorToAdd.setMethodParameters(null); 138 } 139 } 140 } 141 142 } 143 } 144 106 145 /** 107 146 * Set the old statistical unit to false, update it with the newly selected statisticalunit and set it to selected. … … 128 167 129 168 public List<String> getPossiblePostProcessorValues() { 130 // log.debug("Possible Post Values {}",suggestionValues.getPossiblePostProcessorValuesList().size()); 131 return (ArrayList<String>) suggestionValues.getPossiblePostProcessorValuesList(); 169 List<ProcessorInformation> processorsInformation = suggestionValues.getPossiblePostProcessors(); 170 List<String> possibles = new ArrayList<String>(); 171 for (ProcessorInformation information : processorsInformation) { 172 possibles.add(information.getFriendlyName()); 173 } 174 return possibles; 132 175 } 133 176 … … 296 339 } 297 340 341 /** 342 * @param processorToAdd 343 * the processorToAdd to set 344 */ 345 public void setProcessorToAdd(ProcessorInformation processorToAdd) { 346 this.processorToAdd = processorToAdd; 347 } 348 349 /** 350 * @return the processorToAdd 351 */ 352 public ProcessorInformation getProcessorToAdd() { 353 return processorToAdd; 354 } 355 298 356 } -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/model/MUAEntry.java
r899 r1207 23 23 /** 24 24 * @author philsmart 25 * 25 * 26 26 */ 27 27 public class MUAEntry implements Serializable { 28 28 29 29 private String serviceEndpoint; 30 30 31 private boolean isAttached; 31 32 … … 37 38 38 39 public void setServiceEndpoint(String serviceEndpoint) { 39 this.serviceEndpoint = serviceEndpoint;40 this.serviceEndpoint = serviceEndpoint; 40 41 } 41 42 42 43 public String getServiceEndpoint() { 43 return serviceEndpoint;44 return serviceEndpoint; 44 45 } 45 46 46 47 public void setIsAttached(boolean isAttached) { 47 this.isAttached = isAttached;48 this.isAttached = isAttached; 48 49 } 49 50 50 51 public boolean getIsAttached() { 51 return isAttached;52 return isAttached; 52 53 } 53 54 54 55 public String toString() { 55 StringBuilder result = new StringBuilder();56 result.append(this.getClass().getName());57 result.append("Object{");58 result.append(serviceEndpoint);59 result.append("}");60 return result.toString();56 StringBuilder result = new StringBuilder(); 57 result.append(this.getClass().getName()); 58 result.append("Object{"); 59 result.append(serviceEndpoint); 60 result.append("}"); 61 return result.toString(); 61 62 } 62 63 63 64 /** 64 * @param publicKey the publicKey to set 65 * @param publicKey 66 * the publicKey to set 65 67 */ 66 68 public void setPublicKey(String publicKey) { 67 this.publicKey = publicKey;69 this.publicKey = publicKey; 68 70 } 69 71 … … 72 74 */ 73 75 public String getPublicKey() { 74 return publicKey;76 return publicKey; 75 77 } 76 78 77 79 /** 78 * @param publicKeyPassword the publicKeyPassword to set 80 * @param publicKeyPassword 81 * the publicKeyPassword to set 79 82 */ 80 83 public void setPublicKeyPassword(String publicKeyPassword) { 81 this.publicKeyPassword = publicKeyPassword;84 this.publicKeyPassword = publicKeyPassword; 82 85 } 83 86 … … 86 89 */ 87 90 public String getPublicKeyPassword() { 88 return publicKeyPassword;91 return publicKeyPassword; 89 92 } 90 93 -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/service/GraphService.java
r1075 r1207 66 66 public void rerenderGraph(WebSession websession); 67 67 68 public void addP ostProcessorToSelectedStatistic(WebSession websession);68 public void addProcessorToSelectedStatistic(WebSession websession); 69 69 70 70 public void removePostProcessorFromSelectedStatistic(WebSession websession); -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/service/impl/GraphServiceImpl.java
r1075 r1207 27 27 import uk.ac.cardiff.model.report.AggregatorGraphModel; 28 28 import uk.ac.cardiff.model.wsmodel.Capabilities; 29 import uk.ac.cardiff.model.wsmodel.MethodParameter; 29 30 import uk.ac.cardiff.model.wsmodel.ProcessorInformation; 30 31 import uk.ac.cardiff.model.wsmodel.StatisticParameters.StatisticType; … … 73 74 } 74 75 75 public void addPostProcessorToSelectedStatistic(WebSession websession) { 76 ProcessorInformation information = new ProcessorInformation(); 77 information.setBeanName("Please Change"); 78 if (websession.getGraphmodel().getSuggestionValues().getPossiblePostProcessorValuesList() != null 79 && websession.getGraphmodel().getSuggestionValues().getPossiblePostProcessorValuesList().size() > 0) { 80 information.setBeanName(websession.getGraphmodel().getSuggestionValues().getPossiblePostProcessorValuesList().get(0)); 81 } 82 websession.getGraphmodel().getSelectedStatisticalUnit().getStatisticalUnitInformation().getPostprocessors().add(information); 76 public void addProcessorToSelectedStatistic(WebSession websession) { 77 ProcessorInformation processorToAdd = websession.getGraphmodel().getProcessorToAdd(); 78 log.debug("Adding processor [{} with parameters {}]", processorToAdd.getFriendlyName(), (processorToAdd.getMethodParameters() != null)); 79 80 if (processorToAdd.getMethodParameters() != null) { 81 for (MethodParameter methodParameter : processorToAdd.getMethodParameters()) { 82 log.debug("Parameter [{},{},{}]", new Object[] { methodParameter.getParameterName(), methodParameter.getValue(), methodParameter.getValue().getClass() }); 83 } 84 } 85 websession.getGraphmodel().getSelectedStatisticalUnit().getStatisticalUnitInformation().getPostprocessors().add(processorToAdd); 83 86 } 84 87 85 88 public void populateStatisticalUnits(WebSession websession) { 86 ArrayList<StatisticalUnitInformationView> statisticalUnitsForView = new ArrayList ();89 ArrayList<StatisticalUnitInformationView> statisticalUnitsForView = new ArrayList<StatisticalUnitInformationView>(); 87 90 List<StatisticalUnitInformation> units = getStatisticalUnits(); 88 91 for (StatisticalUnitInformation unit : units) { … … 139 142 } 140 143 141 @Override142 144 public void invokeStatisticalUnit(WebSession websession) { 143 145 GraphModel model = websession.getGraphmodel(); -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/service/impl/SetupServiceImpl.java
r899 r1207 24 24 import uk.ac.cardiff.raptorweb.engine.RaptorWebEngine; 25 25 import uk.ac.cardiff.raptorweb.model.MUAEntry; 26 import uk.ac.cardiff.raptorweb.model.SetupModel;27 26 import uk.ac.cardiff.raptorweb.model.WebSession; 28 27 import uk.ac.cardiff.raptorweb.service.SetupService; … … 61 60 } 62 61 62 public void getCapabilitiesOfCurrentlyAttachedEndpoint(WebSession websession) { 63 websession.getSetupmodel().setSelectEndpointCapabilities(webEngine.getCapabilitiesOfCurrentlyAttachedEndpoint()); 64 } 65 63 66 public void deleteAllEntriesFromAttachedMUA(WebSession websession) { 64 67 webEngine.deleteAllEntriesFromAttachedMUA(websession.getSetupmodel()); … … 81 84 82 85 } 83 84 public void sendResourceClassification() {86 87 public void sendResourceClassification() { 85 88 webEngine.sendResourceClassification(); 86 89 } -
raptor-web/trunk/src/main/webapp/WEB-INF/config/dashboard-statistics.xml
r899 r1207 20 20 xmlns:util="http://www.springframework.org/schema/util" 21 21 xsi:schemaLocation=" 22 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- 2.5.xsd22 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 23 23 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> 24 24 -
raptor-web/trunk/src/main/webapp/WEB-INF/config/metadata.xml
r899 r1207 21 21 xsi:schemaLocation=" 22 22 http://www.springframework.org/schema/beans 23 http://www.springframework.org/schema/beans/spring-beans- 2.5.xsd">23 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> 24 24 25 25 -
raptor-web/trunk/src/main/webapp/WEB-INF/config/mua-endpoints.xml
r899 r1207 21 21 xsi:schemaLocation=" 22 22 http://www.springframework.org/schema/beans 23 http://www.springframework.org/schema/beans/spring-beans- 2.5.xsd">23 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> 24 24 25 25 -
raptor-web/trunk/src/main/webapp/WEB-INF/config/raptorweb-servlet.xml
r899 r1207 19 19 <beans xmlns="http://www.springframework.org/schema/beans" 20 20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 21 xmlns:context="http://www.springframework.org/schema/context"22 21 xsi:schemaLocation=" 23 22 http://www.springframework.org/schema/beans 24 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 25 http://www.springframework.org/schema/context 26 http://www.springframework.org/schema/context/spring-context-2.5.xsd"> 23 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> 27 24 28 25 -
raptor-web/trunk/src/main/webapp/WEB-INF/config/security.xml
r899 r1207 20 20 <beans xmlns="http://www.springframework.org/schema/beans" 21 21 xmlns:s="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 22 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- 2.5.xsd22 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 23 23 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> 24 24 25 25 <s:http use-expressions="true"> 26 26 <s:intercept-url pattern="/spring/**" access="isAuthenticated()" /> 27 <s:form-login login-page='/login. html'/>27 <s:form-login login-page='/login.jsp' authentication-failure-url="/login.jsp?login_error=1"/> 28 28 <s:logout /> 29 29 <!-- spring will immediatly goto the logout.html before going back to the … … 36 36 and you end up with the timeout page whenever you logout --> 37 37 <s:session-management ><!-- invalid-session-url="/timeout.jsp">--> 38 <s:concurrency-control max-sessions=" 1"39 error-if-maximum-exceeded="true"/>38 <s:concurrency-control max-sessions="5" 39 /> 40 40 </s:session-management> 41 41 </s:http> -
raptor-web/trunk/src/main/webapp/WEB-INF/config/users.xml
r899 r1207 20 20 <beans xmlns="http://www.springframework.org/schema/beans" 21 21 xmlns:s="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 22 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- 2.5.xsd22 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 23 23 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> 24 24 -
raptor-web/trunk/src/main/webapp/WEB-INF/config/web-core.xml
r1075 r1207 86 86 <property name="triggers"> 87 87 <list> 88 <!-- <ref local="SystemStatsQuickTrigger"/>-->88 <!-- <ref local="SystemStatsQuickTrigger"/>--> 89 89 </list> 90 90 </property> -
raptor-web/trunk/src/main/webapp/WEB-INF/config/webflow-config.xml
r1051 r1207 23 23 xsi:schemaLocation=" 24 24 http://www.springframework.org/schema/beans 25 http://www.springframework.org/schema/beans/spring-beans- 2.5.xsd25 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 26 26 http://www.springframework.org/schema/webflow-config 27 27 http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd … … 33 33 34 34 <!-- The registry of executable flow definitions --> 35 <webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF/flows"> 36 <webflow:flow-location-pattern value="/**/*-flow.xml"/> 35 <webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices"> 36 <webflow:flow-location path="/WEB-INF/flows/reports/global-flow.xml" 37 id="globalflow" /> 38 <webflow:flow-location path="/WEB-INF/flows/reports/main-flow.xml" 39 id="reports" /> 37 40 </webflow:flow-registry> 38 41 -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/about.xhtml
r1199 r1207 1 <?xml version="1.0" encoding="ISO-8859-1"?>2 1 <!-- 3 2 … … 17 16 18 17 --> 18 <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 19 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 20 <ui:composition xmlns="http://www.w3.org/1999/xhtml" 21 xmlns:ui="http://java.sun.com/jsf/facelets" 22 xmlns:h="http://java.sun.com/jsf/html" 23 xmlns:f="http://java.sun.com/jsf/core" 24 xmlns:sf="http://www.springframework.org/tags/faces" 25 xmlns:a4j="http://richfaces.org/a4j" 26 xmlns:rich="http://richfaces.org/rich" 27 template="/templates/raptor/full.xhtml"> 19 28 20 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"21 xmlns:ui="http://java.sun.com/jsf/facelets"22 xmlns:h="http://java.sun.com/jsf/html"23 xmlns:f="http://java.sun.com/jsf/core"24 xmlns:tr="http://myfaces.apache.org/trinidad">25 26 <ui:composition template="/templates/raptor/full.xhtml">27 29 28 30 <ui:define name="content"> … … 59 61 60 62 </ui:define> 61 </ui:composition> 62 </jsp:root> 63 </ui:composition> -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/addPostProcessorPanel.xhtml
r1199 r1207 26 26 xmlns:rich="http://richfaces.org/rich"> 27 27 28 <rich:modalPanel id="addPostProcessorPanel" width="400" height=" 100"28 <rich:modalPanel id="addPostProcessorPanel" width="400" height="200" 29 29 zindex="900"> 30 30 <f:facet name="header"> … … 39 39 </h:panelGroup> 40 40 </f:facet> 41 < a4j:form id="addPostProcessorForm">41 <h:form id="addPostProcessorForm"> 42 42 43 <rich:comboBox rendered="#{not empty flowScope.websession.graphmodel.selectedStatisticalUnit.statisticalUnitInformation}" 44 value="none" 45 suggestionValues="#{flowScope.websession.graphmodel.possiblePostProcessorValues}" /> 46 47 <a4j:commandButton value="Save" 48 onclick="#{rich:component('addPostProcessorPanel')}.hide()" /> 49 <!-- return false, after onclick nothing else is done e.g. a form submit --> 50 <a4j:commandButton value="Close" 51 onclick="#{rich:component('addPostProcessorPanel')}.hide(); return false;" /> 43 <center> 44 <rich:panel> 45 <rich:comboBox 46 value="#{flowScope.websession.graphmodel.processorToAdd.friendlyName}" 47 width="300px" 48 suggestionValues="#{flowScope.websession.graphmodel.possiblePostProcessorValues}"> 49 <a4j:support event="onselect" action="setupProcessorToAdd" 50 reRender="addPostProcessorForm" /> 51 </rich:comboBox> 52 </rich:panel> 53 <rich:spacer height="10px" /> 52 54 53 </a4j:form> 55 <rich:dataTable id="newProcessorTable" 56 value="#{flowScope.websession.graphmodel.processorToAdd.methodParameters}" 57 var="method"> 58 59 <rich:column> 60 <f:facet name="header"> 61 <h:outputText value="Field Name" /> 62 </f:facet> 63 <h:outputText value="#{method.parameterName}" /> 64 </rich:column> 65 <rich:column> 66 <f:facet name="header"> 67 <h:outputText value="Value" /> 68 </f:facet> 69 <h:inputText id="PI_I" value="#{method.value}" required="true" 70 rendered="#{method.valueType eq 'java.lang.Integer'}"> 71 <f:converter converterId="javax.faces.Integer" /> 72 </h:inputText> 73 74 <h:inputText id="PI_S" value="#{method.value}" required="true" 75 rendered="#{method.valueType eq 'java.lang.String'}"> 76 </h:inputText> 77 78 <rich:comboBox id="PI_B" value="#{method.value}" required="true" rendered="#{method.valueType eq 'java.lang.Boolean'}"> 79 <f:selectItem itemValue="true" /> 80 <f:selectItem itemValue="false" /> 81 <f:converter converterId="javax.faces.Boolean" /> 82 </rich:comboBox> 83 84 </rich:column> 85 </rich:dataTable> 86 87 <rich:spacer height="10px" /> 88 <h:commandButton value="Save" 89 action="addProcessorToSelectedStatistic" 90 oncomplete="#{rich:component('addPostProcessorPanel')}.hide()" 91 reRender="optionsPanelForm" /> 92 <!-- return false, after onclick nothing else is done e.g. a form submit --> 93 <h:commandButton value="Close" 94 onclick="#{rich:component('addPostProcessorPanel')}.hide(); return false;" /> 95 </center> 96 </h:form> 54 97 55 98 </rich:modalPanel> -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/dashboard.xhtml
r1199 r1207 147 147 <h:outputText value="#{columns}" /> 148 148 </f:facet> 149 <h:outputText value="#{unit[index]}" /> 149 <center> 150 <h:outputText value="#{unit[index]}"> 151 <f:convertNumber pattern="###,###,###" /> 152 </h:outputText> 153 </center> 150 154 </rich:columns> 151 155 </rich:dataTable> … … 164 168 <h:outputText value="#{columns}" /> 165 169 </f:facet> 166 <h:outputText value="#{unit[index]}" /> 170 <center> 171 <h:outputText value="#{unit[index]}"> 172 <f:convertNumber pattern="###,###,###" /> 173 </h:outputText> 174 </center> 167 175 </rich:columns> 168 176 </rich:dataTable> -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/graphicalReports.xhtml
r1084 r1207 31 31 <a4j:include viewId="working-panel.xhtml" /> 32 32 <a4j:include viewId="seriesPanel.xhtml" /> 33 <a4j:include viewId="postProcessorPanel.xhtml" /> 33 <a4j:include viewId="addPostProcessorPanel.xhtml" /> 34 <a4j:include viewId="editPostProcessorPanel.xhtml" /> 34 35 35 36 <rich:layout> 36 37 37 38 <rich:layoutPanel position="top"> 38 < a4j:status id="stateStatus" startText="Working..."39 startStyle="background-color:#ADDFFF; font-weight:bold; position: absolute; right: 5px; top: 1px; width: 80px;" /> 39 <!-- <a4j:status id="stateStatus" startText="Working..." 40 startStyle="background-color:#ADDFFF; font-weight:bold; position: absolute; right: 5px; top: 1px; width: 80px;" /> --> 40 41 41 42 <rich:simpleTogglePanel switchType="server" label="Control Panel" … … 63 64 </f:facet> 64 65 <a4j:commandLink ajaxSingle="true" 66 onclick="#{rich:component('workingPanel')}.show();" 67 oncomplete="#{rich:component('workingPanel')}.hide();" 65 68 value="#{unit.statisticalUnitInformation.statisticParameters.unitName}" 66 69 action="invokeStatisticalUnit" … … 95 98 </f:facet> 96 99 </rich:dataTable> 100 <rich:panel> 101 <h:outputText value="Processing Status:" 102 style="font-weight: bold;" /> 103 <h:outputText 104 value="#{flowScope.websession.graphmodel.processingResult}" /> 105 </rich:panel> 106 97 107 </a4j:form> 98 108 </rich:layoutPanel> … … 184 194 <f:facet name="footer"> 185 195 <h:panelGroup style="display:block; text-align:center"> 186 <a4j:commandButton ajaxSingle="false" value="update"> 196 <a4j:commandButton ajaxSingle="false" value="update" 197 onclick="#{rich:component('workingPanel')}.show();"> 187 198 <!-- added the support here, as the command button needs to submit the form properties, which it only does 188 199 with ajaxSingle="false", then invoke the action, which only happens when ajaxSingle="true" --> 189 200 <a4j:support ajaxSingle="true" event="oncomplete" 201 oncomplete="#{rich:component('workingPanel')}.hide();" 190 202 action="updateMUAStatistic" 191 203 reRender="optionsPanelForm,controlPanelForm, chartForm" /> … … 208 220 <h:outputText value="Post Processors" /> 209 221 </f:facet> 210 <h:outputText value="#{processor.beanName}"/> 211 <!-- <rich:comboBox value="#{processor.beanName}" width="220px" 212 suggestionValues="#{flowScope.websession.graphmodel.possiblePostProcessorValues}"> 213 <a4j:support event="onselect" ajaxSingle="true" /> 214 </rich:comboBox> --> 222 <h:outputText value="#{processor.friendlyName}" /> 223 215 224 </rich:column> 216 217 <!-- <rich:column> 225 226 <rich:column> 227 <f:facet name="header"> 228 <h:outputText value="Edit" /> 229 </f:facet> 230 <a4j:commandLink immediate="true" oncomplete="#{rich:component('editPostProcessorPanel')}.show();" 231 id="editPostProcessorLink" reRender="editProcessorTable"> 232 <h:graphicImage 233 style="width:20px; border:0; margin-left: auto;margin-right: auto;" 234 value="/image/icon/onebit_20.png" /> 235 <f:setPropertyActionListener value="#{processor}" 236 target="#{flowScope.websession.graphmodel.selectedPostProcessor}" /> 237 </a4j:commandLink> 238 239 </rich:column> 240 241 <rich:column> 218 242 <f:facet name="header"> 219 243 <h:outputText value="Remove" /> … … 230 254 </a4j:commandLink> 231 255 232 </rich:column> -->233 234 < !-- <f:facet name="footer">256 </rich:column> 257 258 <f:facet name="footer"> 235 259 <a4j:commandLink immediate="true" id="postProcessorLink" 236 action="addPostProcessorToSelectedStatistic" 237 reRender="optionsPanelForm,postProcessorTable"> 260 oncomplete="#{rich:component('addPostProcessorPanel')}.show();" 261 action="initialiseNewProcessorAdd" 262 reRender="addPostProcessorForm"> 238 263 <h:graphicImage id="addPostProcessorImage" 239 264 style="width:20px;" value="/image/icon/onebit_31.png" /> 240 265 </a4j:commandLink> 241 266 242 </f:facet> -->267 </f:facet> 243 268 </rich:dataTable> 244 269 … … 322 347 323 348 </rich:dataTable> 324 <rich:spacer height="10px" />349 <rich:spacer height="10px" /> 325 350 <rich:panel> 326 <h:outputText value=" Processing Status:"351 <h:outputText value="Option Errors:" 327 352 style="font-weight: bold;" /> 328 <h:outputText 329 value="#{flowScope.websession.graphmodel.processingResult}" /> 353 <h:messages style="font-weight: bold; color:red; font-size:90%" showDetail="#{false}" showSummary="#{true}"/> 330 354 </rich:panel> 331 355 -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/main-flow.xml
r1199 r1207 16 16 17 17 --> 18 <flow xmlns="http://www.springframework.org/schema/webflow"18 <flow parent="globalflow" xmlns="http://www.springframework.org/schema/webflow" 19 19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 20 20 xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"> … … 33 33 </on-start> 34 34 35 36 <!-- <global-transitions>37 <transition on="login" to="login" />38 <transition on="logout" to="logout" />39 </global-transitions> -->40 35 41 36 42 <view-state id="startReport" view=" startReport.xhtml">37 <view-state id="startReport" view="dashboard.xhtml"> 43 38 44 39 <on-entry> … … 50 45 </transition> 51 46 52 <transition on="graphTrans" to="graphicalReports" /> 53 <transition on="setupTrans" to="setupRaptorWeb" /> 54 <transition on="aboutTrans" to="about" /> 55 <transition on="homeTrans" to="startReport" /> 47 56 48 </view-state> 57 49 58 <view-state id="about" view="about.jspx"> 59 <transition on="graphTrans" to="graphicalReports" /> 60 <transition on="setupTrans" to="setupRaptorWeb" /> 61 <transition on="aboutTrans" to="about" /> 62 <transition on="homeTrans" to="startReport" /> 50 <view-state id="about" view="about.xhtml"> 51 63 52 </view-state> 64 53 65 54 <view-state id="graphicalReports" view="graphicalReports.xhtml"> 55 56 <var name="processorToAdd" class="uk.ac.cardiff.model.wsmodel.ProcessorInformation"/> 66 57 67 58 <!-- populate the statisticalunit list --> … … 94 85 <evaluate expression="graphService.generatePDFReport(flowScope.websession)"/> 95 86 </transition> 87 88 <transition on="initialiseNewProcessorAdd"> 89 <evaluate expression="flowScope.websession.graphmodel.initialiseNewProcessorAdd()"/> 90 </transition> 91 92 <transition on="setupProcessorToAdd"> 93 <evaluate expression="flowScope.websession.graphmodel.setupProcessorToAdd()"/> 94 </transition> 95 96 96 97 97 <transition on="removeSeriesFromSelectedStatistic"> … … 107 107 </transition> 108 108 109 <transition on="addP ostProcessorToSelectedStatistic">110 <evaluate expression="graphService.addP ostProcessorToSelectedStatistic(flowScope.websession)"></evaluate>109 <transition on="addProcessorToSelectedStatistic"> 110 <evaluate expression="graphService.addProcessorToSelectedStatistic(flowScope.websession)"></evaluate> 111 111 </transition> 112 112 … … 124 124 125 125 126 127 <transition on="graphTrans" to="graphicalReports" />128 <transition on="setupTrans" to="setupRaptorWeb" />129 <transition on="aboutTrans" to="about" />130 <transition on="homeTrans" to="startReport" />131 132 133 126 </view-state> 134 127 … … 136 129 137 130 <view-state id="setupRaptorWeb" view="setupRaptorWeb.xhtml"> 138 <!-- used to help with the setup configuration --> 139 <transition on="graphTrans" to="graphicalReports" /> 140 <transition on="setupTrans" to="setupRaptorWeb" /> 141 <transition on="aboutTrans" to="about" /> 142 <transition on="homeTrans" to="startReport" /> 131 132 <on-entry> 133 <!-- get capabilities every time the web page is rendered, hence resource classification is up to date --> 134 <evaluate expression="setupService.getCapabilitiesOfCurrentlyAttachedEndpoint(flowScope.websession)" /> 135 </on-entry> 136 137 143 138 139 <!-- force update of capabilities --> 144 140 <transition on="getAggregatorCapabilities"> 145 141 <evaluate expression="setupService.getCapabilities(flowScope.websession)" /> -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/setupRaptorWeb.xhtml
r1053 r1207 122 122 </rich:layout> 123 123 124 <rich:separator /> 125 <rich:spacer height="10px" /> 126 <center> 127 <h2>Attached Aggregator Information</h2> 128 </center> 129 <rich:spacer height="5px" /> 130 <h:panelGrid columns="1"> 131 <h:outputText 132 value="Organisation Name: #{setupService.attachedCapabilities.metadata.organisationName}" /> 133 <h:outputText 134 value="Contact: #{setupService.attachedCapabilities.metadata.contactEmail}" /> 135 <h:outputText 136 value="Endpoint: #{setupService.currentlyAttached.serviceEndpoint}" /> 137 <h:outputText 138 value="Stored Events #{setupService.attachedCapabilities.numberOfAuthenticationsStored}" /> 139 </h:panelGrid> 124 125 140 126 </rich:tab> 141 127 <rich:tab name="resourceClassification" … … 146 132 <center> 147 133 <h2>Resource Classification</h2> 148 <rich:spacer height="15px" />134 <rich:spacer height="15px" /> 149 135 150 136 <h:form id="resourceClassificationForm"> … … 276 262 </rich:tab> 277 263 278 <!--<rich:tab name="preferencesSetup" label="User Preferences" /> 279 280 --> 264 <rich:tab name="DatabaseSetup" label="Aggregator Information"> 265 <rich:layout> 266 <rich:layoutPanel position="top"> 267 <rich:spacer height="15px" /> 268 <center> 269 <h2>Attached Aggregator Information</h2> 270 <p>Warning, this information is cached and will refresh 271 periodically</p> 272 </center> 273 274 </rich:layoutPanel> 275 <rich:layoutPanel position="left"> 276 277 278 <center> 279 <h:panelGrid columns="2"><h:outputText style="font-weight:bold;" 280 value="MUA Version: " /> 281 <h:outputText 282 value="#{setupService.attachedCapabilities.muaVersion}" /> 283 <h:outputText style="font-weight:bold;" 284 value="Organisation Name: " /> 285 <h:outputText 286 value="#{setupService.attachedCapabilities.metadata.organisationName}" /> 287 <h:outputText style="font-weight:bold;" value="Contact: " /> 288 <h:outputText 289 value="#{setupService.attachedCapabilities.metadata.contactEmail}" /> 290 <h:outputText style="font-weight:bold;" value="Endpoint URL: " /> 291 <h:outputText 292 value=" #{setupService.currentlyAttached.serviceEndpoint}" /> 293 <h:outputText style="font-weight:bold;" 294 value="Total Stored Events: " /> 295 <h:outputText 296 value="#{setupService.attachedCapabilities.numberOfAuthenticationsStored}" /> 297 <h:outputText style="font-weight:bold;" value="Earilest Event: " /> 298 <h:outputText 299 value="#{setupService.attachedCapabilities.earliestEventTime}" /> 300 <h:outputText style="font-weight:bold;" value="Latest Event: " /> 301 <h:outputText 302 value="#{setupService.attachedCapabilities.latestEventTime}" /> 303 304 </h:panelGrid> 305 </center> 306 </rich:layoutPanel> 307 308 <rich:layoutPanel position="right"> 309 <center> 310 <rich:dataTable 311 value="#{setupService.attachedCapabilities.eventsPerType}" 312 bandingInterval="2" banding="row" var="eventInfo"> 313 <rich:column> 314 <f:facet name="header"> 315 <h:outputText value="Event Type" /> 316 </f:facet> 317 <h:outputText value="#{eventInfo.eventTypeName}" /> 318 </rich:column> 319 <rich:column> 320 <f:facet name="header"> 321 <h:outputText value="Event Count" /> 322 </f:facet> 323 <h:outputText value="#{eventInfo.noOfEvents}" /> 324 </rich:column> 325 326 </rich:dataTable> 327 </center> 328 </rich:layoutPanel> 329 </rich:layout> 330 </rich:tab> 331 281 332 </rich:tabPanel> 282 333 -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/working-panel.xhtml
r899 r1207 16 16 17 17 --> 18 <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 19 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 18 20 19 <ui:composition xmlns="http://www.w3.org/1999/xhtml" 21 xmlns:ui="http://java.sun.com/jsf/facelets" 22 xmlns:h="http://java.sun.com/jsf/html" 23 xmlns:f="http://java.sun.com/jsf/core" 24 xmlns:sf="http://www.springframework.org/tags/faces" 25 xmlns:a4j="http://richfaces.org/a4j" 26 xmlns:rich="http://richfaces.org/rich"> 20 xmlns:ui="http://java.sun.com/jsf/facelets" 21 xmlns:h="http://java.sun.com/jsf/html" 22 xmlns:f="http://java.sun.com/jsf/core" 23 xmlns:sf="http://www.springframework.org/tags/faces" 24 xmlns:a4j="http://richfaces.org/a4j" 25 xmlns:rich="http://richfaces.org/rich" 26 xmlns:c="http://java.sun.com/jstl/core"> 27 <style type="text/css"> 27 28 28 <rich:modalPanel id="workingPanel" height="120" width="100" 29 .rich-mpnl-body {padding:0px; } 30 31 .panel{ overflow: auto!important; height:520px; width:99%; padding:0px } 32 </style> 33 34 <rich:modalPanel id="workingPanel" style="background-color:white" height="48" width="48" 29 35 zindex="200"> 30 <f:facet name="header"> 31 <h:outputText value="Working ..." style="padding-right:15px;" /> 32 </f:facet> 33 <h:graphicImage value="/image/ajax-loader.gif"/> 36 37 <div align="center"> 38 <h:graphicImage 39 value="/image/ajax-loader-1.gif" style="border:0" align="center" /></div> 40 34 41 <f:facet name="footer"> 35 42 <h:outputText value="Working ..." style="padding-right:15px;" /> 36 43 </f:facet> 37 44 </rich:modalPanel> 38 39 45 </ui:composition> -
raptor-web/trunk/src/main/webapp/login.jsp
r1199 r1207 19 19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > 20 20 21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 21 22 22 23 <html> … … 88 89 </td> 89 90 </tr> 90 </table> 91 <input type='checkbox' name='_spring_security_remember_me' /> 92 Remember me on this computer. 91 </table> 93 92 </form> 93 <c:if test="${not empty param.login_error and param.login_error eq 1}"> <div class="error"><p style="color:red">Invalid Username or Password</p></div></c:if> 94 94 </div></td> 95 95 <td width="10%"></td>
Note: See TracChangeset
for help on using the changeset viewer.
