Changeset 1316
- Timestamp:
- 12/19/11 16:17:04 (17 months ago)
- Location:
- raptor-web/trunk/src/main
- Files:
-
- 5 edited
-
java/uk/ac/cardiff/raptorweb/engine/RaptorWebEngine.java (modified) (1 diff)
-
java/uk/ac/cardiff/raptorweb/service/SetupService.java (modified) (1 diff)
-
java/uk/ac/cardiff/raptorweb/service/impl/SetupServiceImpl.java (modified) (1 diff)
-
webapp/WEB-INF/flows/reports/main-flow.xml (modified) (1 diff)
-
webapp/WEB-INF/flows/reports/setupRaptorWeb.xhtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/engine/RaptorWebEngine.java
r1207 r1316 318 318 319 319 /** 320 * Sends back to the attached MUA the current resource classification. 321 */ 322 public void sendResourceClassification() { 323 List<ResourceMetadata> resourceMetadata = currentlyAttachedCapabilities.getResourceMetadata(); 320 * Sends back to the attached MUA the resource classification <code>resourceMetadata</code>. 321 */ 322 public void sendResourceClassification(List<ResourceMetadata> resourceMetadata) { 324 323 serviceEndpointClient.sendResourceMetadata(resourceMetadata, attachedMUA); 325 324 -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/service/SetupService.java
r899 r1316 23 23 import uk.ac.cardiff.model.wsmodel.Capabilities; 24 24 import uk.ac.cardiff.raptorweb.model.MUAEntry; 25 import uk.ac.cardiff.raptorweb.model.SetupModel;26 25 import uk.ac.cardiff.raptorweb.model.WebSession; 27 26 28 27 /** 29 28 * @author philsmart 30 * 29 * 31 30 */ 32 31 public interface SetupService { 33 32 34 public List getStatisticalServices();33 public List getStatisticalServices(); 35 34 36 public void setAttachedEndpoint(WebSession websession);35 public void setAttachedEndpoint(WebSession websession); 37 36 38 /** 39 * performs the operation in place on the SetupModel 40 * @param model 41 */ 42 public void getCapabilities(WebSession websession); 37 /** 38 * performs the operation in place on the SetupModel 39 * 40 * @param model 41 */ 42 public void getCapabilities(WebSession websession); 43 43 44 public void deleteAllEntriesFromAttachedMUA(WebSession websession);44 public void deleteAllEntriesFromAttachedMUA(WebSession websession); 45 45 46 /** 47 * Check if there is at least one attached MUA 48 * @return 49 */ 50 public boolean getHasAttached(); 46 /** 47 * Check if there is at least one attached MUA 48 * 49 * @return 50 */ 51 public boolean getHasAttached(); 51 52 52 public Capabilities getAttachedCapabilities();53 public Capabilities getAttachedCapabilities(); 53 54 54 public MUAEntry getCurrentlyAttached(); 55 56 57 /** 58 * Upload all files currently stored in <code>websession.setupmodel.fileUpload</code> class. 59 * 60 * @param websession 61 */ 62 public void batchUpload(WebSession websession); 63 64 public void sendResourceClassification(); 55 public MUAEntry getCurrentlyAttached(); 56 57 /** 58 * Upload all files currently stored in <code>websession.setupmodel.fileUpload</code> class. 59 * 60 * @param websession 61 */ 62 public void batchUpload(WebSession websession); 63 64 /** 65 * Sends the resource classification list embedded in the <code>websession</code> to the MUA for storage. 66 * 67 * @param websession 68 * the {@link WebSession} that holds the resource metadata classification. 69 */ 70 public void sendResourceClassification(WebSession websession); 65 71 66 72 } -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/service/impl/SetupServiceImpl.java
r1207 r1316 85 85 } 86 86 87 public void sendResourceClassification( ) {88 webEngine.sendResourceClassification( );87 public void sendResourceClassification(WebSession websession) { 88 webEngine.sendResourceClassification(websession.getSetupmodel().getSelectEndpointCapabilities().getResourceMetadata()); 89 89 } 90 90 -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/main-flow.xml
r1207 r1316 155 155 156 156 <transition on="sendResourceClassification"> 157 <evaluate expression="setupService.sendResourceClassification( )" />157 <evaluate expression="setupService.sendResourceClassification(flowScope.websession)" /> 158 158 </transition> 159 159 -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/setupRaptorWeb.xhtml
r1311 r1316 135 135 <h:form id="resourceClassificationForm"> 136 136 <rich:scrollableDataTable 137 value="#{ setupService.attachedCapabilities.resourceMetadata}"137 value="#{flowScope.websession.setupmodel.selectEndpointCapabilities.resourceMetadata}" 138 138 bandingInterval="2" height="400px" banding="row" var="resource" 139 139 width="570px">
Note: See TracChangeset
for help on using the changeset viewer.
