Search in sources :

Example 1 with DeploymentArtifactsResource

use of org.eclipse.winery.repository.rest.resources.artifacts.DeploymentArtifactsResource in project winery by eclipse.

the class NodeTypeImplementationResource method getDeploymentArtifacts.

/**
 * Only NodeTypes have deployment artifacts, not RelationshipType. Therefore, this method is declared in {@link
 * NodeTypeImplementationResource} and not in {@link EntityTypeImplementationResource}
 */
@Path("deploymentartifacts/")
public DeploymentArtifactsResource getDeploymentArtifacts() {
    TDeploymentArtifacts deploymentArtifacts;
    deploymentArtifacts = this.getNTI().getDeploymentArtifacts();
    if (deploymentArtifacts == null) {
        deploymentArtifacts = new TDeploymentArtifacts();
        this.getNTI().setDeploymentArtifacts(deploymentArtifacts);
    }
    return new DeploymentArtifactsResource(deploymentArtifacts.getDeploymentArtifact(), this);
}
Also used : TDeploymentArtifacts(org.eclipse.winery.model.tosca.TDeploymentArtifacts) DeploymentArtifactsResource(org.eclipse.winery.repository.rest.resources.artifacts.DeploymentArtifactsResource) Path(javax.ws.rs.Path)

Aggregations

Path (javax.ws.rs.Path)1 TDeploymentArtifacts (org.eclipse.winery.model.tosca.TDeploymentArtifacts)1 DeploymentArtifactsResource (org.eclipse.winery.repository.rest.resources.artifacts.DeploymentArtifactsResource)1