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);
}
Aggregations