You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/03/02 16:53:42 UTC
svn commit: r1296264 -
/incubator/airavata/trunk/modules/registry-migrator/src/main/java/org/apache/airavata/migrator/registry/MigrationUtil.java
Author: heshan
Date: Fri Mar 2 15:53:41 2012
New Revision: 1296264
URL: http://svn.apache.org/viewvc?rev=1296264&view=rev
Log:
AIRAVATA-328 Setting the outputs to service.
Modified:
incubator/airavata/trunk/modules/registry-migrator/src/main/java/org/apache/airavata/migrator/registry/MigrationUtil.java
Modified: incubator/airavata/trunk/modules/registry-migrator/src/main/java/org/apache/airavata/migrator/registry/MigrationUtil.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/registry-migrator/src/main/java/org/apache/airavata/migrator/registry/MigrationUtil.java?rev=1296264&r1=1296263&r2=1296264&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/registry-migrator/src/main/java/org/apache/airavata/migrator/registry/MigrationUtil.java (original)
+++ incubator/airavata/trunk/modules/registry-migrator/src/main/java/org/apache/airavata/migrator/registry/MigrationUtil.java Fri Mar 2 15:53:41 2012
@@ -55,7 +55,7 @@ public class MigrationUtil {
input.setParameterName(inputParamName);
//TODO properly set the type
- String en = inputParameterType.getType();
+ String type = inputParameterType.getType();
input.setParameterType(StringParameterType.Factory.newInstance());
inputList.add(input);
}
@@ -63,16 +63,16 @@ public class MigrationUtil {
serv.getType().setInputParametersArray(inputParamList);
}
- org.ogce.schemas.gfac.documents.OutputParameterType[] outputParameterTypes = serviceBean.getOutputParam();
+ ArrayList<ParamObject> outputParameterTypes = serviceBean.getMethodBean().getOutputParms();
List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();
if (outputParameterTypes != null){
- for (org.ogce.schemas.gfac.documents.OutputParameterType outputParameterType : outputParameterTypes) {
- String outputParamName = outputParameterType.getParameterName();
+ for (ParamObject outputParameterType : outputParameterTypes) {
+ String outputParamName = outputParameterType.getName();
OutputParameterType output = OutputParameterType.Factory.newInstance();
output.setParameterName(outputParamName);
- //TODO
- org.ogce.schemas.gfac.documents.OutputDataType.Enum en = outputParameterType.getParameterType();
+ //TODO properly set the type
+ String en = outputParameterType.getType();
output.setParameterType(StringParameterType.Factory.newInstance());
outputList.add(output);