index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/DataMovementInterfacePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the data_movement_interface database table.
*/
public class DataMovementInterfacePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String computeResourceId;
private String dataMovementInterfaceId;
public DataMovementInterfacePK() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof DataMovementInterfacePK)) {
return false;
}
DataMovementInterfacePK castOther = (DataMovementInterfacePK) other;
return
this.computeResourceId.equals(castOther.computeResourceId)
&& this.dataMovementInterfaceId.equals(castOther.dataMovementInterfaceId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.computeResourceId.hashCode();
hash = hash * prime + this.dataMovementInterfaceId.hashCode();
return hash;
}
} | 1,000 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/CloudJobSubmissionEntity.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.ProviderName;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the cloud_job_submission database table.
*/
@Entity
@Table(name = "CLOUD_JOB_SUBMISSION")
public class CloudJobSubmissionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "JOB_SUBMISSION_INTERFACE_ID")
private String jobSubmissionInterfaceId;
@Column(name = "SECURITY_PROTOCOL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@Column(name = "NODE_ID")
private String nodeId;
@Column(name = "EXECUTABLE_TYPE")
private String executableType;
@Column(name = "PROVIDER_NAME")
@Enumerated(EnumType.STRING)
private ProviderName providerName;
@Column(name = "USER_ACCOUNT_NAME")
private String userAccountName;
public String getExecutableType() {
return executableType;
}
public void setExecutableType(String executableType) {
this.executableType = executableType;
}
public ProviderName getProviderName() {
return providerName;
}
public void setProviderName(ProviderName providerName) {
this.providerName = providerName;
}
public String getUserAccountName() {
return userAccountName;
}
public void setUserAccountName(String userAccountName) {
this.userAccountName = userAccountName;
}
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
public String getJobSubmissionInterfaceId() {
return jobSubmissionInterfaceId;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) {
this.jobSubmissionInterfaceId=jobSubmissionInterfaceId;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol=securityProtocol;
}
}
| 1,001 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/JobSubmissionInterfacePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the job_submission_interface database table.
*/
public class JobSubmissionInterfacePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String computeResourceId;
private String jobSubmissionInterfaceId;
public JobSubmissionInterfacePK() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getJobSubmissionInterfaceId() {
return jobSubmissionInterfaceId;
}
public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) {
this.jobSubmissionInterfaceId = jobSubmissionInterfaceId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof JobSubmissionInterfacePK)) {
return false;
}
JobSubmissionInterfacePK castOther = (JobSubmissionInterfacePK) other;
return
this.computeResourceId.equals(castOther.computeResourceId)
&& this.jobSubmissionInterfaceId.equals(castOther.jobSubmissionInterfaceId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.computeResourceId.hashCode();
hash = hash * prime + this.jobSubmissionInterfaceId.hashCode();
return hash;
}
} | 1,002 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/BatchQueueEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the batch_queue database table.
*/
@Entity
@Table(name = "BATCH_QUEUE")
@IdClass(BatchQueuePK.class)
public class BatchQueueEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="COMPUTE_RESOURCE_ID")
private String computeResourceId;
@Id
@Column(name="QUEUE_NAME")
private String queueName;
@Column(name = "MAX_JOB_IN_QUEUE")
private int maxJobsInQueue;
@Column(name = "MAX_MEMORY")
private int maxMemory;
@Column(name = "MAX_NODES")
private int maxNodes;
@Column(name = "MAX_PROCESSORS")
private int maxProcessors;
@Column(name = "MAX_RUNTIME")
private int maxRuntime;
@Column(name = "QUEUE_DESCRIPTION")
private String queueDescription;
@ManyToOne(targetEntity = ComputeResourceEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "COMPUTE_RESOURCE_ID")
private ComputeResourceEntity computeResource;
@Column(name = "CPU_PER_NODE")
private int cpuPerNode;
@Column(name = "DEFAULT_NODE_COUNT")
private int defaultNodeCount;
@Column(name = "DEFAULT_CPU_COUNT")
private int defaultCPUCount;
@Column(name = "DEFAULT_WALLTIME")
private int defaultWalltime;
@Column(name = "QUEUE_SPECIFIC_MACROS")
private String queueSpecificMacros;
@Column(name = "IS_DEFAULT_QUEUE")
private boolean isDefaultQueue;
public BatchQueueEntity() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public int getMaxJobsInQueue() {
return maxJobsInQueue;
}
public void setMaxJobsInQueue(int maxJobsInQueue) {
this.maxJobsInQueue = maxJobsInQueue;
}
public int getMaxMemory() {
return maxMemory;
}
public void setMaxMemory(int maxMemory) {
this.maxMemory = maxMemory;
}
public int getMaxNodes() {
return maxNodes;
}
public void setMaxNodes(int maxNodes) {
this.maxNodes = maxNodes;
}
public int getMaxProcessors() {
return maxProcessors;
}
public void setMaxProcessors(int maxProcessors) {
this.maxProcessors = maxProcessors;
}
public int getMaxRuntime() {
return maxRuntime;
}
public void setMaxRuntime(int maxRuntime) {
this.maxRuntime = maxRuntime;
}
public String getQueueDescription() {
return queueDescription;
}
public void setQueueDescription(String queueDescription) {
this.queueDescription = queueDescription;
}
public ComputeResourceEntity getComputeResource() {
return computeResource;
}
public void setComputeResource(ComputeResourceEntity computeResource) {
this.computeResource = computeResource;
}
public int getCpuPerNode() {
return cpuPerNode;
}
public void setCpuPerNode(int cpuPerNode) {
this.cpuPerNode = cpuPerNode;
}
public int getDefaultNodeCount() {
return defaultNodeCount;
}
public void setDefaultNodeCount(int defaultNodeCount) {
this.defaultNodeCount = defaultNodeCount;
}
public int getDefaultCPUCount() {
return defaultCPUCount;
}
public void setDefaultCPUCount(int defaultCPUCount) {
this.defaultCPUCount = defaultCPUCount;
}
public int getDefaultWalltime() {
return defaultWalltime;
}
public void setDefaultWalltime(int defaultWalltime) {
this.defaultWalltime = defaultWalltime;
}
public String getQueueSpecificMacros() {
return queueSpecificMacros;
}
public void setQueueSpecificMacros(String queueSpecificMacros) {
this.queueSpecificMacros = queueSpecificMacros;
}
public boolean getIsDefaultQueue() {
return isDefaultQueue;
}
public void setIsDefaultQueue(boolean defaultQueue) {
isDefaultQueue = defaultQueue;
}
} | 1,003 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParserConnectorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name = "PARSER_CONNECTOR")
public class ParserConnectorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSER_CONNECTOR_ID")
private String id;
@Column(name = "PARENT_PARSER_ID")
private String parentParserId;
@Column(name = "CHILD_PARSER_ID")
private String childParserId;
@Column(name = "PARSING_TEMPLATE_ID")
private String parsingTemplateId;
@OneToMany(targetEntity = ParserConnectorInputEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "parserConnector", fetch = FetchType.EAGER)
private List<ParserConnectorInputEntity> connectorInputs;
@ManyToOne(targetEntity = ParserEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARENT_PARSER_ID")
private ParserEntity parentParser;
@ManyToOne(targetEntity = ParserEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "CHILD_PARSER_ID")
private ParserEntity childParser;
@ManyToOne(targetEntity = ParsingTemplateEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSING_TEMPLATE_ID")
private ParsingTemplateEntity parsingTemplate;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getParentParserId() {
return parentParserId;
}
public void setParentParserId(String parentParserId) {
this.parentParserId = parentParserId;
}
public String getChildParserId() {
return childParserId;
}
public void setChildParserId(String childParserId) {
this.childParserId = childParserId;
}
public String getParsingTemplateId() {
return parsingTemplateId;
}
public void setParsingTemplateId(String parsingTemplateId) {
this.parsingTemplateId = parsingTemplateId;
}
public List<ParserConnectorInputEntity> getConnectorInputs() {
return connectorInputs;
}
public void setConnectorInputs(List<ParserConnectorInputEntity> connectorInputs) {
this.connectorInputs = connectorInputs;
}
public ParserEntity getParentParser() {
return parentParser;
}
public void setParentParser(ParserEntity parentParser) {
this.parentParser = parentParser;
}
public ParserEntity getChildParser() {
return childParser;
}
public void setChildParser(ParserEntity childParser) {
this.childParser = childParser;
}
public ParsingTemplateEntity getParsingTemplate() {
return parsingTemplate;
}
public void setParsingTemplate(ParsingTemplateEntity parsingTemplate) {
this.parsingTemplate = parsingTemplate;
}
}
| 1,004 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/JobManagerCommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.JobManagerCommand;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the job_manager_command database table.
*/
@Entity
@Table(name = "JOB_MANAGER_COMMAND")
@IdClass(JobManagerCommandPK.class)
public class JobManagerCommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_JOB_MANAGER_ID")
private String resourceJobManagerId;
@Id
@Column(name = "COMMAND_TYPE")
@Enumerated(EnumType.STRING)
private JobManagerCommand commandType;
@Column(name = "COMMAND")
private String command;
@ManyToOne(cascade= CascadeType.MERGE)
@JoinColumn(name = "RESOURCE_JOB_MANAGER_ID")
private ResourceJobManagerEntity resourceJobManager;
public JobManagerCommandEntity() {
}
public String getResourceJobManagerId() {
return resourceJobManagerId;
}
public void setResourceJobManagerId(String resourceJobManagerId) {
this.resourceJobManagerId = resourceJobManagerId;
}
public JobManagerCommand getCommandType() {
return commandType;
}
public void setCommandType(JobManagerCommand commandType) {
this.commandType = commandType;
}
public ResourceJobManagerEntity getResourceJobManager() {
return resourceJobManager;
}
public void setResourceJobManager(ResourceJobManagerEntity resourceJobManager) {
this.resourceJobManager = resourceJobManager;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
} | 1,005 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/JobSubmissionInterfaceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.JobSubmissionProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the job_submission_interface database table.
*/
@Entity
@Table(name = "JOB_SUBMISSION_INTERFACE")
@IdClass(JobSubmissionInterfacePK.class)
public class JobSubmissionInterfaceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "COMPUTE_RESOURCE_ID")
@Id
private String computeResourceId;
@Column(name = "JOB_SUBMISSION_INTERFACE_ID")
@Id
private String jobSubmissionInterfaceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "JOB_SUBMISSION_PROTOCOL")
@Enumerated(EnumType.STRING)
private JobSubmissionProtocol jobSubmissionProtocol;
@Column(name = "PRIORITY_ORDER")
private int priorityOrder;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@ManyToOne(targetEntity = ComputeResourceEntity.class)
@JoinColumn(name = "COMPUTE_RESOURCE_ID", nullable = false, updatable = false)
private ComputeResourceEntity computeResource;
public JobSubmissionInterfaceEntity() {
}
public ComputeResourceEntity getComputeResource() {
return computeResource;
}
public void setComputeResource(ComputeResourceEntity computeResource) {
this.computeResource = computeResource;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getJobSubmissionInterfaceId() {
return jobSubmissionInterfaceId;
}
public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) {
this.jobSubmissionInterfaceId = jobSubmissionInterfaceId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public JobSubmissionProtocol getJobSubmissionProtocol() {
return jobSubmissionProtocol;
}
public void setJobSubmissionProtocol(JobSubmissionProtocol jobSubmissionProtocol) {
this.jobSubmissionProtocol = jobSubmissionProtocol;
}
public int getPriorityOrder() {
return priorityOrder;
}
public void setPriorityOrder(int priorityOrder) {
this.priorityOrder = priorityOrder;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
} | 1,006 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GroupSSHAccountProvisionerConfig.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;
/**
* The persistent class for the grp_ssh_acc_prov_config database table.
*/
@Entity
@Table(name = "GRP_SSH_ACC_PROV_CONFIG")
@IdClass(GroupSSHAccountProvisionerConfigPK.class)
public class GroupSSHAccountProvisionerConfig implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_ID")
private String resourceId;
@Id
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
private String groupResourceProfileId;
@Id
@Column(name = "CONFIG_NAME")
private String configName;
@Column(name = "CONFIG_VALUE")
private String configValue;
@ManyToOne(targetEntity = GroupComputeResourcePrefEntity.class)
@JoinColumns({
@JoinColumn(name = "RESOURCE_ID", referencedColumnName = "RESOURCE_ID", nullable = false),
@JoinColumn(name = "GROUP_RESOURCE_PROFILE_ID", referencedColumnName = "GROUP_RESOURCE_PROFILE_ID", nullable = false)
})
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private GroupComputeResourcePrefEntity groupComputeResourcePref;
public GroupSSHAccountProvisionerConfig() {
}
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public String getConfigName() {
return configName;
}
public void setConfigName(String configName) {
this.configName = configName;
}
public String getConfigValue() {
return configValue;
}
public void setConfigValue(String configValue) {
this.configValue = configValue;
}
public GroupComputeResourcePrefEntity getGroupComputeResourcePref() {
return groupComputeResourcePref;
}
public void setGroupComputeResourcePref(GroupComputeResourcePrefEntity groupComputeResourcePref) {
this.groupComputeResourcePref = groupComputeResourcePref;
}
}
| 1,007 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GlobusGkEndpointEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the globus_gk_endpoint database table.
*
*/
@Entity
@Table(name="GLOBUS_GK_ENDPOINT")
@IdClass(GlobusGkEndpointPK.class)
public class GlobusGkEndpointEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "SUBMISSION_ID")
private String submissionId;
@Id
@Column(name = "ENDPOINT")
private String endpoint;
public GlobusGkEndpointEntity() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
} | 1,008 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/AppModuleMappingPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the app_module_mapping database table.
*
*/
public class AppModuleMappingPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String interfaceId;
private String moduleId;
public AppModuleMappingPK() {
}
public String getInterfaceId() {
return interfaceId;
}
public void setInterfaceId(String interfaceId) {
this.interfaceId = interfaceId;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof AppModuleMappingPK)) {
return false;
}
AppModuleMappingPK castOther = (AppModuleMappingPK)other;
return
this.interfaceId.equals(castOther.interfaceId)
&& this.moduleId.equals(castOther.moduleId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.interfaceId.hashCode();
hash = hash * prime + this.moduleId.hashCode();
return hash;
}
} | 1,009 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/StoragePreferencePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the data_storage_preference database table.
*/
public class StoragePreferencePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String gatewayId;
private String storageResourceId;
public StoragePreferencePK() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof StoragePreferencePK)) {
return false;
}
StoragePreferencePK castOther = (StoragePreferencePK) other;
return
this.gatewayId.equals(castOther.gatewayId)
&& this.storageResourceId.equals(castOther.storageResourceId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.gatewayId.hashCode();
hash = hash * prime + this.storageResourceId.hashCode();
return hash;
}
} | 1,010 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GroupSSHAccountProvisionerConfigPK.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the grp_ssh_acc_prov_config database table.
*/
public class GroupSSHAccountProvisionerConfigPK implements Serializable{
private static final long serialVersionUID = 1L;
private String resourceId;
private String groupResourceProfileId;
private String configName;
public GroupSSHAccountProvisionerConfigPK() {
}
public GroupSSHAccountProvisionerConfigPK(String resourceId, String groupResourceProfileId, String configName) {
this.resourceId = resourceId;
this.groupResourceProfileId = groupResourceProfileId;
this.configName = configName;
}
public String getResourceId() {
return resourceId;
}
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public String getConfigName() {
return configName;
}
public void setConfigName(String configName) {
this.configName = configName;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GroupSSHAccountProvisionerConfigPK that = (GroupSSHAccountProvisionerConfigPK) o;
if (resourceId != null ? !resourceId.equals(that.resourceId) : that.resourceId != null) return false;
if (groupResourceProfileId != null ? !groupResourceProfileId.equals(that.groupResourceProfileId) : that.groupResourceProfileId != null)
return false;
return configName != null ? configName.equals(that.configName) : that.configName == null;
}
@Override
public int hashCode() {
int result = resourceId != null ? resourceId.hashCode() : 0;
result = 31 * result + (groupResourceProfileId != null ? groupResourceProfileId.hashCode() : 0);
result = 31 * result + (configName != null ? configName.hashCode() : 0);
return result;
}
}
| 1,011 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourceFileSystemEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.FileSystems;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the compute_resource_file_system database table.
*
*/
@Entity
@Table(name="COMPUTE_RESOURCE_FILE_SYSTEM")
@IdClass(ComputeResourceFileSystemPK.class)
public class ComputeResourceFileSystemEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name="COMPUTE_RESOURCE_ID")
@Id
private String computeResourceId;
@Column(name="FILE_SYSTEM")
@Id
@Enumerated(EnumType.STRING)
private FileSystems fileSystem;
@ManyToOne(cascade= CascadeType.MERGE)
@JoinColumn(name = "COMPUTE_RESOURCE_ID")
private ComputeResourceEntity computeResource;
@Column(name="PATH")
private String path;
public ComputeResourceFileSystemEntity() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public FileSystems getFileSystem() {
return fileSystem;
}
public void setFileSystem(FileSystems fileSystem) {
this.fileSystem = fileSystem;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public ComputeResourceEntity getComputeResource() {
return computeResource;
}
public void setComputeResource(ComputeResourceEntity computeResource) {
this.computeResource = computeResource;
}
} | 1,012 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParserOutputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "PARSER_OUTPUT")
public class ParserOutputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSER_OUTPUT_ID")
private String id;
@Column(name = "PARSER_OUTPUT_NAME")
private String name;
@Column(name = "PARSER_OUTPUT_REQUIRED")
private boolean requiredOutput;
@Column(name = "PARSER_ID")
private String parserId;
@ManyToOne(targetEntity = ParserEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSER_ID")
private ParserEntity parser;
@Column(name = "OUTPUT_TYPE")
private String type;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isRequiredOutput() {
return requiredOutput;
}
public void setRequiredOutput(boolean requiredOutput) {
this.requiredOutput = requiredOutput;
}
public String getParserId() {
return parserId;
}
public void setParserId(String parserId) {
this.parserId = parserId;
}
public ParserEntity getParser() {
return parser;
}
public void setParser(ParserEntity parser) {
this.parser = parser;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}
| 1,013 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ResourceJobManagerEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.common.utils.AiravataUtils;
import org.apache.airavata.model.appcatalog.computeresource.ResourceJobManagerType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the resource_job_manager database table.
*/
@Entity
@Table(name = "RESOURCE_JOB_MANAGER")
public class ResourceJobManagerEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_JOB_MANAGER_ID")
private String resourceJobManagerId;
@Column(name = "CREATION_TIME", nullable = false, updatable = false)
private Timestamp creationTime = AiravataUtils.getCurrentTimestamp();
@Column(name = "JOB_MANAGER_BIN_PATH")
private String jobManagerBinPath;
@Column(name = "PUSH_MONITORING_ENDPOINT")
private String pushMonitoringEndpoint;
@Column(name = "RESOURCE_JOB_MANAGER_TYPE")
@Enumerated(EnumType.STRING)
private ResourceJobManagerType resourceJobManagerType;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
public ResourceJobManagerEntity() {
}
public String getResourceJobManagerId() {
return resourceJobManagerId;
}
public void setResourceJobManagerId(String resourceJobManagerId) {
this.resourceJobManagerId = resourceJobManagerId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getJobManagerBinPath() {
return jobManagerBinPath;
}
public void setJobManagerBinPath(String jobManagerBinPath) {
this.jobManagerBinPath = jobManagerBinPath;
}
public String getPushMonitoringEndpoint() {
return pushMonitoringEndpoint;
}
public void setPushMonitoringEndpoint(String pushMonitoringEndpoint) {
this.pushMonitoringEndpoint = pushMonitoringEndpoint;
}
public ResourceJobManagerType getResourceJobManagerType() {
return resourceJobManagerType;
}
public void setResourceJobManagerType(ResourceJobManagerType resourceJobManagerType) {
this.resourceJobManagerType = resourceJobManagerType;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
}
| 1,014 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UserStoragePreferenceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
/**
* The persistent class for the user_storage_preference database table.
*/
@Entity
@Table(name = "USER_STORAGE_PREFERENCE")
@IdClass(UserStoragePreferencePK.class)
public class UserStoragePreferenceEntity {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Id
@Column(name = "USER_ID")
private String userId;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "RESOURCE_CS_TOKEN")
private String resourceSpecificCredentialStoreToken;
@Column(name = "FS_ROOT_LOCATION")
private String fileSystemRootLocation;
@Column(name = "LOGIN_USERNAME")
private String loginUserName;
@ManyToOne(targetEntity = UserResourceProfileEntity.class, cascade = CascadeType.MERGE)
@JoinColumns({
@JoinColumn(name = "USER_ID"),
@JoinColumn(name="GATEWAY_ID")
})
private UserResourceProfileEntity userResourceProfile;
public UserStoragePreferenceEntity() {
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getResourceSpecificCredentialStoreToken() {
return resourceSpecificCredentialStoreToken;
}
public void setResourceSpecificCredentialStoreToken(String resourceSpecificCredentialStoreToken) {
this.resourceSpecificCredentialStoreToken = resourceSpecificCredentialStoreToken;
}
public String getFileSystemRootLocation() {
return fileSystemRootLocation;
}
public void setFileSystemRootLocation(String fileSystemRootLocation) {
this.fileSystemRootLocation = fileSystemRootLocation;
}
public String getLoginUserName() {
return loginUserName;
}
public void setLoginUserName(String loginUserName) {
this.loginUserName = loginUserName;
}
public UserResourceProfileEntity getUserResourceProfile() {
return userResourceProfile;
}
public void setUserResourceProfile(UserResourceProfileEntity userResourceProfile) {
this.userResourceProfile = userResourceProfile;
}
}
| 1,015 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
/**
* The persistent class for the compute_resource database table.
*/
@Entity
@Table(name = "COMPUTE_RESOURCE")
public class ComputeResourceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_ID")
private String computeResourceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "ENABLED")
private short enabled;
@Column(name = "GATEWAY_USAGE_EXECUTABLE")
private String gatewayUsageExecutable;
@Column(name = "GATEWAY_USAGE_MODULE_LOAD_CMD")
private String gatewayUsageModuleLoadCommand;
@Column(name = "GATEWAY_USAGE_REPORTING")
private boolean gatewayUsageReporting;
@Column(name = "HOST_NAME")
private String hostName;
@Column(name = "MAX_MEMORY_NODE")
private int maxMemoryPerNode;
@Column(name = "RESOURCE_DESCRIPTION")
private String resourceDescription;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@Column(name = "CPUS_PER_NODE")
private Integer cpusPerNode;
@Column(name = "DEFAULT_NODE_COUNT")
private Integer defaultNodeCount;
@Column(name = "DEFAULT_CPU_COUNT")
private Integer defaultCPUCount;
@Column(name = "DEFAULT_WALLTIME")
private Integer defaultWalltime;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="HOST_ALIAS", joinColumns = @JoinColumn(name="RESOURCE_ID"))
@Column(name = "ALIAS")
private List<String> hostAliases;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name="HOST_IPADDRESS", joinColumns = @JoinColumn(name="RESOURCE_ID"))
@Column(name = "IP_ADDRESS")
private List<String> ipAddresses;
@OneToMany(targetEntity = BatchQueueEntity.class, cascade = CascadeType.ALL,
mappedBy = "computeResource", fetch = FetchType.EAGER)
private List<BatchQueueEntity> batchQueues;
@OneToMany(targetEntity = JobSubmissionInterfaceEntity.class, cascade = CascadeType.ALL,
mappedBy = "computeResource", fetch = FetchType.EAGER)
private List<JobSubmissionInterfaceEntity> jobSubmissionInterfaces;
@OneToMany(targetEntity = DataMovementInterfaceEntity.class, cascade = CascadeType.ALL,
mappedBy = "computeResource", fetch = FetchType.EAGER)
private List<DataMovementInterfaceEntity> dataMovementInterfaces;
public ComputeResourceEntity() {
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public short getEnabled() {
return enabled;
}
public void setEnabled(short enabled) {
this.enabled = enabled;
}
public String getGatewayUsageExecutable() {
return gatewayUsageExecutable;
}
public void setGatewayUsageExecutable(String gatewayUsageExecutable) {
this.gatewayUsageExecutable = gatewayUsageExecutable;
}
public boolean isGatewayUsageReporting() {
return gatewayUsageReporting;
}
public void setGatewayUsageReporting(boolean gatewayUsageReporting) {
this.gatewayUsageReporting = gatewayUsageReporting;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getGatewayUsageModuleLoadCommand() {
return gatewayUsageModuleLoadCommand;
}
public void setGatewayUsageModuleLoadCommand(String gatewayUsageModuleLoadCommand) {
this.gatewayUsageModuleLoadCommand = gatewayUsageModuleLoadCommand;
}
public int getMaxMemoryPerNode() {
return maxMemoryPerNode;
}
public void setMaxMemoryPerNode(int maxMemoryPerNode) {
this.maxMemoryPerNode = maxMemoryPerNode;
}
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public String getResourceDescription() {
return resourceDescription;
}
public void setResourceDescription(String resourceDescription) {
this.resourceDescription = resourceDescription;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public Integer getCpusPerNode() {
return cpusPerNode;
}
public void setCpusPerNode(Integer cpusPerNode) {
this.cpusPerNode = cpusPerNode;
}
public Integer getDefaultNodeCount() {
return defaultNodeCount;
}
public void setDefaultNodeCount(Integer defaultNodeCount) {
this.defaultNodeCount = defaultNodeCount;
}
public Integer getDefaultCPUCount() {
return defaultCPUCount;
}
public void setDefaultCPUCount(Integer defaultCPUCount) {
this.defaultCPUCount = defaultCPUCount;
}
public Integer getDefaultWalltime() {
return defaultWalltime;
}
public void setDefaultWalltime(Integer defaultWalltime) {
this.defaultWalltime = defaultWalltime;
}
public List<String> getHostAliases() {
return hostAliases;
}
public void setHostAliases(List<String> hostAliases) {
this.hostAliases = hostAliases;
}
public List<String> getIpAddresses() {
return ipAddresses;
}
public void setIpAddresses(List<String> ipAddresses) {
this.ipAddresses = ipAddresses;
}
public List<BatchQueueEntity> getBatchQueues() {
return batchQueues;
}
public void setBatchQueues(List<BatchQueueEntity> batchQueues) {
this.batchQueues = batchQueues;
}
public List<JobSubmissionInterfaceEntity> getJobSubmissionInterfaces() {
return jobSubmissionInterfaces;
}
public void setJobSubmissionInterfaces(List<JobSubmissionInterfaceEntity> jobSubmissionInterfaces) {
this.jobSubmissionInterfaces = jobSubmissionInterfaces;
}
public List<DataMovementInterfaceEntity> getDataMovementInterfaces() {
return dataMovementInterfaces;
}
public void setDataMovementInterfaces(List<DataMovementInterfaceEntity> dataMovementInterfaces) {
this.dataMovementInterfaces = dataMovementInterfaces;
}
} | 1,016 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ModuleLoadCmdPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the module_load_cmd database table.
*/
public class ModuleLoadCmdPK implements Serializable {
// default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String appdeploymentId;
private String command;
public ModuleLoadCmdPK() {
}
public String getAppdeploymentId() {
return appdeploymentId;
}
public void setAppdeploymentId(String appdeploymentId) {
this.appdeploymentId = appdeploymentId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ModuleLoadCmdPK)) {
return false;
}
ModuleLoadCmdPK castOther = (ModuleLoadCmdPK) other;
return this.appdeploymentId.equals(castOther.appdeploymentId) && this.command.equals(castOther.command);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.appdeploymentId.hashCode();
hash = hash * prime + this.command.hashCode();
return hash;
}
}
| 1,017 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParserEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name = "PARSER")
public class ParserEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSER_ID")
private String id;
@Column(name = "IMAGE_NAME")
private String imageName;
@Column(name = "OUTPUT_DIR_PATH")
private String outputDirPath;
@Column(name = "INPUT_DIR_PATH")
private String inputDirPath;
@Column(name = "EXECUTION_COMMAND")
private String executionCommand;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@OneToMany(targetEntity = ParserInputEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "parser", fetch = FetchType.EAGER)
private List<ParserInputEntity> inputFiles;
@OneToMany(targetEntity = ParserOutputEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "parser", fetch = FetchType.EAGER)
private List<ParserOutputEntity> outputFiles;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getImageName() {
return imageName;
}
public void setImageName(String imageName) {
this.imageName = imageName;
}
public String getOutputDirPath() {
return outputDirPath;
}
public void setOutputDirPath(String outputDirPath) {
this.outputDirPath = outputDirPath;
}
public String getInputDirPath() {
return inputDirPath;
}
public void setInputDirPath(String inputDirPath) {
this.inputDirPath = inputDirPath;
}
public String getExecutionCommand() {
return executionCommand;
}
public void setExecutionCommand(String executionCommand) {
this.executionCommand = executionCommand;
}
public List<ParserInputEntity> getInputFiles() {
return inputFiles;
}
public void setInputFiles(List<ParserInputEntity> inputFiles) {
this.inputFiles = inputFiles;
}
public List<ParserOutputEntity> getOutputFiles() {
return outputFiles;
}
public void setOutputFiles(List<ParserOutputEntity> outputFiles) {
this.outputFiles = outputFiles;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
}
| 1,018 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshSubmissionEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* The persistent class for the gsissh_submission database table.
*
*/
@Entity
@Table(name = "GSISSH_SUBMISSION")
public class GsisshSubmissionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "SUBMISSION_ID")
private String submissionId;
@Column(name = "INSTALLED_PATH")
private String installedPath;
@Column(name = "MONITOR_MODE")
private String monitorMode;
@Column(name = "RESOURCE_JOB_MANAGER")
private String resourceJobManager;
@Column(name = "SSH_PORT")
private int sshPort;
public GsisshSubmissionEntity() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getInstalledPath() {
return installedPath;
}
public void setInstalledPath(String installedPath) {
this.installedPath = installedPath;
}
public String getMonitorMode() {
return monitorMode;
}
public void setMonitorMode(String monitorMode) {
this.monitorMode = monitorMode;
}
public String getResourceJobManager() {
return resourceJobManager;
}
public void setResourceJobManager(String resourceJobManager) {
this.resourceJobManager = resourceJobManager;
}
public int getSshPort() {
return sshPort;
}
public void setSshPort(int sshPort) {
this.sshPort = sshPort;
}
} | 1,019 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GatewayProfileEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the gateway_profile database table.
*/
@Entity
@Table(name = "GATEWAY_PROFILE")
public class GatewayProfileEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "CS_TOKEN")
private String credentialStoreToken;
@Column(name = "IDENTITY_SERVER_PWD_CRED_TOKEN")
private String identityServerPwdCredToken;
@Column(name = "IDENTITY_SERVER_TENANT")
private String identityServerTenant;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@OneToMany(targetEntity = ComputeResourcePreferenceEntity.class, cascade = CascadeType.ALL,
mappedBy = "gatewayProfileResource", fetch = FetchType.EAGER)
private List<ComputeResourcePreferenceEntity> computeResourcePreferences;
@OneToMany(targetEntity = StoragePreferenceEntity.class, cascade = CascadeType.ALL,
mappedBy = "gatewayProfileResource", fetch = FetchType.EAGER)
private List<StoragePreferenceEntity> storagePreferences;
public GatewayProfileEntity() {
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getCredentialStoreToken() {
return credentialStoreToken;
}
public void setCredentialStoreToken(String credentialStoreToken) {
this.credentialStoreToken = credentialStoreToken;
}
public String getIdentityServerPwdCredToken() {
return identityServerPwdCredToken;
}
public void setIdentityServerPwdCredToken(String identityServerPwdCredToken) {
this.identityServerPwdCredToken = identityServerPwdCredToken;
}
public String getIdentityServerTenant() {
return identityServerTenant;
}
public void setIdentityServerTenant(String identityServerTenant) {
this.identityServerTenant = identityServerTenant;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public List<ComputeResourcePreferenceEntity> getComputeResourcePreferences() {
return computeResourcePreferences;
}
public void setComputeResourcePreferences(List<ComputeResourcePreferenceEntity> computeResourcePreferences) {
this.computeResourcePreferences = computeResourcePreferences;
}
public List<StoragePreferenceEntity> getStoragePreferences() {
return storagePreferences;
}
public void setStoragePreferences(List<StoragePreferenceEntity> storagePreferences) {
this.storagePreferences = storagePreferences;
}
} | 1,020 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.application.io.DataType;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the application_input database table.
*
*/
@Entity
@Table(name = "APPLICATION_INPUT")
@IdClass(ApplicationInputPK.class)
public class ApplicationInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "INTERFACE_ID")
private String interfaceId;
@Id
@Column(name = "INPUT_KEY")
private String name;
@Column(name = "APP_ARGUMENT")
private String applicationArgument;
@Column(name = "DATA_STAGED")
private boolean dataStaged;
@Column(name = "DATA_TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "INPUT_ORDER")
private int inputOrder;
@Column(name = "INPUT_VALUE")
private String value;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "METADATA", length = 4096)
private String metaData;
@Column(name = "REQUIRED_TO_COMMANDLINE")
private boolean requiredToAddedToCommandLine;
@Column(name = "STANDARD_INPUT")
private boolean standardInput;
@Lob
@Column(name = "USER_FRIENDLY_DESC")
private String userFriendlyDescription;
@Column(name = "IS_READ_ONLY")
private boolean isReadOnly;
@Column(name = "OVERRIDE_FILENAME")
private String overrideFilename;
@ManyToOne(targetEntity = ApplicationInterfaceEntity.class)
@JoinColumn(name = "INTERFACE_ID", nullable = false, updatable = false)
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationInterfaceEntity applicationInterface;
public ApplicationInputEntity() {
}
public String getInterfaceId() {
return interfaceId;
}
public void setInterfaceId(String interfaceId) {
this.interfaceId = interfaceId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean getDataStaged() {
return dataStaged;
}
public void setDataStaged(boolean dataStaged) {
this.dataStaged = dataStaged;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public int getInputOrder() {
return inputOrder;
}
public void setInputOrder(int inputOrder) {
this.inputOrder = inputOrder;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public boolean getIsRequired() {
return isRequired;
}
public void setIsRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public String getMetaData() {
return metaData;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public boolean getRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public boolean getStandardInput() {
return standardInput;
}
public void setStandardInput(boolean standardInput) {
this.standardInput = standardInput;
}
public String getUserFriendlyDescription() {
return userFriendlyDescription;
}
public ApplicationInputEntity setUserFriendlyDescription(String userFriendlyDescription) {
this.userFriendlyDescription = userFriendlyDescription;
return this;
}
public boolean getIsReadOnly() {
return isReadOnly;
}
public void setIsReadOnly(boolean isReadOnly) {
this.isReadOnly = isReadOnly;
}
public String getOverrideFilename() {
return overrideFilename;
}
public void setOverrideFilename(String overrideFilename) {
this.overrideFilename = overrideFilename;
}
public ApplicationInterfaceEntity getApplicationInterface() {
return applicationInterface;
}
public void setApplicationInterface(ApplicationInterfaceEntity applicationInterface) {
this.applicationInterface = applicationInterface;
}
}
| 1,021 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshPrejobcommandEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the gsissh_prejobcommand database table.
*/
@Entity
@Table(name = "GSISSH_PREJOBCOMMAND")
@IdClass(GsisshPrejobcommandPK.class)
public class GsisshPrejobcommandEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "SUBMISSION_ID")
private String submissionId;
@Id
@Column(name = "COMMAND")
private String command;
public GsisshPrejobcommandEntity() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
} | 1,022 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GsisshExportEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the gsissh_export database table.
*/
@Entity
@Table(name = "GSISSH_EXPORT")
@IdClass(GsisshExportPK.class)
public class GsisshExportEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "SUBMISSION_ID")
private String submissionId;
@Id
@Column(name = "EXPORT")
private String export;
public GsisshExportEntity() {
}
public String getSubmissionId() {
return submissionId;
}
public void setSubmissionId(String submissionId) {
this.submissionId = submissionId;
}
public String getExport() {
return export;
}
public void setExport(String export) {
this.export = export;
}
} | 1,023 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParsingTemplateInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "PARSING_TEMPLATE_INPUT")
public class ParsingTemplateInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSING_TEMPLATE_INPUT_ID")
private String id;
@Column(name = "TARGET_PARSER_INPUT_ID")
private String targetInputId;
@Column(name = "APPLICATION_OUTPUT_NAME")
private String applicationOutputName;
@Column(name = "VALUE")
private String value;
@Column(name = "PARSING_TEMPLATE_ID")
private String parsingTemplateId;
@ManyToOne(targetEntity = ParserInputEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "TARGET_PARSER_INPUT_ID")
private ParserInputEntity input;
@ManyToOne(targetEntity = ParsingTemplateEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSING_TEMPLATE_ID")
private ParsingTemplateEntity parsingTemplate;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTargetInputId() {
return targetInputId;
}
public void setTargetInputId(String targetInputId) {
this.targetInputId = targetInputId;
}
public String getApplicationOutputName() {
return applicationOutputName;
}
public void setApplicationOutputName(String applicationOutputName) {
this.applicationOutputName = applicationOutputName;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getParsingTemplateId() {
return parsingTemplateId;
}
public void setParsingTemplateId(String parsingTemplateId) {
this.parsingTemplateId = parsingTemplateId;
}
public ParserInputEntity getInput() {
return input;
}
public void setInput(ParserInputEntity input) {
this.input = input;
}
public ParsingTemplateEntity getParsingTemplate() {
return parsingTemplate;
}
public void setParsingTemplate(ParsingTemplateEntity parsingTemplate) {
this.parsingTemplate = parsingTemplate;
}
}
| 1,024 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/LibraryPrependPathEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the library_apend_path database table.
*
*/
@Entity
@Table(name="LIBRARY_PREPAND_PATH")
@IdClass(LibraryPrependPathPK.class)
public class LibraryPrependPathEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="DEPLOYMENT_ID")
private String deploymentId;
@Column(name="VALUE")
private String value;
@Id
@Column(name="NAME")
private String name;
@ManyToOne(targetEntity = ApplicationDeploymentEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "DEPLOYMENT_ID")
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationDeploymentEntity applicationDeployment;
public LibraryPrependPathEntity() {
}
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ApplicationDeploymentEntity getApplicationDeployment() {
return applicationDeployment;
}
public void setApplicationDeployment(ApplicationDeploymentEntity applicationDeployment) {
this.applicationDeployment = applicationDeployment;
}
} | 1,025 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParserInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "PARSER_INPUT")
public class ParserInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSER_INPUT_ID")
private String id;
@Column(name = "PARSER_INPUT_NAME")
private String name;
@Column(name = "PARSER_INPUT_REQUIRED")
private boolean requiredInput;
@Column(name = "PARSER_ID")
private String parserId;
@ManyToOne(targetEntity = ParserEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "PARSER_ID")
private ParserEntity parser;
@Column(name = "INPUT_TYPE")
private String type;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isRequiredInput() {
return requiredInput;
}
public void setRequiredInput(boolean requiredInput) {
this.requiredInput = requiredInput;
}
public String getParserId() {
return parserId;
}
public void setParserId(String parserId) {
this.parserId = parserId;
}
public ParserEntity getParser() {
return parser;
}
public void setParser(ParserEntity parser) {
this.parser = parser;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}
| 1,026 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GroupComputeResourcePrefEntity.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.JobSubmissionProtocol;
import org.apache.airavata.model.data.movement.DataMovementProtocol;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* The persistent class for the group_compute_resource_preference database table.
*/
@Entity
@Table(name = "GROUP_COMPUTE_RESOURCE_PREFERENCE")
@IdClass(GroupComputeResourcePrefPK.class)
public class GroupComputeResourcePrefEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "RESOURCE_ID")
@Id
private String computeResourceId;
@Column(name = "GROUP_RESOURCE_PROFILE_ID")
@Id
private String groupResourceProfileId;
@Column(name = "ALLOCATION_PROJECT_NUMBER")
private String allocationProjectNumber;
@Column(name = "LOGIN_USERNAME")
private String loginUserName;
@Column(name = "OVERRIDE_BY_AIRAVATA")
private short overridebyAiravata;
@Column(name = "PREFERED_BATCH_QUEUE")
private String preferredBatchQueue;
@Column(name = "PREFERED_DATA_MOVE_PROTOCOL")
@Enumerated(EnumType.STRING)
private DataMovementProtocol preferredDataMovementProtocol;
@Column(name = "PREFERED_JOB_SUB_PROTOCOL")
@Enumerated(EnumType.STRING)
private JobSubmissionProtocol preferredJobSubmissionProtocol;
@Column(name = "QUALITY_OF_SERVICE")
private String qualityOfService;
@Column(name = "RESOURCE_CS_TOKEN")
private String resourceSpecificCredentialStoreToken;
@Column(name = "SCRATCH_LOCATION")
private String scratchLocation;
@Column(name = "USAGE_REPORTING_GATEWAY_ID")
private String usageReportingGatewayId;
@Column(name = "SSH_ACCOUNT_PROVISIONER")
private String sshAccountProvisioner;
@Column(name = "SSH_ACCOUNT_PROVISIONER_ADDITIONAL_INFO")
private String sshAccountProvisionerAdditionalInfo;
@OneToMany(targetEntity = GroupSSHAccountProvisionerConfig.class, mappedBy = "groupComputeResourcePref", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List<GroupSSHAccountProvisionerConfig> groupSSHAccountProvisionerConfigs;
@OneToMany(targetEntity = ComputeResourceReservationEntity.class, mappedBy = "groupComputeResourcePref", cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true)
@OrderBy("startTime ASC")
private List<ComputeResourceReservationEntity> reservations;
@ManyToOne(targetEntity = GroupResourceProfileEntity.class, cascade = CascadeType.PERSIST)
@JoinColumn(name = "GROUP_RESOURCE_PROFILE_ID", nullable = false, updatable = false)
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private GroupResourceProfileEntity groupResourceProfile;
public GroupComputeResourcePrefEntity() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getGroupResourceProfileId() {
return groupResourceProfileId;
}
public void setGroupResourceProfileId(String groupResourceProfileId) {
this.groupResourceProfileId = groupResourceProfileId;
}
public String getAllocationProjectNumber() {
return allocationProjectNumber;
}
public void setAllocationProjectNumber(String allocationProjectNumber) {
this.allocationProjectNumber = allocationProjectNumber;
}
public String getLoginUserName() {
return loginUserName;
}
public void setLoginUserName(String loginUserName) {
this.loginUserName = loginUserName;
}
public short getOverridebyAiravata() {
return overridebyAiravata;
}
public void setOverridebyAiravata(short overridebyAiravata) {
this.overridebyAiravata = overridebyAiravata;
}
public String getPreferredBatchQueue() {
return preferredBatchQueue;
}
public void setPreferredBatchQueue(String preferredBatchQueue) {
this.preferredBatchQueue = preferredBatchQueue;
}
public DataMovementProtocol getPreferredDataMovementProtocol() {
return preferredDataMovementProtocol;
}
public void setPreferredDataMovementProtocol(DataMovementProtocol preferredDataMovementProtocol) {
this.preferredDataMovementProtocol = preferredDataMovementProtocol;
}
public JobSubmissionProtocol getPreferredJobSubmissionProtocol() {
return preferredJobSubmissionProtocol;
}
public void setPreferredJobSubmissionProtocol(JobSubmissionProtocol preferredJobSubmissionProtocol) {
this.preferredJobSubmissionProtocol = preferredJobSubmissionProtocol;
}
public String getQualityOfService() {
return qualityOfService;
}
public void setQualityOfService(String qualityOfService) {
this.qualityOfService = qualityOfService;
}
public String getResourceSpecificCredentialStoreToken() {
return resourceSpecificCredentialStoreToken;
}
public void setResourceSpecificCredentialStoreToken(String resourceSpecificCredentialStoreToken) {
this.resourceSpecificCredentialStoreToken = resourceSpecificCredentialStoreToken;
}
public String getScratchLocation() {
return scratchLocation;
}
public void setScratchLocation(String scratchLocation) {
this.scratchLocation = scratchLocation;
}
public String getUsageReportingGatewayId() {
return usageReportingGatewayId;
}
public void setUsageReportingGatewayId(String usageReportingGatewayId) {
this.usageReportingGatewayId = usageReportingGatewayId;
}
public String getSshAccountProvisioner() {
return sshAccountProvisioner;
}
public void setSshAccountProvisioner(String sshAccountProvisioner) {
this.sshAccountProvisioner = sshAccountProvisioner;
}
public String getSshAccountProvisionerAdditionalInfo() {
return sshAccountProvisionerAdditionalInfo;
}
public void setSshAccountProvisionerAdditionalInfo(String sshAccountProvisionerAdditionalInfo) {
this.sshAccountProvisionerAdditionalInfo = sshAccountProvisionerAdditionalInfo;
}
public List<GroupSSHAccountProvisionerConfig> getGroupSSHAccountProvisionerConfigs() {
return groupSSHAccountProvisionerConfigs;
}
public void setGroupSSHAccountProvisionerConfigs(List<GroupSSHAccountProvisionerConfig> groupSSHAccountProvisionerConfigs) {
this.groupSSHAccountProvisionerConfigs = groupSSHAccountProvisionerConfigs;
}
public List<ComputeResourceReservationEntity> getReservations() {
return reservations;
}
public void setReservations(List<ComputeResourceReservationEntity> reservations) {
this.reservations = reservations;
}
public GroupResourceProfileEntity getGroupResourceProfile() {
return groupResourceProfile;
}
public void setGroupResourceProfile(GroupResourceProfileEntity groupResourceProfile) {
this.groupResourceProfile = groupResourceProfile;
}
}
| 1,027 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/PrejobCommandPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the prejob_command database table.
*
*/
public class PrejobCommandPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String appdeploymentId;
private String command;
public PrejobCommandPK() {
}
public String getAppdeploymentId() {
return appdeploymentId;
}
public void setAppdeploymentId(String appdeploymentId) {
this.appdeploymentId = appdeploymentId;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof PrejobCommandPK)) {
return false;
}
PrejobCommandPK castOther = (PrejobCommandPK)other;
return
this.appdeploymentId.equals(castOther.appdeploymentId)
&& this.command.equals(castOther.command);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.appdeploymentId.hashCode();
hash = hash * prime + this.command.hashCode();
return hash;
}
} | 1,028 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParallelismCommandPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.parallelism.ApplicationParallelismType;
import java.io.Serializable;
/**
* The primary key class for the parallelism_command database table.
*/
public class ParallelismCommandPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String resourceJobManagerId;
private ApplicationParallelismType commandType;
public ParallelismCommandPK() {
}
public String getResourceJobManagerId() {
return resourceJobManagerId;
}
public void setResourceJobManagerId(String resourceJobManagerId) {
this.resourceJobManagerId = resourceJobManagerId;
}
public ApplicationParallelismType getCommandType() {
return commandType;
}
public void setCommandType(ApplicationParallelismType commandType) {
this.commandType = commandType;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ParallelismCommandPK)) {
return false;
}
ParallelismCommandPK castOther = (ParallelismCommandPK) other;
return
this.resourceJobManagerId.equals(castOther.resourceJobManagerId)
&& this.commandType.equals(castOther.commandType);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.resourceJobManagerId.hashCode();
hash = hash * prime + this.commandType.hashCode();
return hash;
}
} | 1,029 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UserResourceProfileEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.util.*;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* The persistent class for the user_resource_profile database table.
*/
@Entity
@Table(name = "USER_RESOURCE_PROFILE")
@IdClass(UserResourceProfilePK.class)
public class UserResourceProfileEntity {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "USER_ID")
private String userId;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "CS_TOKEN")
private String credentialStoreToken;
@Column(name = "IDENTITY_SERVER_PWD_CRED_TOKEN")
private String identityServerPwdCredToken;
@Column(name = "IDENTITY_SERVER_TENANT")
private String identityServerTenant;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@OneToMany (targetEntity = UserComputeResourcePreferenceEntity.class, cascade = CascadeType.ALL,
mappedBy = "userResourceProfile", fetch = FetchType.EAGER)
private List<UserComputeResourcePreferenceEntity> userComputeResourcePreferences;
@OneToMany (targetEntity = UserStoragePreferenceEntity.class, cascade = CascadeType.ALL,
mappedBy = "userResourceProfile", fetch = FetchType.EAGER)
private List<UserStoragePreferenceEntity> userStoragePreferences;
public UserResourceProfileEntity() {
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getCredentialStoreToken() {
return credentialStoreToken;
}
public void setCredentialStoreToken(String credentialStoreToken) {
this.credentialStoreToken = credentialStoreToken;
}
public String getIdentityServerPwdCredToken() {
return identityServerPwdCredToken;
}
public void setIdentityServerPwdCredToken(String identityServerPwdCredToken) {
this.identityServerPwdCredToken = identityServerPwdCredToken;
}
public String getIdentityServerTenant() {
return identityServerTenant;
}
public void setIdentityServerTenant(String identityServerTenant) {
this.identityServerTenant = identityServerTenant;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public List<UserComputeResourcePreferenceEntity> getUserComputeResourcePreferences() {
return userComputeResourcePreferences;
}
public void setUserComputeResourcePreferences(List<UserComputeResourcePreferenceEntity> userComputeResourcePreferences) {
this.userComputeResourcePreferences = userComputeResourcePreferences;
}
public List<UserStoragePreferenceEntity> getUserStoragePreferences() {
return userStoragePreferences;
}
public void setUserStoragePreferences(List<UserStoragePreferenceEntity> userStoragePreferences) {
this.userStoragePreferences = userStoragePreferences;
}
}
| 1,030 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UnicoreSubmissionEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the unicore_submission database table.
*
*/
@Entity
@Table(name="UNICORE_SUBMISSION")
public class UnicoreSubmissionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="SUBMISSION_ID")
private String jobSubmissionInterfaceId;
@Column(name="SECURITY_PROTOCAL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@Column(name="UNICORE_ENDPOINT_URL")
private String unicoreEndPointURL;
public UnicoreSubmissionEntity() {
}
public String getJobSubmissionInterfaceId() {
return jobSubmissionInterfaceId;
}
public void setJobSubmissionInterfaceId(String jobSubmissionInterfaceId) {
this.jobSubmissionInterfaceId = jobSubmissionInterfaceId;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol = securityProtocol;
}
public String getUnicoreEndPointURL() {
return unicoreEndPointURL;
}
public void setUnicoreEndPointURL(String unicoreEndPointURL) {
this.unicoreEndPointURL = unicoreEndPointURL;
}
} | 1,031 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/AppEnvironmentEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the app_environment database table.
*/
@Entity
@Table(name = "APP_ENVIRONMENT")
@IdClass(AppEnvironmentPK.class)
public class AppEnvironmentEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DEPLOYMENT_ID")
private String deploymentId;
@Column(name = "VALUE")
private String value;
@Id
@Column(name = "NAME")
private String name;
@Column(name = "ENV_ORDER")
private int envPathOrder;
@ManyToOne(targetEntity = ApplicationDeploymentEntity.class)
@JoinColumn(name = "DEPLOYMENT_ID", nullable = false, updatable = false)
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationDeploymentEntity applicationDeployment;
public AppEnvironmentEntity() {
}
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getEnvPathOrder() {
return envPathOrder;
}
public void setEnvPathOrder(int envPathOrder) {
this.envPathOrder = envPathOrder;
}
public ApplicationDeploymentEntity getApplicationDeployment() {
return applicationDeployment;
}
public void setApplicationDeployment(ApplicationDeploymentEntity applicationDeployment) {
this.applicationDeployment = applicationDeployment;
}
} | 1,032 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GridftpEndpointPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the gridftp_endpoint database table.
*/
public class GridftpEndpointPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String dataMovementInterfaceId;
private String endpoint;
public GridftpEndpointPK() {
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public String getEndpoint() {
return endpoint;
}
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof GridftpEndpointPK)) {
return false;
}
GridftpEndpointPK castOther = (GridftpEndpointPK) other;
return
this.dataMovementInterfaceId.equals(castOther.dataMovementInterfaceId)
&& this.endpoint.equals(castOther.endpoint);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.dataMovementInterfaceId.hashCode();
hash = hash * prime + this.endpoint.hashCode();
return hash;
}
} | 1,033 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ParsingTemplateEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name = "PARSING_TEMPLATE")
public class ParsingTemplateEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PARSING_TEMPLATE_ID")
private String id;
@Column(name = "APP_INTERFACE_ID")
private String applicationInterface;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@OneToMany(targetEntity = ParsingTemplateInputEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "parsingTemplate", fetch = FetchType.EAGER)
private List<ParsingTemplateInputEntity> initialInputs;
@OneToMany(targetEntity = ParserConnectorEntity.class, cascade = CascadeType.ALL, orphanRemoval = true,
mappedBy = "parsingTemplate", fetch = FetchType.EAGER)
private List<ParserConnectorEntity> parserConnections;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getApplicationInterface() {
return applicationInterface;
}
public void setApplicationInterface(String applicationInterface) {
this.applicationInterface = applicationInterface;
}
public List<ParsingTemplateInputEntity> getInitialInputs() {
return initialInputs;
}
public void setInitialInputs(List<ParsingTemplateInputEntity> initialInputs) {
this.initialInputs = initialInputs;
}
public List<ParserConnectorEntity> getParserConnections() {
return parserConnections;
}
public void setParserConnections(List<ParserConnectorEntity> parserConnections) {
this.parserConnections = parserConnections;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
}
| 1,034 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationOutputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.application.io.DataType;
import org.apache.openjpa.persistence.jdbc.ForeignKey;
import org.apache.openjpa.persistence.jdbc.ForeignKeyAction;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the application_output database table.
*/
@Entity
@Table(name = "APPLICATION_OUTPUT")
@IdClass(ApplicationOutputPK.class)
public class ApplicationOutputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="INTERFACE_ID")
private String interfaceId;
@Id
@Column(name="OUTPUT_KEY")
private String name;
@Column(name = "APP_ARGUMENT")
private String applicationArgument;
@Column(name = "DATA_MOVEMENT")
private boolean dataMovement;
@Column(name = "DATA_NAME_LOCATION")
private String location;
@Column(name = "DATA_TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "OUTPUT_STREAMING")
private boolean outputStreaming;
@Column(name = "OUTPUT_VALUE")
private String value;
@Column(name = "REQUIRED_TO_COMMANDLINE")
private boolean requiredToAddedToCommandLine;
@Column(name = "SEARCH_QUERY")
private String searchQuery;
@Column(name = "METADATA", length = 4096)
private String metaData;
@ManyToOne(targetEntity = ApplicationInterfaceEntity.class)
@JoinColumn(name = "INTERFACE_ID", nullable = false, updatable = false)
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
private ApplicationInterfaceEntity applicationInterface;
public ApplicationOutputEntity() {
}
public String getInterfaceId() {
return interfaceId;
}
public void setInterfaceId(String interfaceId) {
this.interfaceId = interfaceId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean getDataMovement() {
return dataMovement;
}
public void setDataMovement(boolean dataMovement) {
this.dataMovement = dataMovement;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public boolean getIsRequired() {
return isRequired;
}
public void setIsRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public boolean getOutputStreaming() {
return outputStreaming;
}
public void setOutputStreaming(boolean outputStreaming) {
this.outputStreaming = outputStreaming;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public boolean getRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public String getSearchQuery() {
return searchQuery;
}
public void setSearchQuery(String searchQuery) {
this.searchQuery = searchQuery;
}
public String getMetaData() {
return metaData;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public ApplicationInterfaceEntity getApplicationInterface() {
return applicationInterface;
}
public void setApplicationInterface(ApplicationInterfaceEntity applicationInterface) {
this.applicationInterface = applicationInterface;
}
}
| 1,035 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/DataMovementInterfaceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.DataMovementProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the data_movement_interface database table.
*/
@Entity
@Table(name = "DATA_MOVEMENT_INTERFACE")
@IdClass(DataMovementInterfacePK.class)
public class DataMovementInterfaceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "COMPUTE_RESOURCE_ID")
@Id
private String computeResourceId;
@Column(name = "DATA_MOVEMENT_INTERFACE_ID")
@Id
private String dataMovementInterfaceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "DATA_MOVEMENT_PROTOCOL")
@Enumerated(EnumType.STRING)
private DataMovementProtocol dataMovementProtocol;
@Column(name = "PRIORITY_ORDER")
private int priorityOrder;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@ManyToOne(targetEntity = ComputeResourceEntity.class)
@JoinColumn(name = "COMPUTE_RESOURCE_ID", nullable = false, updatable = false)
private ComputeResourceEntity computeResource;
public DataMovementInterfaceEntity() {
}
public ComputeResourceEntity getComputeResource() {
return computeResource;
}
public void setComputeResource(ComputeResourceEntity computeResource) {
this.computeResource = computeResource;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public DataMovementProtocol getDataMovementProtocol() {
return dataMovementProtocol;
}
public void setDataMovementProtocol(DataMovementProtocol dataMovementProtocol) {
this.dataMovementProtocol = dataMovementProtocol;
}
public int getPriorityOrder() {
return priorityOrder;
}
public void setPriorityOrder(int priorityOrder) {
this.priorityOrder = priorityOrder;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
} | 1,036 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ComputeResourcePreferencePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the compute_resource_preference database table.
*/
public class ComputeResourcePreferencePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String gatewayId;
private String computeResourceId;
public ComputeResourcePreferencePK() {
}
public ComputeResourcePreferencePK(String gatewayId, String computeResourceId) {
this.gatewayId = gatewayId;
this.computeResourceId = computeResourceId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ComputeResourcePreferencePK)) {
return false;
}
ComputeResourcePreferencePK castOther = (ComputeResourcePreferencePK) other;
return
this.gatewayId.equals(castOther.gatewayId)
&& this.computeResourceId.equals(castOther.computeResourceId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.gatewayId.hashCode();
hash = hash * prime + this.computeResourceId.hashCode();
return hash;
}
} | 1,037 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/SSHAccountProvisionerConfigurationPK.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the ssh_account_provisioner_config database table.
*/
public class SSHAccountProvisionerConfigurationPK implements Serializable {
private static final long serialVersionUID = 1L;
private String gatewayId;
private String resourceId;
private String configName;
public SSHAccountProvisionerConfigurationPK(String gatewayId, String resourceId, String configName) {
this.gatewayId = gatewayId;
this.resourceId = resourceId;
this.configName = configName;
}
public SSHAccountProvisionerConfigurationPK() {}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof SSHAccountProvisionerConfigurationPK)) return false;
SSHAccountProvisionerConfigurationPK that = (SSHAccountProvisionerConfigurationPK) o;
if (!gatewayId.equals(that.gatewayId)) return false;
if (!resourceId.equals(that.resourceId)) return false;
return configName.equals(that.configName);
}
@Override
public int hashCode() {
int result = gatewayId.hashCode();
result = 31 * result + resourceId.hashCode();
result = 31 * result + configName.hashCode();
return result;
}
}
| 1,038 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/JobManagerCommandPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.appcatalog.computeresource.JobManagerCommand;
import java.io.Serializable;
/**
* The primary key class for the job_manager_command database table.
*/
public class JobManagerCommandPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String resourceJobManagerId;
private JobManagerCommand commandType;
public JobManagerCommandPK() {
}
public String getResourceJobManagerId() {
return resourceJobManagerId;
}
public void setResourceJobManagerId(String resourceJobManagerId) {
this.resourceJobManagerId = resourceJobManagerId;
}
public JobManagerCommand getCommandType() {
return commandType;
}
public void setCommandType(JobManagerCommand commandType) {
this.commandType = commandType;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof JobManagerCommandPK)) {
return false;
}
JobManagerCommandPK castOther = (JobManagerCommandPK) other;
return
this.resourceJobManagerId.equals(castOther.resourceJobManagerId)
&& this.commandType.equals(castOther.commandType);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.resourceJobManagerId.hashCode();
hash = hash * prime + this.commandType.hashCode();
return hash;
}
} | 1,039 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ScpDataMovementEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the scp_data_movement database table.
*/
@Entity
@Table(name = "SCP_DATA_MOVEMENT")
public class ScpDataMovementEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DATA_MOVEMENT_INTERFACE_ID")
private String dataMovementInterfaceId;
@Column(name = "ALTERNATIVE_SCP_HOSTNAME")
private String alternativeSCPHostName;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "QUEUE_DESCRIPTION")
private String queueDescription;
@Column(name = "SECURITY_PROTOCOL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@Column(name = "SSH_PORT")
private int sshPort;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
public ScpDataMovementEntity() {
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public String getAlternativeSCPHostName() {
return alternativeSCPHostName;
}
public void setAlternativeSCPHostName(String alternativeSCPHostName) {
this.alternativeSCPHostName = alternativeSCPHostName;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getQueueDescription() {
return queueDescription;
}
public void setQueueDescription(String queueDescription) {
this.queueDescription = queueDescription;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol = securityProtocol;
}
public int getSshPort() {
return sshPort;
}
public void setSshPort(int sshPort) {
this.sshPort = sshPort;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
} | 1,040 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationOutputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import java.io.Serializable;
/**
* The primary key class for the application_output database table.
*
*/
public class ApplicationOutputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String interfaceId;
private String name;
public ApplicationOutputPK() {
}
public String getInterfaceId() {
return interfaceId;
}
public void setInterfaceId(String interfaceId) {
this.interfaceId = interfaceId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ApplicationOutputPK)) {
return false;
}
ApplicationOutputPK castOther = (ApplicationOutputPK)other;
return
this.interfaceId.equals(castOther.interfaceId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.interfaceId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 1,041 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/StorageInterfaceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.DataMovementProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the storage_interface database table.
*/
@Entity
@Table(name = "STORAGE_INTERFACE")
@IdClass(StorageInterfacePK.class)
public class StorageInterfaceEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="STORAGE_RESOURCE_ID")
private String storageResourceId;
@Id
@Column(name="DATA_MOVEMENT_INTERFACE_ID")
private String dataMovementInterfaceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "DATA_MOVEMENT_PROTOCOL")
@Enumerated(EnumType.STRING)
private DataMovementProtocol dataMovementProtocol;
@Column(name = "PRIORITY_ORDER")
private int priorityOrder;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@ManyToOne(targetEntity = StorageResourceEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "STORAGE_RESOURCE_ID")
private StorageResourceEntity storageResource;
public StorageInterfaceEntity() {
}
public String getStorageResourceId() {
return storageResourceId;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public StorageResourceEntity getStorageResource() {
return storageResource;
}
public void setStorageResource(StorageResourceEntity storageResource) {
this.storageResource = storageResource;
}
public DataMovementProtocol getDataMovementProtocol() {
return dataMovementProtocol;
}
public void setDataMovementProtocol(DataMovementProtocol dataMovementProtocol) {
this.dataMovementProtocol = dataMovementProtocol;
}
public int getPriorityOrder() {
return priorityOrder;
}
public void setPriorityOrder(int priorityOrder) {
this.priorityOrder = priorityOrder;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
} | 1,042 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationModuleEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the application_module database table.
*
*/
@Entity
@Table(name = "APPLICATION_MODULE")
public class ApplicationModuleEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "MODULE_ID")
private String appModuleId;
@Column(name = "CREATION_TIME", nullable = false, updatable = false)
private Timestamp creationTime;
@Column(name = "GATEWAY_ID", nullable = false, updatable = false)
private String gatewayId;
@Column(name = "MODULE_DESC")
private String appModuleDescription;
@Column(name = "MODULE_NAME")
private String appModuleName;
@Column(name = "MODULE_VERSION")
private String appModuleVersion;
@Column(name = "UPDATE_TIME", nullable = false)
private Timestamp updateTime;
public ApplicationModuleEntity() {
}
public String getAppModuleId() {
return appModuleId;
}
public void setAppModuleId(String appModuleId) {
this.appModuleId = appModuleId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getAppModuleDescription() {
return appModuleDescription;
}
public void setAppModuleDescription(String appModuleDescription) {
this.appModuleDescription = appModuleDescription;
}
public String getAppModuleName() {
return appModuleName;
}
public void setAppModuleName(String appModuleName) {
this.appModuleName = appModuleName;
}
public String getAppModuleVersion() {
return appModuleVersion;
}
public void setAppModuleVersion(String appModuleVersion) {
this.appModuleVersion = appModuleVersion;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
}
| 1,043 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UserComputeResourcePreferenceEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* The persistent class for the user_compute_resource_preference database table.
*/
@Entity
@Table(name = "USER_COMPUTE_RESOURCE_PREFERENCE")
@IdClass(UserComputeResourcePreferencePK.class)
public class UserComputeResourcePreferenceEntity {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "RESOURCE_ID")
private String computeResourceId;
@Id
@Column(name = "USER_ID")
private String userId;
@Id
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "PREFERED_BATCH_QUEUE")
private String preferredBatchQueue;
@Column(name = "RESOURCE_CS_TOKEN")
private String resourceSpecificCredentialStoreToken;
@Column(name = "LOGIN_USERNAME")
private String loginUserName;
@Column(name = "ALLOCATION_PROJECT_NUMBER")
private String allocationProjectNumber;
@Column(name = "QUALITY_OF_SERVICE")
private String qualityOfService;
@Column(name = "RESERVATION")
private String reservation;
@Column(name = "RESERVATION_START_TIME")
private Timestamp reservationStartTime;
@Column(name = "RESERVATION_END_TIME")
private Timestamp reservationEndTime;
@Column(name = "SCRATCH_LOCATION")
private String scratchLocation;
@Column(name = "VALIDATED")
private boolean validated;
@ManyToOne(targetEntity = UserResourceProfileEntity.class, cascade = CascadeType.MERGE)
@JoinColumns({
@JoinColumn(name = "USER_ID"),
@JoinColumn(name="GATEWAY_ID")
})
private UserResourceProfileEntity userResourceProfile;
public UserComputeResourcePreferenceEntity() {
}
public String getComputeResourceId() {
return computeResourceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getPreferredBatchQueue() {
return preferredBatchQueue;
}
public void setPreferredBatchQueue(String preferredBatchQueue) {
this.preferredBatchQueue = preferredBatchQueue;
}
public String getResourceSpecificCredentialStoreToken() {
return resourceSpecificCredentialStoreToken;
}
public void setResourceSpecificCredentialStoreToken(String resourceSpecificCredentialStoreToken) {
this.resourceSpecificCredentialStoreToken = resourceSpecificCredentialStoreToken;
}
public String getLoginUserName() {
return loginUserName;
}
public void setLoginUserName(String loginUserName) {
this.loginUserName = loginUserName;
}
public String getAllocationProjectNumber() {
return allocationProjectNumber;
}
public void setAllocationProjectNumber(String allocationProjectNumber) {
this.allocationProjectNumber = allocationProjectNumber;
}
public String getQualityOfService() {
return qualityOfService;
}
public void setQualityOfService(String qualityOfService) {
this.qualityOfService = qualityOfService;
}
public String getReservation() {
return reservation;
}
public void setReservation(String reservation) {
this.reservation = reservation;
}
public Timestamp getReservationStartTime() {
return reservationStartTime;
}
public void setReservationStartTime(Timestamp reservationStartTime) {
this.reservationStartTime = reservationStartTime;
}
public Timestamp getReservationEndTime() {
return reservationEndTime;
}
public void setReservationEndTime(Timestamp reservationEndTime) {
this.reservationEndTime = reservationEndTime;
}
public String getScratchLocation() {
return scratchLocation;
}
public void setScratchLocation(String scratchLocation) {
this.scratchLocation = scratchLocation;
}
public boolean isValidated() {
return validated;
}
public void setValidated(boolean validated) {
this.validated = validated;
}
public UserResourceProfileEntity getUserResourceProfile() {
return userResourceProfile;
}
public void setUserResourceProfile(UserResourceProfileEntity userResourceProfile) {
this.userResourceProfile = userResourceProfile;
}
}
| 1,044 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/GridftpDataMovementEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the gridftp_data_movement database table.
*/
@Entity
@Table(name = "GRIDFTP_DATA_MOVEMENT")
public class GridftpDataMovementEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DATA_MOVEMENT_INTERFACE_ID")
private String dataMovementInterfaceId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "SECURITY_PROTOCOL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
public GridftpDataMovementEntity() {
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol = securityProtocol;
}
public Timestamp getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
} | 1,045 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/UnicoreDatamovementEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import org.apache.airavata.model.data.movement.SecurityProtocol;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* The persistent class for the unicore_datamovement database table.
*
*/
@Entity
@Table(name="UNICORE_DATAMOVEMENT")
public class UnicoreDatamovementEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="DATAMOVEMENT_ID")
private String dataMovementInterfaceId;
@Column(name="SECURITY_PROTOCAL")
@Enumerated(EnumType.STRING)
private SecurityProtocol securityProtocol;
@Column(name="UNICORE_ENDPOINT_URL")
private String unicoreEndpointUrl;
public UnicoreDatamovementEntity() {
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
public SecurityProtocol getSecurityProtocol() {
return securityProtocol;
}
public void setSecurityProtocol(SecurityProtocol securityProtocol) {
this.securityProtocol = securityProtocol;
}
public String getUnicoreEndpointUrl() {
return unicoreEndpointUrl;
}
public void setUnicoreEndpointUrl(String unicoreEndpointUrl) {
this.unicoreEndpointUrl = unicoreEndpointUrl;
}
}
| 1,046 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/LocalDataMovementEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.appcatalog;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* The persistent class for the local_data_movement database table.
*/
@Entity
@Table(name = "LOCAL_DATA_MOVEMENT")
public class LocalDataMovementEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "DATA_MOVEMENT_INTERFACE_ID")
private String dataMovementInterfaceId;
public LocalDataMovementEntity() {
}
public String getDataMovementInterfaceId() {
return dataMovementInterfaceId;
}
public void setDataMovementInterfaceId(String dataMovementInterfaceId) {
this.dataMovementInterfaceId = dataMovementInterfaceId;
}
} | 1,047 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the workflow_status database table.
*/
@Entity
@Table(name = "WORKFLOW_STATUS")
@IdClass(WorkflowStatusPK.class)
public class WorkflowStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STATUS_ID")
private String statusId;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Column(name = "REASON")
private String reason;
@Column(name = "STATE")
private String state;
@Column(name = "UPDATE_TIME")
private Timestamp timeOfStateChange;
public WorkflowStatusEntity() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Timestamp getTimeOfStateChange() {
return timeOfStateChange;
}
public void setTimeOfStateChange(Timestamp timeOfStateChange) {
this.timeOfStateChange = timeOfStateChange;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
} | 1,048 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/PortEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import org.apache.airavata.model.ComponentStatus;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the port database table.
*/
@Entity
@Table(name = "PORT")
@IdClass(PortPK.class)
public class PortEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "PORT_ID")
private String portId;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Column(name = "COMPONENT_STATUS_ID")
private ComponentStatus status;
@Column(name = "CREATED_TIME")
private Timestamp createdTime;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "NAME")
private String name;
public PortEntity() {
}
public String getPortId() {
return portId;
}
public void setPortId(String portId) {
this.portId = portId;
}
public ComponentStatus getComponentStatusId() {
return status;
}
public void setComponentStatusId(ComponentStatus status) {
this.status = status;
}
public Timestamp getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Timestamp createdTime) {
this.createdTime = createdTime;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
} | 1,049 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the workflow_input database table.
*/
@Entity
@Table(name = "WORKFLOW_INPUT")
@IdClass(WorkflowInputPK.class)
public class WorkflowInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Id
@Column(name = "INPUT_KEY")
private String name;
@Column(name = "APP_ARGUMENT")
private String applicationArgument;
@Column(name = "DATA_STAGED")
private boolean dataStaged;
@Column(name = "DATA_TYPE")
private String type;
@Column(name = "INPUT_ORDER")
private int inputOrder;
@Column(name = "INPUT_VALUE")
private String inputValue;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "METADATA")
private String metaData;
@Column(name = "REQUIRED_TO_COMMANDLINE")
private boolean requiredToAddedToCommandLine;
@Column(name = "STANDARD_INPUT")
private boolean standardInput;
@Column(name = "USER_FRIENDLY_DESC")
private String userFriendlyDescription;
@ManyToOne(targetEntity = WorkflowEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "TEMPLATE_ID")
private WorkflowEntity workflow;
public WorkflowInputEntity() {
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public boolean getDataStaged() {
return dataStaged;
}
public void setDataStaged(boolean dataStaged) {
this.dataStaged = dataStaged;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getInputOrder() {
return inputOrder;
}
public void setInputOrder(int inputOrder) {
this.inputOrder = inputOrder;
}
public String getInputValue() {
return inputValue;
}
public void setInputValue(String inputValue) {
this.inputValue = inputValue;
}
public boolean getIsRequired() {
return isRequired;
}
public void setIsRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public String getMetaData() {
return metaData;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public boolean getRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public boolean getStandardInput() {
return standardInput;
}
public void setStandardInput(boolean standardInput) {
this.standardInput = standardInput;
}
public String getUserFriendlyDescription() {
return userFriendlyDescription;
}
public void setUserFriendlyDescription(String userFriendlyDescription) {
this.userFriendlyDescription = userFriendlyDescription;
}
public WorkflowEntity getWorkflow() {
return workflow;
}
public void setWorkflow(WorkflowEntity workflow) {
this.workflow = workflow;
}
} | 1,050 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowInputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import java.io.Serializable;
/**
* The primary key class for the workflow_input database table.
*/
public class WorkflowInputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String templateId;
private String name;
public WorkflowInputPK() {
}
public String getTemplateId() {
return this.templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof WorkflowInputPK)) {
return false;
}
WorkflowInputPK castOther = (WorkflowInputPK) other;
return
this.templateId.equals(castOther.templateId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.templateId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 1,051 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/EdgePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import java.io.Serializable;
/**
* The primary key class for the edge database table.
*/
public class EdgePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String edgeId;
private String templateId;
public EdgePK() {
}
public String getEdgeId() {
return edgeId;
}
public void setEdgeId(String edgeId) {
this.edgeId = edgeId;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof EdgePK)) {
return false;
}
EdgePK castOther = (EdgePK) other;
return
this.edgeId.equals(castOther.edgeId)
&& this.templateId.equals(castOther.templateId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.edgeId.hashCode();
hash = hash * prime + this.templateId.hashCode();
return hash;
}
} | 1,052 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/NodePK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import java.io.Serializable;
/**
* The primary key class for the node database table.
*/
public class NodePK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String nodeId;
private String templateId;
public NodePK() {
}
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof NodePK)) {
return false;
}
NodePK castOther = (NodePK) other;
return
this.nodeId.equals(castOther.nodeId)
&& this.templateId.equals(castOther.templateId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.nodeId.hashCode();
hash = hash * prime + this.templateId.hashCode();
return hash;
}
} | 1,053 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowOutputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import java.io.Serializable;
/**
* The primary key class for the workflow_output database table.
*
*/
public class WorkflowOutputPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String templateId;
private String name;
public WorkflowOutputPK() {
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof WorkflowOutputPK)) {
return false;
}
WorkflowOutputPK castOther = (WorkflowOutputPK)other;
return
this.templateId.equals(castOther.templateId)
&& this.name.equals(castOther.name);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.templateId.hashCode();
hash = hash * prime + this.name.hashCode();
return hash;
}
} | 1,054 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import org.apache.airavata.model.application.io.InputDataObjectType;
import org.apache.airavata.model.application.io.OutputDataObjectType;
import java.nio.ByteBuffer;
import java.util.List;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the workflow database table.
*/
@Entity
@Table(name="WORKFLOW")
public class WorkflowEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Column(name = "CREATED_USER")
private String createdUser;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Column(name = "GATEWAY_ID")
private String gatewayId;
@Column(name = "GRAPH")
private String graph;
@Column(name = "IMAGE")
private ByteBuffer image;
@Column(name = "UPDATE_TIME")
private Timestamp updateTime;
@Column(name = "WORKFLOW_NAME")
private String name;
@OneToMany(targetEntity = WorkflowInputEntity.class, cascade = CascadeType.ALL,
mappedBy = "workflow", fetch = FetchType.EAGER)
private List<WorkflowInputEntity> workflowInputs;
@OneToMany(targetEntity = WorkflowOutputEntity.class, cascade = CascadeType.ALL,
mappedBy = "workflow", fetch = FetchType.EAGER)
private List<WorkflowOutputEntity> workflowOutputs;
public WorkflowEntity() {
}
public String getTemplateId() {
return this.templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getCreatedUser() {
return this.createdUser;
}
public void setCreatedUser(String createdUser) {
this.createdUser = createdUser;
}
public Timestamp getCreationTime() {
return this.creationTime;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public String getGatewayId() {
return this.gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public String getGraph() {
return this.graph;
}
public void setGraph(String graph) {
this.graph = graph;
}
public ByteBuffer getImage() {
return this.image;
}
public void setImage(ByteBuffer image) {
this.image = image;
}
public Timestamp getUpdateTime() {
return this.updateTime;
}
public void setUpdateTime(Timestamp updateTime) {
this.updateTime = updateTime;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<WorkflowInputEntity> getWorkflowInputs() {
return workflowInputs;
}
public void setWorkflowInputs(List<WorkflowInputEntity> workflowInputs) {
this.workflowInputs = workflowInputs;
}
public List<WorkflowOutputEntity> getWorkflowOutputs() {
return workflowOutputs;
}
public void setWorkflowOutputs(List<WorkflowOutputEntity> workflowOutputs) {
this.workflowOutputs = workflowOutputs;
}
} | 1,055 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/EdgeEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import org.apache.airavata.model.ComponentStatus;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the edge database table.
*/
@Entity
@Table(name = "EDGE")
@IdClass(EdgePK.class)
public class EdgeEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "EDGE_ID")
private String edgeId;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Column(name = "COMPONENT_STATUS_ID")
private ComponentStatus status;
@Column(name = "CREATED_TIME")
private Timestamp createdTime;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "NAME")
private String name;
public EdgeEntity() {
}
public String getEdgeId() {
return edgeId;
}
public void setEdgeId(String edgeId) {
this.edgeId = edgeId;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public ComponentStatus getStatus() {
return status;
}
public void setStatus(ComponentStatus status) {
this.status = status;
}
public Timestamp getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Timestamp createdTime) {
this.createdTime = createdTime;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} | 1,056 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import java.io.Serializable;
/**
* The primary key class for the workflow_status database table.
*/
public class WorkflowStatusPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String statusId;
private String templateId;
public WorkflowStatusPK() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof WorkflowStatusPK)) {
return false;
}
WorkflowStatusPK castOther = (WorkflowStatusPK) other;
return
this.statusId.equals(castOther.statusId)
&& this.templateId.equals(castOther.templateId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.statusId.hashCode();
hash = hash * prime + this.templateId.hashCode();
return hash;
}
} | 1,057 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/ComponentStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the component_status database table.
*/
@Entity
@Table(name = "COMPONENT_STATUS")
public class ComponentStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "STATUS_ID")
private String statusId;
@Column(name = "REASON")
private String reason;
@Column(name = "STATE")
private String state;
@Column(name = "UPDATE_TIME")
private Timestamp timeofStateChange;
@Column(name = "TEMPLATE_ID")
private String templateId;
public ComponentStatusEntity() {
}
public String getStatusId() {
return statusId;
}
public void setStatusId(String statusId) {
this.statusId = statusId;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Timestamp getTimeofStateChange() {
return timeofStateChange;
}
public void setTimeofStateChange(Timestamp timeofStateChange) {
this.timeofStateChange = timeofStateChange;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
} | 1,058 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/WorkflowOutputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
/**
* The persistent class for the workflow_output database table.
*
*/
@Entity
@Table(name="WORKFLOW_OUTPUT")
@IdClass(WorkflowOutputPK.class)
public class WorkflowOutputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Id
@Column(name = "OUTPUT_KEY")
private String name;
@Column(name="APP_ARGUMENT")
private String applicationArgument;
@Column(name="DATA_MOVEMENT")
private short dataMovement;
@Column(name="DATA_NAME_LOCATION")
private String location;
@Column(name="DATA_TYPE")
private String type;
@Column(name="IS_REQUIRED")
private short isRequired;
@Column(name="OUTPUT_STREAMING")
private short outputStreaming;
@Column(name="OUTPUT_VALUE")
private String value;
@Column(name="REQUIRED_TO_COMMANDLINE")
private short requiredToAddedToCommandLine;
@Column(name="SEARCH_QUERY")
private String searchQuery;
@ManyToOne(targetEntity = WorkflowEntity.class, cascade = CascadeType.MERGE)
@JoinColumn(name = "TEMPLATE_ID")
private WorkflowEntity workflow;
public WorkflowOutputEntity() {
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getApplicationArgument() {
return applicationArgument;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public short getDataMovement() {
return dataMovement;
}
public void setDataMovement(short dataMovement) {
this.dataMovement = dataMovement;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public short getIsRequired() {
return isRequired;
}
public void setIsRequired(short isRequired) {
this.isRequired = isRequired;
}
public short getOutputStreaming() {
return outputStreaming;
}
public void setOutputStreaming(short outputStreaming) {
this.outputStreaming = outputStreaming;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public short getRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public void setRequiredToAddedToCommandLine(short requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public String getSearchQuery() {
return searchQuery;
}
public void setSearchQuery(String searchQuery) {
this.searchQuery = searchQuery;
}
public WorkflowEntity getWorkflow() {
return workflow;
}
public void setWorkflow(WorkflowEntity workflow) {
this.workflow = workflow;
}
} | 1,059 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/PortPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import java.io.Serializable;
/**
* The primary key class for the port database table.
*
*/
public class PortPK implements Serializable {
//default serial version id, required for serializable classes.
private static final long serialVersionUID = 1L;
private String portId;
private String templateId;
public PortPK() {
}
public String getPortId() {
return portId;
}
public void setPortId(String portId) {
this.portId = portId;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof PortPK)) {
return false;
}
PortPK castOther = (PortPK)other;
return
this.portId.equals(castOther.portId)
&& this.templateId.equals(castOther.templateId);
}
public int hashCode() {
final int prime = 31;
int hash = 17;
hash = hash * prime + this.portId.hashCode();
hash = hash * prime + this.templateId.hashCode();
return hash;
}
} | 1,060 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/workflowcatalog/NodeEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.workflowcatalog;
import org.apache.airavata.model.ComponentStatus;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the node database table.
*/
@Entity
@Table(name = "NODE")
@IdClass(NodePK.class)
public class NodeEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "NODE_ID")
private String nodeId;
@Id
@Column(name = "TEMPLATE_ID")
private String templateId;
@Column(name = "APPLICATION_ID")
private String applicationId;
@Column(name = "APPLICATION_NAME")
private String applicationName;
@Column(name = "COMPONENT_STATUS_ID")
private ComponentStatus status;
@Column(name = "CREATED_TIME")
private Timestamp createdTime;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "NAME")
private String name;
public NodeEntity() {
}
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getApplicationName() {
return applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public ComponentStatus getStatus() {
return status;
}
public void setStatus(ComponentStatus status) {
this.status = status;
}
public Timestamp getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Timestamp createdTime) {
this.createdTime = createdTime;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
} | 1,061 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerErrorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "HANDLER_ERROR")
@IdClass(HandlerErrorPK.class)
public class HandlerErrorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ERROR_ID")
private String errorId;
@Id
@Column(name = "HANDLER_ID")
private String handlerId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Lob
@Column(name = "ACTUAL_ERROR_MESSAGE")
private String actualErrorMessage;
@Lob
@Column(name = "USER_FRIENDLY_MESSAGE")
private String userFriendlyMessage;
@Column(name = "TRANSIENT_OR_PERSISTENT")
private boolean transientOrPersistent;
@Lob
@Column(name = "ROOT_CAUSE_ERROR_ID_LIST")
private String rootCauseErrorIdList;
@ManyToOne(targetEntity = WorkflowHandlerEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = "HANDLER_ID", referencedColumnName = "ID", nullable = false, updatable = false),
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "WORKFLOW_ID", nullable = false, updatable = false)
})
private WorkflowHandlerEntity handler;
public HandlerErrorEntity() {
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public void setActualErrorMessage(String actualErrorMessage) {
this.actualErrorMessage = actualErrorMessage;
}
public void setUserFriendlyMessage(String userFriendlyMessage) {
this.userFriendlyMessage = userFriendlyMessage;
}
public void setTransientOrPersistent(boolean transientOrPersistent) {
this.transientOrPersistent = transientOrPersistent;
}
public void setRootCauseErrorIdList(String rootCauseErrorIdList) {
this.rootCauseErrorIdList = rootCauseErrorIdList;
}
public void setHandler(WorkflowHandlerEntity handler) {
this.handler = handler;
}
public String getErrorId() {
return errorId;
}
public String getHandlerId() {
return handlerId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public String getActualErrorMessage() {
return actualErrorMessage;
}
public String getUserFriendlyMessage() {
return userFriendlyMessage;
}
public boolean isTransientOrPersistent() {
return transientOrPersistent;
}
public String getRootCauseErrorIdList() {
return rootCauseErrorIdList;
}
public WorkflowHandlerEntity getHandler() {
return handler;
}
}
| 1,062 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerInputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.model.application.io.DataType;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "HANDLER_INPUT")
@IdClass(HandlerInputPK.class)
public class HandlerInputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "HANDLER_ID")
private String handlerId;
@Id
@Column(name = "NAME")
private String name;
@Lob
@Column(name = "VALUE")
private String value;
@Column(name = "TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "APPLICATION_ARGUMENT")
private String applicationArgument;
@Column(name = "STANDARD_INPUT")
private boolean standardInput;
@Column(name = "USER_FRIENDLY_DESCRIPTION")
private String userFriendlyDescription;
@Column(name = "METADATA", length = 4096)
private String metaData;
@Column(name = "INPUT_ORDER")
private int inputOrder;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "REQUIRED_TO_ADDED_TO_COMMAND_LINE")
private boolean requiredToAddedToCommandLine;
@Column(name = "DATA_STAGED")
private boolean dataStaged;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@Column(name = "IS_READ_ONLY")
private boolean isReadOnly;
@ManyToOne(targetEntity = WorkflowHandlerEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = "HANDLER_ID", referencedColumnName = "ID", nullable = false, updatable = false),
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "WORKFLOW_ID", nullable = false, updatable = false)
})
private WorkflowHandlerEntity handler;
public HandlerInputEntity() {
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public void setName(String name) {
this.name = name;
}
public void setValue(String value) {
this.value = value;
}
public void setType(DataType type) {
this.type = type;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public void setStandardInput(boolean standardInput) {
this.standardInput = standardInput;
}
public void setUserFriendlyDescription(String userFriendlyDescription) {
this.userFriendlyDescription = userFriendlyDescription;
}
public void setMetaData(String metaData) {
this.metaData = metaData;
}
public void setInputOrder(int inputOrder) {
this.inputOrder = inputOrder;
}
public void setRequired(boolean required) {
isRequired = required;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public void setDataStaged(boolean dataStaged) {
this.dataStaged = dataStaged;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public void setReadOnly(boolean readOnly) {
isReadOnly = readOnly;
}
public void setHandler(WorkflowHandlerEntity handler) {
this.handler = handler;
}
public String getHandlerId() {
return handlerId;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
public DataType getType() {
return type;
}
public String getApplicationArgument() {
return applicationArgument;
}
public boolean isStandardInput() {
return standardInput;
}
public String getUserFriendlyDescription() {
return userFriendlyDescription;
}
public String getMetaData() {
return metaData;
}
public int getInputOrder() {
return inputOrder;
}
public boolean isRequired() {
return isRequired;
}
public boolean isRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public boolean isDataStaged() {
return dataStaged;
}
public String getStorageResourceId() {
return storageResourceId;
}
public boolean isReadOnly() {
return isReadOnly;
}
public WorkflowHandlerEntity getHandler() {
return handler;
}
}
| 1,063 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowConnectionPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class WorkflowConnectionPK implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String workflowId;
public WorkflowConnectionPK() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
WorkflowConnectionPK that = (WorkflowConnectionPK) o;
return Objects.equals(id, that.id) &&
Objects.equals(workflowId, that.workflowId);
}
@Override
public int hashCode() {
return Objects.hash(id, workflowId);
}
}
| 1,064 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowApplicationPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class WorkflowApplicationPK implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String workflowId;
public WorkflowApplicationPK() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
WorkflowApplicationPK that = (WorkflowApplicationPK) o;
return Objects.equals(id, that.id) &&
Objects.equals(workflowId, that.workflowId);
}
@Override
public int hashCode() {
return Objects.hash(id, workflowId);
}
}
| 1,065 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/AiravataWorkflowStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class AiravataWorkflowStatusPK implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String workflowId;
public AiravataWorkflowStatusPK() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AiravataWorkflowStatusPK that = (AiravataWorkflowStatusPK) o;
return Objects.equals(id, that.id) &&
Objects.equals(workflowId, that.workflowId);
}
@Override
public int hashCode() {
return Objects.hash(id, workflowId);
}
}
| 1,066 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowHandlerPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class WorkflowHandlerPK implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String workflowId;
public WorkflowHandlerPK() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
WorkflowHandlerPK that = (WorkflowHandlerPK) o;
return Objects.equals(id, that.id) &&
Objects.equals(workflowId, that.workflowId);
}
@Override
public int hashCode() {
return Objects.hash(id, workflowId);
}
}
| 1,067 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/ApplicationErrorPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class ApplicationErrorPK implements Serializable {
private static final long serialVersionUID = 1L;
private String errorId;
private String applicationId;
public ApplicationErrorPK() {
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getErrorId() {
return errorId;
}
public String getApplicationId() {
return applicationId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApplicationErrorPK that = (ApplicationErrorPK) o;
return Objects.equals(errorId, that.errorId) &&
Objects.equals(applicationId, that.applicationId);
}
@Override
public int hashCode() {
return Objects.hash(errorId, applicationId);
}
}
| 1,068 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/ApplicationStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class ApplicationStatusPK implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String applicationId;
public ApplicationStatusPK() {
}
public void setId(String id) {
this.id = id;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getId() {
return id;
}
public String getApplicationId() {
return applicationId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApplicationStatusPK that = (ApplicationStatusPK) o;
return Objects.equals(id, that.id) &&
Objects.equals(applicationId, that.applicationId);
}
@Override
public int hashCode() {
return Objects.hash(id, applicationId);
}
}
| 1,069 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerOutputEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.model.application.io.DataType;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "HANDLER_OUTPUT")
@IdClass(HandlerOutputPK.class)
public class HandlerOutputEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "HANDLER_ID")
private String handlerId;
@Id
@Column(name = "NAME")
private String name;
@Lob
@Column(name = "VALUE")
private String value;
@Column(name = "TYPE")
@Enumerated(EnumType.STRING)
private DataType type;
@Column(name = "APPLICATION_ARGUMENT")
private String applicationArgument;
@Column(name = "IS_REQUIRED")
private boolean isRequired;
@Column(name = "REQUIRED_TO_ADDED_TO_COMMAND_LINE")
private boolean requiredToAddedToCommandLine;
@Column(name = "DATA_MOVEMENT")
private boolean dataMovement;
@Column(name = "LOCATION")
private String location;
@Column(name = "SEARCH_QUERY")
private String searchQuery;
@Column(name = "OUTPUT_STREAMING")
private boolean outputStreaming;
@Column(name = "STORAGE_RESOURCE_ID")
private String storageResourceId;
@ManyToOne(targetEntity = WorkflowHandlerEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = "HANDLER_ID", referencedColumnName = "ID", nullable = false, updatable = false),
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "WORKFLOW_ID", nullable = false, updatable = false)
})
private WorkflowHandlerEntity handler;
public HandlerOutputEntity() {
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public void setName(String name) {
this.name = name;
}
public void setValue(String value) {
this.value = value;
}
public void setType(DataType type) {
this.type = type;
}
public void setApplicationArgument(String applicationArgument) {
this.applicationArgument = applicationArgument;
}
public void setRequired(boolean required) {
isRequired = required;
}
public void setRequiredToAddedToCommandLine(boolean requiredToAddedToCommandLine) {
this.requiredToAddedToCommandLine = requiredToAddedToCommandLine;
}
public void setDataMovement(boolean dataMovement) {
this.dataMovement = dataMovement;
}
public void setLocation(String location) {
this.location = location;
}
public void setSearchQuery(String searchQuery) {
this.searchQuery = searchQuery;
}
public void setOutputStreaming(boolean outputStreaming) {
this.outputStreaming = outputStreaming;
}
public void setStorageResourceId(String storageResourceId) {
this.storageResourceId = storageResourceId;
}
public void setHandler(WorkflowHandlerEntity handler) {
this.handler = handler;
}
public String getHandlerId() {
return handlerId;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
public DataType getType() {
return type;
}
public String getApplicationArgument() {
return applicationArgument;
}
public boolean isRequired() {
return isRequired;
}
public boolean isRequiredToAddedToCommandLine() {
return requiredToAddedToCommandLine;
}
public boolean isDataMovement() {
return dataMovement;
}
public String getLocation() {
return location;
}
public String getSearchQuery() {
return searchQuery;
}
public boolean isOutputStreaming() {
return outputStreaming;
}
public String getStorageResourceId() {
return storageResourceId;
}
public WorkflowHandlerEntity getHandler() {
return handler;
}
}
| 1,070 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerStatusPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class HandlerStatusPK implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String handlerId;
public HandlerStatusPK() {
}
public void setId(String id) {
this.id = id;
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public String getId() {
return id;
}
public String getHandlerId() {
return handlerId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HandlerStatusPK that = (HandlerStatusPK) o;
return Objects.equals(id, that.id) &&
Objects.equals(handlerId, that.handlerId);
}
@Override
public int hashCode() {
return Objects.hash(id, handlerId);
}
}
| 1,071 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/AiravataWorkflowErrorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "AIRAVATA_WORKFLOW_ERROR")
@IdClass(AiravataWorkflowErrorPK.class)
public class AiravataWorkflowErrorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ERROR_ID")
private String errorId;
@Id
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Lob
@Column(name = "ACTUAL_ERROR_MESSAGE")
private String actualErrorMessage;
@Lob
@Column(name = "USER_FRIENDLY_MESSAGE")
private String userFriendlyMessage;
@Column(name = "TRANSIENT_OR_PERSISTENT")
private boolean transientOrPersistent;
@Lob
@Column(name = "ROOT_CAUSE_ERROR_ID_LIST")
private String rootCauseErrorIdList;
@ManyToOne(targetEntity = AiravataWorkflowEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "ID")
private AiravataWorkflowEntity workflow;
public AiravataWorkflowErrorEntity() {
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public void setActualErrorMessage(String actualErrorMessage) {
this.actualErrorMessage = actualErrorMessage;
}
public void setUserFriendlyMessage(String userFriendlyMessage) {
this.userFriendlyMessage = userFriendlyMessage;
}
public void setTransientOrPersistent(boolean transientOrPersistent) {
this.transientOrPersistent = transientOrPersistent;
}
public void setRootCauseErrorIdList(String rootCauseErrorIdList) {
this.rootCauseErrorIdList = rootCauseErrorIdList;
}
public void setWorkflow(AiravataWorkflowEntity workflow) {
this.workflow = workflow;
}
public String getErrorId() {
return errorId;
}
public String getWorkflowId() {
return workflowId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public String getActualErrorMessage() {
return actualErrorMessage;
}
public String getUserFriendlyMessage() {
return userFriendlyMessage;
}
public boolean isTransientOrPersistent() {
return transientOrPersistent;
}
public String getRootCauseErrorIdList() {
return rootCauseErrorIdList;
}
public AiravataWorkflowEntity getWorkflow() {
return workflow;
}
}
| 1,072 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/ApplicationStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.model.workflow.ApplicationState;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "APPLICATION_STATUS")
@IdClass(ApplicationStatusPK.class)
public class ApplicationStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Id
@Column(name = "APPLICATION_ID")
private String applicationId;
@Column(name = "STATE")
@Enumerated(EnumType.STRING)
private ApplicationState state;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@ManyToOne(targetEntity = WorkflowApplicationEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "APPLICATION_ID", referencedColumnName = "ID")
private WorkflowApplicationEntity application;
public ApplicationStatusEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public void setState(ApplicationState state) {
this.state = state;
}
public void setDescription(String description) {
this.description = description;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setApplication(WorkflowApplicationEntity application) {
this.application = application;
}
public String getId() {
return id;
}
public String getApplicationId() {
return applicationId;
}
public ApplicationState getState() {
return state;
}
public String getDescription() {
return description;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public WorkflowApplicationEntity getApplication() {
return application;
}
}
| 1,073 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/AiravataWorkflowStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.model.workflow.WorkflowState;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "AIRAVATA_WORKFLOW_STATUS")
@IdClass(AiravataWorkflowStatusPK.class)
public class AiravataWorkflowStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Id
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "STATE")
@Enumerated(EnumType.STRING)
private WorkflowState state;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@ManyToOne(targetEntity = AiravataWorkflowEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "ID")
private AiravataWorkflowEntity workflow;
public AiravataWorkflowStatusEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public void setState(WorkflowState state) {
this.state = state;
}
public void setDescription(String description) {
this.description = description;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setWorkflow(AiravataWorkflowEntity workflow) {
this.workflow = workflow;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
public WorkflowState getState() {
return state;
}
public String getDescription() {
return description;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public AiravataWorkflowEntity getWorkflow() {
return workflow;
}
}
| 1,074 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowHandlerEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.model.workflow.HandlerType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
@Entity
@Table(name = "WORKFLOW_HANDLER")
@IdClass(WorkflowHandlerPK.class)
public class WorkflowHandlerEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Id
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "TYPE")
@Enumerated(EnumType.STRING)
private HandlerType type;
@Column(name = "CREATED_AT")
private Timestamp createdAt;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@ManyToOne(targetEntity = AiravataWorkflowEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "ID")
private AiravataWorkflowEntity workflow;
@OneToMany(targetEntity = HandlerStatusEntity.class, cascade = CascadeType.ALL, mappedBy = "handler", fetch = FetchType.EAGER)
private List<HandlerStatusEntity> statuses;
@OneToMany(targetEntity = HandlerErrorEntity.class, cascade = CascadeType.ALL, mappedBy = "handler", fetch = FetchType.EAGER)
private List<HandlerErrorEntity> errors;
@OneToMany(targetEntity = HandlerInputEntity.class, cascade = CascadeType.ALL, mappedBy = "handler", fetch = FetchType.EAGER)
private List<HandlerInputEntity> inputs;
@OneToMany(targetEntity = HandlerOutputEntity.class, cascade = CascadeType.ALL, mappedBy = "handler", fetch = FetchType.EAGER)
private List<HandlerOutputEntity> outputs;
public WorkflowHandlerEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public void setType(HandlerType type) {
this.type = type;
}
public void setCreatedAt(Timestamp createdAt) {
this.createdAt = createdAt;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setWorkflow(AiravataWorkflowEntity workflow) {
this.workflow = workflow;
}
public void setStatuses(List<HandlerStatusEntity> statuses) {
this.statuses = statuses;
}
public void setErrors(List<HandlerErrorEntity> errors) {
this.errors = errors;
}
public void setInputs(List<HandlerInputEntity> inputs) {
this.inputs = inputs;
}
public void setOutputs(List<HandlerOutputEntity> outputs) {
this.outputs = outputs;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
public HandlerType getType() {
return type;
}
public Timestamp getCreatedAt() {
return createdAt;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public AiravataWorkflowEntity getWorkflow() {
return workflow;
}
public List<HandlerStatusEntity> getStatuses() {
return statuses;
}
public List<HandlerErrorEntity> getErrors() {
return errors;
}
public List<HandlerInputEntity> getInputs() {
return inputs;
}
public List<HandlerOutputEntity> getOutputs() {
return outputs;
}
}
| 1,075 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowApplicationEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.registry.core.entities.expcatalog.ProcessEntity;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
@Entity
@Table(name = "WORKFLOW_APPLICATION")
@IdClass(WorkflowApplicationPK.class)
public class WorkflowApplicationEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Id
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "PROCESS_ID")
private String processId;
@Column(name = "APPLICATION_INTERFACE_ID")
private String applicationInterfaceId;
@Column(name = "COMPUTE_RESOURCE_ID")
private String computeResourceId;
@Column(name = "QUEUE_NAME")
private String queueName;
@Column(name = "NODE_COUNT")
private int nodeCount;
@Column(name = "CORE_COUNT")
private int coreCount;
@Column(name = "WALL_TIME_LIMIT")
private int wallTimeLimit;
@Column(name = "PHYSICAL_MEMORY")
private int physicalMemory;
@Column(name = "CREATED_AT")
private Timestamp createdAt;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@ManyToOne(targetEntity = AiravataWorkflowEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "ID")
private AiravataWorkflowEntity workflow;
@OneToMany(targetEntity = ApplicationStatusEntity.class, cascade = CascadeType.ALL, mappedBy = "application", fetch = FetchType.EAGER)
private List<ApplicationStatusEntity> statuses;
@OneToMany(targetEntity = ApplicationErrorEntity.class, cascade = CascadeType.ALL, mappedBy = "application", fetch = FetchType.EAGER)
private List<ApplicationErrorEntity> errors;
public WorkflowApplicationEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public void setApplicationInterfaceId(String applicationInterfaceId) {
this.applicationInterfaceId = applicationInterfaceId;
}
public void setComputeResourceId(String computeResourceId) {
this.computeResourceId = computeResourceId;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public void setNodeCount(int nodeCount) {
this.nodeCount = nodeCount;
}
public void setCoreCount(int coreCount) {
this.coreCount = coreCount;
}
public void setWallTimeLimit(int wallTimeLimit) {
this.wallTimeLimit = wallTimeLimit;
}
public void setPhysicalMemory(int physicalMemory) {
this.physicalMemory = physicalMemory;
}
public void setCreatedAt(Timestamp createdAt) {
this.createdAt = createdAt;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setWorkflow(AiravataWorkflowEntity workflow) {
this.workflow = workflow;
}
public void setStatuses(List<ApplicationStatusEntity> statuses) {
this.statuses = statuses;
}
public void setErrors(List<ApplicationErrorEntity> errors) {
this.errors = errors;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
public String getProcessId() {
return processId;
}
public String getApplicationInterfaceId() {
return applicationInterfaceId;
}
public String getComputeResourceId() {
return computeResourceId;
}
public String getQueueName() {
return queueName;
}
public int getNodeCount() {
return nodeCount;
}
public int getCoreCount() {
return coreCount;
}
public int getWallTimeLimit() {
return wallTimeLimit;
}
public int getPhysicalMemory() {
return physicalMemory;
}
public Timestamp getCreatedAt() {
return createdAt;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public AiravataWorkflowEntity getWorkflow() {
return workflow;
}
public List<ApplicationStatusEntity> getStatuses() {
return statuses;
}
public List<ApplicationErrorEntity> getErrors() {
return errors;
}
}
| 1,076 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerErrorPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class HandlerErrorPK implements Serializable {
private static final long serialVersionUID = 1L;
private String errorId;
private String handlerId;
public HandlerErrorPK() {
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public String getErrorId() {
return errorId;
}
public String getHandlerId() {
return handlerId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HandlerErrorPK that = (HandlerErrorPK) o;
return Objects.equals(errorId, that.errorId) &&
Objects.equals(handlerId, that.handlerId);
}
@Override
public int hashCode() {
return Objects.hash(errorId, handlerId);
}
}
| 1,077 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowDataBlockEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
@Entity
@Table(name = "WORKFLOW_DATA_BLOCK")
public class WorkflowDataBlockEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "VALUE")
private String value;
@Column(name = "DATA_TYPE")
private String dataType;
@Column(name = "CREATED_AT")
private Timestamp createdAt;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@OneToMany(targetEntity = WorkflowConnectionEntity.class, cascade = CascadeType.ALL, mappedBy = "dataBlock", fetch = FetchType.LAZY)
private List<WorkflowConnectionEntity> connections;
@ManyToOne(targetEntity = AiravataWorkflowEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "ID")
private AiravataWorkflowEntity workflow;
public WorkflowDataBlockEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public void setValue(String value) {
this.value = value;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
public void setCreatedAt(Timestamp createdAt) {
this.createdAt = createdAt;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setConnections(List<WorkflowConnectionEntity> connections) {
this.connections = connections;
}
public void setWorkflow(AiravataWorkflowEntity workflow) {
this.workflow = workflow;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
public String getValue() {
return value;
}
public String getDataType() {
return dataType;
}
public Timestamp getCreatedAt() {
return createdAt;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public List<WorkflowConnectionEntity> getConnections() {
return connections;
}
public AiravataWorkflowEntity getWorkflow() {
return workflow;
}
}
| 1,078 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/AiravataWorkflowEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
@Entity
@Table(name = "AIRAVATA_WORKFLOW")
public class AiravataWorkflowEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Column(name = "EXPERIMENT_ID")
private String experimentId;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "CREATED_AT")
private Timestamp createdAt;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@OneToMany(targetEntity = WorkflowApplicationEntity.class, cascade = CascadeType.ALL, mappedBy = "workflow", fetch = FetchType.EAGER)
private List<WorkflowApplicationEntity> applications;
@OneToMany(targetEntity = WorkflowHandlerEntity.class, cascade = CascadeType.ALL, mappedBy = "workflow", fetch = FetchType.EAGER)
private List<WorkflowHandlerEntity> handlers;
@OneToMany(targetEntity = WorkflowConnectionEntity.class, cascade = CascadeType.ALL, mappedBy = "workflow", fetch = FetchType.EAGER)
private List<WorkflowConnectionEntity> connections;
@OneToMany(targetEntity = AiravataWorkflowStatusEntity.class, cascade = CascadeType.ALL, mappedBy = "workflow", fetch = FetchType.EAGER)
private List<AiravataWorkflowStatusEntity> statuses;
@OneToMany(targetEntity = AiravataWorkflowErrorEntity.class, cascade = CascadeType.ALL, mappedBy = "workflow", fetch = FetchType.EAGER)
private List<AiravataWorkflowErrorEntity> errors;
public AiravataWorkflowEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public void setDescription(String description) {
this.description = description;
}
public void setCreatedAt(Timestamp createdAt) {
this.createdAt = createdAt;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setApplications(List<WorkflowApplicationEntity> applications) {
this.applications = applications;
}
public void setHandlers(List<WorkflowHandlerEntity> handlers) {
this.handlers = handlers;
}
public void setConnections(List<WorkflowConnectionEntity> connections) {
this.connections = connections;
}
public void setStatuses(List<AiravataWorkflowStatusEntity> statuses) {
this.statuses = statuses;
}
public void setErrors(List<AiravataWorkflowErrorEntity> errors) {
this.errors = errors;
}
public String getId() {
return id;
}
public String getExperimentId() {
return experimentId;
}
public String getDescription() {
return description;
}
public Timestamp getCreatedAt() {
return createdAt;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public List<WorkflowApplicationEntity> getApplications() {
return applications;
}
public List<WorkflowHandlerEntity> getHandlers() {
return handlers;
}
public List<WorkflowConnectionEntity> getConnections() {
return connections;
}
public List<AiravataWorkflowStatusEntity> getStatuses() {
return statuses;
}
public List<AiravataWorkflowErrorEntity> getErrors() {
return errors;
}
}
| 1,079 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/AiravataWorkflowErrorPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class AiravataWorkflowErrorPK implements Serializable {
private static final long serialVersionUID = 1L;
private String errorId;
private String workflowId;
public AiravataWorkflowErrorPK() {
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public String getErrorId() {
return errorId;
}
public String getWorkflowId() {
return workflowId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AiravataWorkflowErrorPK that = (AiravataWorkflowErrorPK) o;
return Objects.equals(errorId, that.errorId) &&
Objects.equals(workflowId, that.workflowId);
}
@Override
public int hashCode() {
return Objects.hash(errorId, workflowId);
}
}
| 1,080 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/ApplicationErrorEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "APPLICATION_ERROR")
@IdClass(ApplicationErrorPK.class)
public class ApplicationErrorEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ERROR_ID")
private String errorId;
@Id
@Column(name = "APPLICATION_ID")
private String applicationId;
@Column(name = "CREATION_TIME")
private Timestamp creationTime;
@Lob
@Column(name = "ACTUAL_ERROR_MESSAGE")
private String actualErrorMessage;
@Lob
@Column(name = "USER_FRIENDLY_MESSAGE")
private String userFriendlyMessage;
@Column(name = "TRANSIENT_OR_PERSISTENT")
private boolean transientOrPersistent;
@Lob
@Column(name = "ROOT_CAUSE_ERROR_ID_LIST")
private String rootCauseErrorIdList;
@ManyToOne(targetEntity = WorkflowApplicationEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "APPLICATION_ID", referencedColumnName = "ID")
private WorkflowApplicationEntity application;
public ApplicationErrorEntity() {
}
public void setErrorId(String errorId) {
this.errorId = errorId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public void setCreationTime(Timestamp creationTime) {
this.creationTime = creationTime;
}
public void setActualErrorMessage(String actualErrorMessage) {
this.actualErrorMessage = actualErrorMessage;
}
public void setUserFriendlyMessage(String userFriendlyMessage) {
this.userFriendlyMessage = userFriendlyMessage;
}
public void setTransientOrPersistent(boolean transientOrPersistent) {
this.transientOrPersistent = transientOrPersistent;
}
public void setRootCauseErrorIdList(String rootCauseErrorIdList) {
this.rootCauseErrorIdList = rootCauseErrorIdList;
}
public void setApplication(WorkflowApplicationEntity application) {
this.application = application;
}
public String getErrorId() {
return errorId;
}
public String getApplicationId() {
return applicationId;
}
public Timestamp getCreationTime() {
return creationTime;
}
public String getActualErrorMessage() {
return actualErrorMessage;
}
public String getUserFriendlyMessage() {
return userFriendlyMessage;
}
public boolean isTransientOrPersistent() {
return transientOrPersistent;
}
public String getRootCauseErrorIdList() {
return rootCauseErrorIdList;
}
public WorkflowApplicationEntity getApplication() {
return application;
}
}
| 1,081 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/WorkflowConnectionEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import org.apache.airavata.model.workflow.ComponentType;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "WORKFLOW_CONNECTION")
@IdClass(WorkflowConnectionPK.class)
public class WorkflowConnectionEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Id
@Column(name = "WORKFLOW_ID")
private String workflowId;
@Column(name = "DATA_BLOCK_ID")
private String dataBlockId;
@Column(name = "FROM_TYPE")
@Enumerated(EnumType.STRING)
private ComponentType fromType;
@Column(name = "FROM_ID")
private String fromId;
@Column(name = "FROM_OUTPUT_NAME")
private String fromOutputName;
@Column(name = "TO_TYPE")
@Enumerated(EnumType.STRING)
private ComponentType toType;
@Column(name = "TO_ID")
private String toId;
@Column(name = "TO_INPUT_NAME")
private String toInputName;
@Column(name = "CREATED_AT")
private Timestamp createdAt;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@ManyToOne(targetEntity = AiravataWorkflowEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "ID")
private AiravataWorkflowEntity workflow;
@ManyToOne(targetEntity = WorkflowDataBlockEntity.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "DATA_BLOCK_ID", referencedColumnName = "ID")
private WorkflowDataBlockEntity dataBlock;
public WorkflowConnectionEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setWorkflowId(String workflowId) {
this.workflowId = workflowId;
}
public void setDataBlockId(String dataBlockId) {
this.dataBlockId = dataBlockId;
}
public void setFromType(ComponentType fromType) {
this.fromType = fromType;
}
public void setFromId(String fromId) {
this.fromId = fromId;
}
public void setFromOutputName(String fromOutputName) {
this.fromOutputName = fromOutputName;
}
public void setToType(ComponentType toType) {
this.toType = toType;
}
public void setToId(String toId) {
this.toId = toId;
}
public void setToInputName(String toInputName) {
this.toInputName = toInputName;
}
public void setCreatedAt(Timestamp createdAt) {
this.createdAt = createdAt;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setWorkflow(AiravataWorkflowEntity workflow) {
this.workflow = workflow;
}
public void setDataBlock(WorkflowDataBlockEntity dataBlock) {
this.dataBlock = dataBlock;
}
public String getId() {
return id;
}
public String getWorkflowId() {
return workflowId;
}
public String getDataBlockId() {
return dataBlockId;
}
public ComponentType getFromType() {
return fromType;
}
public String getFromId() {
return fromId;
}
public String getFromOutputName() {
return fromOutputName;
}
public ComponentType getToType() {
return toType;
}
public String getToId() {
return toId;
}
public String getToInputName() {
return toInputName;
}
public Timestamp getCreatedAt() {
return createdAt;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public AiravataWorkflowEntity getWorkflow() {
return workflow;
}
public WorkflowDataBlockEntity getDataBlock() {
return dataBlock;
}
}
| 1,082 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerInputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class HandlerInputPK implements Serializable {
private static final long serialVersionUID = 1L;
private String handlerId;
private String name;
public HandlerInputPK() {
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public void setName(String name) {
this.name = name;
}
public String getHandlerId() {
return handlerId;
}
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HandlerInputPK that = (HandlerInputPK) o;
return Objects.equals(handlerId, that.handlerId) &&
Objects.equals(name, that.name);
}
@Override
public int hashCode() {
return Objects.hash(handlerId, name);
}
}
| 1,083 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerStatusEntity.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Entity
@Table(name = "HANDLER_STATUS")
@IdClass(HandlerStatusPK.class)
public class HandlerStatusEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ID")
private String id;
@Id
@Column(name = "HANDLER_ID")
private String handlerId;
@Column(name = "STATE")
private String state;
@Column(name = "DESCRIPTION")
private String description;
@Column(name = "UPDATED_AT")
private Timestamp updatedAt;
@ManyToOne(targetEntity = WorkflowHandlerEntity.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = "HANDLER_ID", referencedColumnName = "ID", nullable = false, updatable = false),
@JoinColumn(name = "WORKFLOW_ID", referencedColumnName = "WORKFLOW_ID", nullable = false, updatable = false)
})
private WorkflowHandlerEntity handler;
public HandlerStatusEntity() {
}
public void setId(String id) {
this.id = id;
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public void setState(String state) {
this.state = state;
}
public void setDescription(String description) {
this.description = description;
}
public void setUpdatedAt(Timestamp updatedAt) {
this.updatedAt = updatedAt;
}
public void setHandler(WorkflowHandlerEntity handler) {
this.handler = handler;
}
public String getId() {
return id;
}
public String getHandlerId() {
return handlerId;
}
public String getState() {
return state;
}
public String getDescription() {
return description;
}
public Timestamp getUpdatedAt() {
return updatedAt;
}
public WorkflowHandlerEntity getHandler() {
return handler;
}
}
| 1,084 |
0 | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities | Create_ds/airavata/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/entities/airavataworkflowcatalog/HandlerOutputPK.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.airavata.registry.core.entities.airavataworkflowcatalog;
import java.io.Serializable;
import java.util.Objects;
public class HandlerOutputPK implements Serializable {
private static final long serialVersionUID = 1L;
private String handlerId;
private String name;
public HandlerOutputPK() {
}
public void setHandlerId(String handlerId) {
this.handlerId = handlerId;
}
public void setName(String name) {
this.name = name;
}
public String getHandlerId() {
return handlerId;
}
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HandlerOutputPK that = (HandlerOutputPK) o;
return Objects.equals(handlerId, that.handlerId) &&
Objects.equals(name, that.name);
}
@Override
public int hashCode() {
return Objects.hash(handlerId, name);
}
}
| 1,085 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/ApplicationDeployment.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription;
import java.util.List;
import java.util.Map;
public interface ApplicationDeployment {
/**
* Add application deployment
* @param deploymentDescription application deployment
* @return unique id for application deployment
*/
String addApplicationDeployment (ApplicationDeploymentDescription deploymentDescription, String gatewayId) throws AppCatalogException;
/**
* This method will update application deployment
* @param deploymentId unique deployment id
* @param updatedDeployment updated deployment
*/
void updateApplicationDeployment (String deploymentId, ApplicationDeploymentDescription updatedDeployment) throws AppCatalogException;;
/**
* This method will retrive application deployement
* @param deploymentId unique deployment id
* @return application deployment
*/
ApplicationDeploymentDescription getApplicationDeployement (String deploymentId) throws AppCatalogException;
/**
* This method will return a list of application deployments according to given search criteria
* @param filters map should be provided as the field name and it's value
* @return list of application deployments
*/
List<ApplicationDeploymentDescription> getApplicationDeployments(Map<String, String> filters) throws AppCatalogException;
/**
* This method will return a list of all application deployments
* @param gatewayId Gateway ID
* @return list of all application deployments
*/
List<ApplicationDeploymentDescription> getAllApplicationDeployements (String gatewayId) throws AppCatalogException;
/**
* This method will return a list of all application deployments
* @param gatewayId Gateway ID
* @param accessibleAppIds List of Accessible App IDs
* @param accessibleComputeResourceIds List of Accessible Compute Resource IDs
* @return list of all application deployments accessible to the user
*/
List<ApplicationDeploymentDescription> getAccessibleApplicationDeployments(String gatewayId, List<String> accessibleAppIds, List<String> accessibleComputeResourceIds) throws AppCatalogException;
/**
* This method will return a list of all application deployments
* @param gatewayId Gateway ID
* @param appModuleId Application Module ID
* @param accessibleAppIds List of Accessible App Deployment IDs
* @param accessibleComputeResourceIds List of Accessible Compute Resource IDs
* @return list of all application deployments accessible to the user
*/
List<ApplicationDeploymentDescription> getAccessibleApplicationDeployments(String gatewayId, String appModuleId, List<String> accessibleAppIds, List<String> accessibleComputeResourceIds) throws AppCatalogException;
List<String> getAllApplicationDeployementIds () throws AppCatalogException;
/**
* Check whether application deployment exists
* @param deploymentId unique deployment id
* @return true or false
*/
boolean isAppDeploymentExists (String deploymentId) throws AppCatalogException;
/**
* Remove application deployment
* @param deploymentId unique deployment id
*/
void removeAppDeployment (String deploymentId) throws AppCatalogException;
}
| 1,086 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/WorkflowCatalog.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.application.io.OutputDataObjectType;
import org.apache.airavata.model.workflow.AiravataWorkflow;
import java.util.List;
public interface WorkflowCatalog {
// public List<String> getAllWorkflows(String gatewayId) throws WorkflowCatalogException;
public AiravataWorkflow getWorkflow(String workflowId) throws WorkflowCatalogException;
public void deleteWorkflow(String workflowId) throws WorkflowCatalogException;
public String registerWorkflow(AiravataWorkflow workflow, String experimentId) throws WorkflowCatalogException;
public void updateWorkflow(String workflowId, AiravataWorkflow workflow) throws WorkflowCatalogException;
public String getWorkflowId(String experimentId) throws WorkflowCatalogException;
// public boolean isWorkflowExistWithName(String workflowName) throws WorkflowCatalogException;
// public void updateWorkflowOutputs(String workflowId, List<OutputDataObjectType> workflowOutputs) throws WorkflowCatalogException;
}
| 1,087 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/GwyResourceProfile.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference;
import org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile;
import org.apache.airavata.model.appcatalog.gatewayprofile.StoragePreference;
import java.util.List;
public interface GwyResourceProfile {
/**
* This method will add a gateway profile
* @param gatewayProfile gateway profile
* @return gateway id
*/
String addGatewayResourceProfile(GatewayResourceProfile gatewayProfile) throws AppCatalogException;
/**
* This method will update a gateway profile
* @param gatewayId unique gateway id
* @param updatedProfile updated profile
*/
void updateGatewayResourceProfile(String gatewayId, GatewayResourceProfile updatedProfile) throws AppCatalogException;
/**
*
* @param gatewayId
* @return
*/
GatewayResourceProfile getGatewayProfile (String gatewayId) throws AppCatalogException;
/**
* This method will remove a gateway profile
* @param gatewayId unique gateway id
* @return true or false
*/
boolean removeGatewayResourceProfile(String gatewayId) throws AppCatalogException;
boolean removeComputeResourcePreferenceFromGateway(String gatewayId, String preferenceId) throws AppCatalogException;
boolean removeDataStoragePreferenceFromGateway(String gatewayId, String preferenceId) throws AppCatalogException;
/**
* This method will check whether gateway profile exists
* @param gatewayId unique gateway id
* @return true or false
*/
boolean isGatewayResourceProfileExists(String gatewayId) throws AppCatalogException;
/**
*
* @param gatewayId
* @param hostId
* @return ComputeResourcePreference
*/
ComputeResourcePreference getComputeResourcePreference (String gatewayId, String hostId) throws AppCatalogException;
StoragePreference getStoragePreference(String gatewayId, String storageId) throws AppCatalogException;
/**
*
* @param gatewayId
* @return
*/
List<ComputeResourcePreference> getAllComputeResourcePreferences (String gatewayId) throws AppCatalogException;
List<StoragePreference> getAllStoragePreferences(String gatewayId) throws AppCatalogException;
List<String> getGatewayProfileIds (String gatewayName) throws AppCatalogException;
List<GatewayResourceProfile> getAllGatewayProfiles () throws AppCatalogException;
}
| 1,088 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/WorkflowCatalogException.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
public class WorkflowCatalogException extends Exception{
private static final long serialVersionUID = -2849422320139467602L;
public WorkflowCatalogException(Throwable e) {
super(e);
}
public WorkflowCatalogException(String message) {
super(message, null);
}
public WorkflowCatalogException(String message, Throwable e) {
super(message, e);
}
}
| 1,089 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/DataProductInterface.java | package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.data.replica.DataProductModel;
import java.util.List;
public interface DataProductInterface {
String schema = "airavata-dp";
String registerDataProduct(DataProductModel product) throws ReplicaCatalogException;
boolean updateDataProduct(DataProductModel product) throws ReplicaCatalogException;
DataProductModel getDataProduct(String productUri) throws ReplicaCatalogException;
DataProductModel getParentDataProduct(String productUri) throws ReplicaCatalogException;
List<DataProductModel> getChildDataProducts(String productUri) throws ReplicaCatalogException;
List<DataProductModel> searchDataProductsByName(String gatewayId, String userId, String productName,
int limit, int offset) throws ReplicaCatalogException;
boolean isDataProductExists(String productUri) throws ReplicaCatalogException;
boolean removeDataProduct(String productUri) throws ReplicaCatalogException;
}
| 1,090 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/CompositeIdentifier.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
/**
* This class is to uniquely identify third layer child objects. For example, workflow node status object can be
* uniquely identified with experiment id and node id.
*/
public class CompositeIdentifier {
private Object topLevelIdentifier;
private Object secondLevelIdentifier;
private Object thirdLevelIdentifier;
public CompositeIdentifier(Object topLevelIdentifier, Object secondLevelIdentifier) {
this.topLevelIdentifier = topLevelIdentifier;
this.secondLevelIdentifier = secondLevelIdentifier;
}
public CompositeIdentifier(Object topLevelIdentifier, Object secondLevelIdentifier, Object thirdLevelIdentifier) {
this(topLevelIdentifier, secondLevelIdentifier);
this.thirdLevelIdentifier = thirdLevelIdentifier;
}
public Object getTopLevelIdentifier() {
return topLevelIdentifier;
}
public Object getSecondLevelIdentifier() {
return secondLevelIdentifier;
}
public Object getThirdLevelIdentifier() { return thirdLevelIdentifier; }
@Override
public String toString() {
if (thirdLevelIdentifier != null && thirdLevelIdentifier instanceof String && topLevelIdentifier instanceof String && secondLevelIdentifier instanceof String) {
return topLevelIdentifier + "," + secondLevelIdentifier + "," + thirdLevelIdentifier;
} else if (topLevelIdentifier instanceof String && secondLevelIdentifier instanceof String) {
return topLevelIdentifier + "," + secondLevelIdentifier;
}else if (topLevelIdentifier instanceof String ) {
return topLevelIdentifier.toString();
} else {
return secondLevelIdentifier.toString();
}
}
}
| 1,091 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/ExperimentCatalogModelType.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
public enum ExperimentCatalogModelType {
APPLiCATION_CATALOG,
GROUP,
USER,
PROJECT,
GATEWAY,
NOTIFICATION,
EXPERIMENT,
EXPERIMENT_STATISTICS,
EXPERIMENT_INPUT,
EXPERIMENT_OUTPUT,
EXPERIMENT_STATUS,
EXPERIMENT_ERROR,
USER_CONFIGURATION_DATA,
PROCESS,
PROCESS_STATUS,
PROCESS_ERROR,
PROCESS_INPUT,
PROCESS_OUTPUT,
PROCESS_RESOURCE_SCHEDULE,
TASK,
TASK_STATUS,
TASK_ERROR,
JOB,
JOB_STATUS,
QUEUE_STATUS,
PROCESS_WORKFLOW
}
| 1,092 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/ExperimentCatalog.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import java.util.List;
import java.util.Map;
/**
* This is the interface for Registry CPI
*/
public interface ExperimentCatalog {
/**
* This method is to add an object in to the registry
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param newObjectToAdd Object which contains the fields that need to be saved in to registry. This object is a
* thrift model object. In experiment case this object can be BasicMetadata, ConfigurationData
* etc
* @return return the identifier to identify the object
*/
public Object add(ExpCatParentDataType dataType, Object newObjectToAdd, String gatewayId) throws RegistryException ;
/**
* This method is to add an object in to the registry
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param newObjectToAdd Object which contains the fields that need to be saved in to registry. This object is a
* thrift model object. In experiment case this object can be BasicMetadata, ConfigurationData
* etc
* @param dependentIdentifiers contains the identifier if the object that is going to add is not a top
* level object in the data model. This object can be a simple string or a
* org.apache.airavata.registry.cpi.CompositeIdentifier type if it is a child element
* with multiple identifiers
* @return return the identifier to identify the object
*/
public Object add(ExpCatChildDataType dataType, Object newObjectToAdd, Object dependentIdentifiers) throws RegistryException;
/**
* This method is to update the whole object in registry
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param newObjectToUpdate Object which contains the fields that need to be updated in to registry. This object is a
* thrift model object. In experiment case this object can be BasicMetadata, ConfigurationData
* etc. CPI programmer can only fill necessary fields that need to be updated. He does not
* have to fill the whole object. He needs to only fill the mandatory fields and whatever the
* other fields that need to be updated.
*/
public void update(ExperimentCatalogModelType dataType, Object newObjectToUpdate, Object identifier) throws RegistryException;
/**
* This method is to update a specific field of the data model
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param identifier Identifier which will uniquely identify the data model. For example, in Experiment_Basic_Type,
* identifier will be generated experimentID
* @param fieldName Field which need to be updated in the registry. In Experiment_Basic_Type, if you want to update the
* description, field will be "description". Field names are defined in
* org.apache.airavata.registry.cpi.utils.Constants
* @param value Value by which the given field need to be updated. If the field is "description", that field will be
* updated by given value
*/
public void update(ExperimentCatalogModelType dataType, Object identifier, String fieldName, Object value) throws RegistryException;
/**
* This method is to retrieve object according to the identifier. In the experiment basic data type, if you give the
* experiment id, this method will return the BasicMetadata object
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param identifier Identifier which will uniquely identify the data model. For example, in Experiment_Basic_Type,
* identifier will be generated experimentID
* @return object according to the given identifier.
*/
public Object get(ExperimentCatalogModelType dataType, Object identifier) throws RegistryException;
/**
* This method is to retrieve list of objects according to a given criteria
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param fieldName FieldName is the field that filtering should be done. For example, if we want to retrieve all
* the experiments for a given user, filterBy will be "userName"
* @param value value for the filtering field. In the experiment case, value for "userName" can be "admin"
* @return List of objects according to the given criteria
*/
public List<Object> get(ExperimentCatalogModelType dataType, String fieldName, Object value) throws RegistryException;
/**
* This method is to retrieve list of objects according to a given criteria with pagination and ordering
*
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param fieldName FieldName is the field that filtering should be done. For example, if we want to retrieve all
* the experiments for a given user, filterBy will be "userName"
* @param value value for the filtering field. In the experiment case, value for "userName" can be "admin"
* @param limit Size of the results to be returned
* @param offset Start position of the results to be retrieved
* @param orderByIdentifier Named of the column in which the ordering is based
* @param resultOrderType Type of ordering i.e ASC or DESC
* @return
* @throws RegistryException
*/
public List<Object> get(ExperimentCatalogModelType dataType, String fieldName, Object value, int limit,
int offset, Object orderByIdentifier, ResultOrderType resultOrderType) throws RegistryException ;
/**
* This method is to retrieve list of objects according to a given criteria
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param filters filters is a map of field name and value that you need to use for search filtration
* @return List of objects according to the given criteria
*/
public List<Object> search(ExperimentCatalogModelType dataType, Map<String, String> filters) throws RegistryException;
/**
* This method is to retrieve list of objects with pagination according to a given criteria sorted
* according by the specified identified and specified ordering (i.e either ASC or DESC)
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param filters filters is a map of field name and value that you need to use for search filtration
* @param limit amount of the results to be returned
* @param offset offset of the results from the sorted list to be fetched from
* @param orderByIdentifier identifier (i.e the column) which will be used as the basis to sort the results
* @param resultOrderType The type of ordering (i.e ASC or DESC) that has to be used when retrieving the results
* @return List of objects according to the given criteria
*/
public List<Object> search(ExperimentCatalogModelType dataType, Map<String, String> filters,
int limit, int offset, Object orderByIdentifier,
ResultOrderType resultOrderType) throws RegistryException;
/**
* This method search all the accessible resources given the set of ids of all accessible resource IDs.
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param accessibleIds list of string IDs of all accessible resources
* @param filters filters is a map of field name and value that you need to use for search filtration
* @param limit amount of the results to be returned
* @param offset offset of the results from the sorted list to be fetched from
* @param orderByIdentifier identifier (i.e the column) which will be used as the basis to sort the results
* @param resultOrderType The type of ordering (i.e ASC or DESC) that has to be used when retrieving the results
* @return List of objects according to the given criteria
*/
public List<Object> searchAllAccessible(ExperimentCatalogModelType dataType,List<String> accessibleIds, Map<String, String> filters,
int limit, int offset, Object orderByIdentifier,
ResultOrderType resultOrderType) throws RegistryException;
/**
* This method is to retrieve a specific value for a given field.
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param identifier Identifier which will uniquely identify the data model. For example, in Experiment_Basic_Type,
* identifier will be generated experimentID
* @param field field that filtering should be done. For example, if we want to execution user for a given
* experiment, field will be "userName"
* @return return the value for the specific field where data model is identified by the unique identifier that has
* given
*/
public Object getValue (ExperimentCatalogModelType dataType, Object identifier, String field) throws RegistryException;
/**
* This method is to retrieve all the identifiers according to given filtering criteria. For an example, if you want
* to get all the experiment ids for a given gateway, your field name will be "gateway" and the value will be the
* name of the gateway ("default"). Similar manner you can retrieve all the experiment ids for a given user.
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param fieldName FieldName is the field that filtering should be done. For example, if we want to retrieve all
* the experiments for a given user, filterBy will be "userName"
* @param value value for the filtering field. In the experiment case, value for "userName" can be "admin"
* @return id list according to the filtering criteria
*/
public List<String> getIds (ExperimentCatalogModelType dataType, String fieldName, Object value) throws RegistryException;
/**
* This method is to remove a item from the registry
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param identifier Identifier which will uniquely identify the data model. For example, in Experiment_Basic_Type,
* identifier will be generated experimentID
*/
public void remove (ExperimentCatalogModelType dataType, Object identifier) throws RegistryException;
/**
* This method will check whether a given data type which can be identified with the identifier exists or not
* @param dataType Data type is a predefined type which the programmer should choose according to the object he
* is going to save in to registry
* @param identifier Identifier which will uniquely identify the data model. For example, in Experiment_Basic_Type,
* identifier will be generated experimentID
* @return whether the given data type exists or not
*/
public boolean isExist(ExperimentCatalogModelType dataType, Object identifier) throws RegistryException;
}
| 1,093 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/AppCatalogException.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
public class AppCatalogException extends Exception{
private static final long serialVersionUID = -2849422320139467602L;
public AppCatalogException(Throwable e) {
super(e);
}
public AppCatalogException(String message) {
super(message, null);
}
public AppCatalogException(String message, Throwable e) {
super(message, e);
}
}
| 1,094 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/StorageResource.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.appcatalog.storageresource.StorageResourceDescription;
import java.util.List;
import java.util.Map;
public interface StorageResource {
/**
* This function will add a storage resource description to the database
* @param description storage resource description
* @return unique resource ID generated by airavata
*/
String addStorageResource(StorageResourceDescription description) throws AppCatalogException;
/**
* This method will update storage resource
* @param storageResourceId unique storage resource id
* @param updatedStorageResource updated storage resource
*/
void updateStorageResource(String storageResourceId, StorageResourceDescription updatedStorageResource) throws AppCatalogException;
/**
* This method will retrieve storage resource object on given resource id
* @param resourceId unique resource id
* @return StorageResource object
*/
StorageResourceDescription getStorageResource(String resourceId) throws AppCatalogException;
/**
* This method will return a list of storageResource descriptions according to given search criteria
* @param filters map should be provided as the field name and it's value
* @return list of storage resources
*/
List<StorageResourceDescription> getStorageResourceList(Map<String, String> filters) throws AppCatalogException;
/**
* This method will retrieve all the storage resources
* @return list of storage resources
* @throws AppCatalogException
*/
List<StorageResourceDescription> getAllStorageResourceList() throws AppCatalogException;
/**
* This method will retrieve all the storage resource id with it's name
* @return map of storage resource ids + name
* @throws AppCatalogException
*/
Map<String, String> getAllStorageResourceIdList() throws AppCatalogException;
/**
* This method will retrieve all the enabled storage resource id with it's name
* @return
* @throws AppCatalogException
*/
Map<String, String> getAvailableStorageResourceIdList() throws AppCatalogException;
/**
* This method will check whether the given resource already exists in the system
* @param resourceId unique resource id
* @return true or false
*/
boolean isStorageResourceExists(String resourceId) throws AppCatalogException;
/**
* This method will remove given resource from the system
* @param resourceId unique resource id
*/
void removeStorageResource(String resourceId) throws AppCatalogException;
void removeDataMovementInterface(String storageResourceId, String dataMovementInterfaceId) throws AppCatalogException;
}
| 1,095 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/GwyClientCredential.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import java.util.Map;
public interface GwyClientCredential {
Map.Entry<String, String> generateNewGatewayClientCredential(String gatewayId) throws AppCatalogException;
Map.Entry<String, String> getGatewayClientCredential(String clientKey) throws AppCatalogException;
void removeGatewayClientCredential(String clientKey) throws AppCatalogException;
Map<String, String> getAllGatewayClientCredentials(String gatewayId) throws AppCatalogException;
}
| 1,096 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/ReplicaCatalog.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
/*
Included for backwards compatibility
TODO: Remove interface once registry refactoring is complete
*/
public interface ReplicaCatalog extends DataProductInterface, DataReplicaLocationInterface {
/*String schema = "airavata-dp";
String registerDataProduct(DataProductModel product) throws ReplicaCatalogException;
boolean removeDataProduct(String productUri) throws ReplicaCatalogException;
boolean updateDataProduct(DataProductModel product) throws ReplicaCatalogException;
DataProductModel getDataProduct(String productUri) throws ReplicaCatalogException;
boolean isDataProductExists(String productUri) throws ReplicaCatalogException;
String registerReplicaLocation(DataReplicaLocationModel dataReplicaLocationModel) throws ReplicaCatalogException;
boolean removeReplicaLocation(String replicaId) throws ReplicaCatalogException;
boolean updateReplicaLocation(DataReplicaLocationModel dataReplicaLocationModel) throws ReplicaCatalogException;
DataReplicaLocationModel getReplicaLocation(String replicaId) throws ReplicaCatalogException;
List<DataReplicaLocationModel> getAllReplicaLocations(String productUri) throws ReplicaCatalogException;
DataProductModel getParentDataProduct(String productUri) throws ReplicaCatalogException;
List<DataProductModel> getChildDataProducts(String productUri) throws ReplicaCatalogException;
List<DataProductModel> searchDataProductsByName(String gatewayId, String userId, String productName,
int limit, int offset) throws ReplicaCatalogException;*/
}
| 1,097 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/UsrResourceProfile.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.appcatalog.userresourceprofile.UserResourceProfile;
import org.apache.airavata.model.appcatalog.userresourceprofile.UserComputeResourcePreference;
import org.apache.airavata.model.appcatalog.userresourceprofile.UserStoragePreference;
import java.util.List;
public interface UsrResourceProfile {
/**
* This method will add user resource profile
* @param userResourceProfile object of User resource profile
* @return gateway id
*/
String addUserResourceProfile(UserResourceProfile userResourceProfile) throws AppCatalogException;
/**
* This method will update user resource profile
* @param userId unique User id
* @param gatewayId unique gateway id
* @param updatedProfile updated profile
*/
void updateUserResourceProfile(String userId, String gatewayId, UserResourceProfile updatedProfile) throws AppCatalogException;
/**
* @param userId
* @param gatewayId
* @return UserResourceProfile
*/
UserResourceProfile getUserResourceProfile(String userId, String gatewayId) throws AppCatalogException;
/**
* This method will remove a user resource profile
* @param userId
* @param gatewayId unique gateway id
* @return true or false
*/
boolean removeUserResourceProfile(String userId, String gatewayId) throws AppCatalogException;
/**
* This method will remove a user compute resource preference
* @param userId
* @param gatewayId unique gateway id
* @param preferenceId
* @return true or false
*/
boolean removeUserComputeResourcePreferenceFromGateway(String userId, String gatewayId, String preferenceId) throws AppCatalogException;
/**
* This method will remove a user storage preference
* @param userId
* @param gatewayId unique gateway id
* @param preferenceId
* @return true or false
*/
boolean removeUserDataStoragePreferenceFromGateway(String userId, String gatewayId, String preferenceId) throws AppCatalogException;
/**
* This method will check whether user resource profile exists
* @param userId
* @param gatewayId unique gateway id
* @return true or false
*/
boolean isUserResourceProfileExists(String userId, String gatewayId) throws AppCatalogException;
/**
*
* @param userId
* @param gatewayId
* @param hostId
* @return UserComputeResourcePreference
*/
UserComputeResourcePreference getUserComputeResourcePreference(String userId, String gatewayId, String hostId) throws AppCatalogException;
/**
*
* @param userId
* @param gatewayId
* @param hostId
* @return true or false
*/
boolean isUserComputeResourcePreferenceExists(String userId, String gatewayId, String hostId) throws AppCatalogException;
/**
* @param userId
* @param gatewayId
* @return UserStoragePreference
*/
UserStoragePreference getUserStoragePreference(String userId, String gatewayId, String storageId) throws AppCatalogException;
/**
* @param gatewayName
* @return List of gateway ids
*/
List<String> getGatewayProfileIds(String gatewayName) throws AppCatalogException;
/**
* @param userId
* @param gatewayID
* @return username
*/
String getUserNamefromID(String userId, String gatewayID) throws AppCatalogException;
/**
* @param userId
* @param gatewayId
* @return List of UserComputeResourcePreference for given user and gateway
*/
List<UserComputeResourcePreference> getAllUserComputeResourcePreferences (String userId, String gatewayId) throws AppCatalogException;
/**
* @param userId
* @param gatewayId
* @return List of UserStoragePreference for given user and gateway
*/
List<UserStoragePreference> getAllUserStoragePreferences(String userId, String gatewayId) throws AppCatalogException;
/**
* @return List of user resource profiles
*/
List<UserResourceProfile> getAllUserResourceProfiles() throws AppCatalogException;
}
| 1,098 |
0 | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry | Create_ds/airavata/modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/ApplicationInterface.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.airavata.registry.cpi;
import org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule;
import org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription;
import org.apache.airavata.model.application.io.InputDataObjectType;
import org.apache.airavata.model.application.io.OutputDataObjectType;
import java.util.List;
import java.util.Map;
public interface ApplicationInterface {
/**
* This method will add an application module
* @param applicationModule application module
* @return unique module id
*/
String addApplicationModule (ApplicationModule applicationModule, String gatewayId) throws AppCatalogException;
/**
* This method will add application interface description
* @param applicationInterfaceDescription application interface
* @return unique app interface id
*/
String addApplicationInterface(ApplicationInterfaceDescription applicationInterfaceDescription, String gatewayId) throws AppCatalogException;
/**
* This method will add an application module mapping
* @param moduleId unique module Id
* @param interfaceId unique interface id
*/
void addApplicationModuleMapping (String moduleId, String interfaceId) throws AppCatalogException;
/**
* This method will update application module
* @param moduleId unique module Id
* @param updatedModule updated module
* @throws AppCatalogException
*/
void updateApplicationModule (String moduleId, ApplicationModule updatedModule) throws AppCatalogException;
/**
* This method will update application interface
* @param interfaceId unique interface id
* @param updatedInterface updated app interface
* @throws AppCatalogException
*/
void updateApplicationInterface (String interfaceId, ApplicationInterfaceDescription updatedInterface) throws AppCatalogException;
/**
* This method will retrieve application module by given module id
* @param moduleId unique module Id
* @return application module object
*/
ApplicationModule getApplicationModule (String moduleId) throws AppCatalogException;
/**
* This method will retrieve application interface by given interface id
* @param interfaceId unique interface id
* @return application interface desc
*/
ApplicationInterfaceDescription getApplicationInterface(String interfaceId) throws AppCatalogException;
/**
* This method will return a list of application modules according to given search criteria
* @param filters map should be provided as the field name and it's value
* @return list of application modules
*/
List<ApplicationModule> getApplicationModules(Map<String, String> filters) throws AppCatalogException;
/**
* This method will return a list of all application modules
* @param gatewayId Gateway ID
* @return list of all application modules
*/
List<ApplicationModule> getAllApplicationModules(String gatewayId) throws AppCatalogException;
/**
* This method will return a list of all application modules
* @param gatewayId Gateway ID
* @param accessibleAppIds List of Accessible App IDs
* @param accessibleComputeResourceIds List of Accessible Compute Resource IDs
* @return list of all application modules accessible to the user
*/
List<ApplicationModule> getAccessibleApplicationModules(String gatewayId, List<String> accessibleAppIds, List<String> accessibleComputeResourceIds) throws AppCatalogException;
/**
* This method will return a list of application interfaces according to given search criteria
* @param filters map should be provided as the field name and it's value
* @return list of application interfaces
*/
List<ApplicationInterfaceDescription> getApplicationInterfaces(Map<String, String> filters) throws AppCatalogException;
/**
* This method will return all the application interfaces
* @return list of all the application interfaces
*/
List<ApplicationInterfaceDescription> getAllApplicationInterfaces(String gatewayId) throws AppCatalogException;
List<String> getAllApplicationInterfaceIds() throws AppCatalogException;
/**
* Remove application interface
* @param interfaceId unique interface id
*/
boolean removeApplicationInterface (String interfaceId) throws AppCatalogException;
/**
* Remove application module
* @param moduleId unique module Id
*/
boolean removeApplicationModule (String moduleId) throws AppCatalogException;
/**
* Check whether application interface exists
* @param interfaceId unique interface id
* @return true or false
*/
boolean isApplicationInterfaceExists(String interfaceId) throws AppCatalogException;
/**
* Check whether application module exists
* @param moduleId unique module Id
* @return true or false
*/
boolean isApplicationModuleExists(String moduleId) throws AppCatalogException;
/**
* This method will retrieve application inputs for given application interface
* @param interfaceId application interface id
* @return list of inputs
* @throws AppCatalogException
*/
List<InputDataObjectType> getApplicationInputs(String interfaceId) throws AppCatalogException;
/**
* This method will retrieve application outputs for given application interface
* @param interfaceId application interface id
* @return list of output
* @throws AppCatalogException
*/
List<OutputDataObjectType> getApplicationOutputs(String interfaceId) throws AppCatalogException;
}
| 1,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.