}
public static UserConfigurationData getUserConfigData (ConfigDataResource resource) throws RegistryException {
if (resource != null){
UserConfigurationData data = new UserConfigurationData();
data.setAiravataAutoSchedule(resource.isAiravataAutoSchedule());
data.setOverrideManualScheduledParams(resource.isOverrideManualParams());
data.setShareExperimentPublicly(resource.isShareExp());
ExperimentResource experimentResource = resource.getExperimentResource();
String expID = experimentResource.getExpID();
if (experimentResource.isExists(ResourceType.COMPUTATIONAL_RESOURCE_SCHEDULING, expID)){
ComputationSchedulingResource computationScheduling = experimentResource.getComputationScheduling(expID);
data.setComputationalResourceScheduling(getComputationalResourceScheduling(computationScheduling));
}
if (experimentResource.isExists(ResourceType.ADVANCE_INPUT_DATA_HANDLING, expID)){
AdvanceInputDataHandlingResource inputDataHandling = experimentResource.getInputDataHandling(expID);
data.setAdvanceInputDataHandling(getAdvanceInputDataHandling(inputDataHandling));
}
if (experimentResource.isExists(ResourceType.ADVANCE_OUTPUT_DATA_HANDLING, expID)){
AdvancedOutputDataHandlingResource outputDataHandling = experimentResource.getOutputDataHandling(expID);
data.setAdvanceOutputDataHandling(getAdvanceOutputDataHandling(outputDataHandling));
}
if (experimentResource.isExists(ResourceType.QOS_PARAM, expID)){
QosParamResource qoSparams = experimentResource.getQOSparams(expID);
data.setQosParams(getQOSParams(qoSparams));
}
return data;
}
return null;
}