Search in sources :

Example 86 with InputDataObjectType

use of org.apache.airavata.model.application.io.InputDataObjectType in project airavata by apache.

the class ApplicationRegister method createAppInput.

protected InputDataObjectType createAppInput(String inputName, String value, DataType type, String applicationArgument, int order, boolean isRequired, boolean requiredToCMD, boolean stdIn, String description, String metadata) {
    InputDataObjectType input = new InputDataObjectType();
    if (inputName != null)
        input.setName(inputName);
    if (value != null)
        input.setValue(value);
    if (type != null)
        input.setType(type);
    if (applicationArgument != null)
        input.setApplicationArgument(applicationArgument);
    input.setInputOrder(order);
    input.setIsRequired(isRequired);
    input.setRequiredToAddedToCommandLine(requiredToCMD);
    if (description != null)
        input.setUserFriendlyDescription(description);
    input.setStandardInput(stdIn);
    if (metadata != null)
        input.setMetaData(metadata);
    return input;
}
Also used : InputDataObjectType(org.apache.airavata.model.application.io.InputDataObjectType)

Aggregations

InputDataObjectType (org.apache.airavata.model.application.io.InputDataObjectType)86 OutputDataObjectType (org.apache.airavata.model.application.io.OutputDataObjectType)60 TException (org.apache.thrift.TException)49 AuthzToken (org.apache.airavata.model.security.AuthzToken)46 UserConfigurationDataModel (org.apache.airavata.model.experiment.UserConfigurationDataModel)35 ComputationalResourceSchedulingModel (org.apache.airavata.model.scheduling.ComputationalResourceSchedulingModel)35 ExperimentModel (org.apache.airavata.model.experiment.ExperimentModel)34 ArrayList (java.util.ArrayList)20 Project (org.apache.airavata.model.workspace.Project)17 AiravataClientException (org.apache.airavata.model.error.AiravataClientException)7 AiravataSystemException (org.apache.airavata.model.error.AiravataSystemException)7 InvalidRequestException (org.apache.airavata.model.error.InvalidRequestException)7 RegistryException (org.apache.airavata.registry.cpi.RegistryException)6 HashMap (java.util.HashMap)3 DocumentCreatorNew (org.apache.airavata.integration.tools.DocumentCreatorNew)3 AppCatalogException (org.apache.airavata.registry.cpi.AppCatalogException)3 BeforeTest (org.testng.annotations.BeforeTest)3 Test (org.testng.annotations.Test)3 JSchException (com.jcraft.jsch.JSchException)2 Session (com.jcraft.jsch.Session)2