Search in sources :

Example 1 with BoundaryDefinitionsResource

use of org.eclipse.winery.repository.rest.resources.servicetemplates.boundarydefinitions.BoundaryDefinitionsResource in project winery by eclipse.

the class ServiceTemplateResource method getBoundaryDefinitionsResource.

@Path("boundarydefinitions/")
public BoundaryDefinitionsResource getBoundaryDefinitionsResource() {
    TBoundaryDefinitions boundaryDefinitions = this.getServiceTemplate().getBoundaryDefinitions();
    if (boundaryDefinitions == null) {
        boundaryDefinitions = new TBoundaryDefinitions();
        this.getServiceTemplate().setBoundaryDefinitions(boundaryDefinitions);
    }
    return new BoundaryDefinitionsResource(this, boundaryDefinitions);
}
Also used : BoundaryDefinitionsResource(org.eclipse.winery.repository.rest.resources.servicetemplates.boundarydefinitions.BoundaryDefinitionsResource) TBoundaryDefinitions(org.eclipse.winery.model.tosca.TBoundaryDefinitions) Path(javax.ws.rs.Path)

Aggregations

Path (javax.ws.rs.Path)1 TBoundaryDefinitions (org.eclipse.winery.model.tosca.TBoundaryDefinitions)1 BoundaryDefinitionsResource (org.eclipse.winery.repository.rest.resources.servicetemplates.boundarydefinitions.BoundaryDefinitionsResource)1