diff --git a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/ResourcesFactory.java b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/ResourcesFactory.java index f728c2eb..4b3c456c 100644 --- a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/ResourcesFactory.java +++ b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/ResourcesFactory.java @@ -30,6 +30,7 @@ import org.eclipse.lyo.oslc4j.core.model.Link; import org.eclipse.lyo.oslc4j.core.OSLC4JUtils; import org.eclipse.lyo.oslc.domains.Agent; +import org.eclipse.lyo.oslc4j.core.model.AllowedValues; import org.eclipse.lyo.oslc.domains.cm.ChangeNotice; import org.eclipse.lyo.oslc.domains.cm.ChangeRequest; import org.eclipse.lyo.oslc.domains.config.ChangeSet; @@ -38,14 +39,23 @@ import org.eclipse.lyo.oslc.domains.config.ConceptResource; import org.eclipse.lyo.oslc.domains.config.Configuration; import org.eclipse.lyo.oslc.domains.config.Contribution; +import org.eclipse.lyo.oslc4j.core.model.CreationFactory; import org.eclipse.lyo.oslc.domains.cm.Defect; +import org.eclipse.lyo.oslc4j.core.model.Dialog; import org.eclipse.lyo.oslc4j.core.model.Discussion; import org.eclipse.lyo.oslc.domains.cm.Enhancement; import org.eclipse.lyo.oslc.domains.Person; import org.eclipse.lyo.oslc.domains.cm.Priority; +import org.eclipse.lyo.oslc4j.core.model.Property; +import org.eclipse.lyo.oslc4j.core.model.Publisher; +import org.eclipse.lyo.oslc4j.core.model.QueryCapability; import org.eclipse.lyo.oslc.domains.rm.Requirement; +import org.eclipse.lyo.oslc4j.core.model.ResourceShape; import org.eclipse.lyo.oslc.domains.cm.ReviewTask; import org.eclipse.lyo.oslc.domains.config.Selections; +import org.eclipse.lyo.oslc4j.core.model.Service; +import org.eclipse.lyo.oslc4j.core.model.ServiceProvider; +import org.eclipse.lyo.oslc.domains.cm.Severity; import org.eclipse.lyo.oslc.domains.cm.State; import org.eclipse.lyo.oslc.domains.cm.Task; import org.eclipse.lyo.oslc.domains.config.VersionResource; diff --git a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/RestDelegate.java b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/RestDelegate.java index aed0cf33..eb498f39 100644 --- a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/RestDelegate.java +++ b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/RestDelegate.java @@ -40,6 +40,7 @@ import co.oslc.refimpl.cm.gen.servlet.ServiceProviderCatalogSingleton; import co.oslc.refimpl.cm.gen.ServiceProviderInfo; import org.eclipse.lyo.oslc.domains.Agent; +import org.eclipse.lyo.oslc4j.core.model.AllowedValues; import org.eclipse.lyo.oslc.domains.cm.ChangeNotice; import org.eclipse.lyo.oslc.domains.cm.ChangeRequest; import org.eclipse.lyo.oslc.domains.config.ChangeSet; @@ -48,14 +49,23 @@ import org.eclipse.lyo.oslc.domains.config.ConceptResource; import org.eclipse.lyo.oslc.domains.config.Configuration; import org.eclipse.lyo.oslc.domains.config.Contribution; +import org.eclipse.lyo.oslc4j.core.model.CreationFactory; import org.eclipse.lyo.oslc.domains.cm.Defect; +import org.eclipse.lyo.oslc4j.core.model.Dialog; import org.eclipse.lyo.oslc4j.core.model.Discussion; import org.eclipse.lyo.oslc.domains.cm.Enhancement; import org.eclipse.lyo.oslc.domains.Person; import org.eclipse.lyo.oslc.domains.cm.Priority; +import org.eclipse.lyo.oslc4j.core.model.Property; +import org.eclipse.lyo.oslc4j.core.model.Publisher; +import org.eclipse.lyo.oslc4j.core.model.QueryCapability; import org.eclipse.lyo.oslc.domains.rm.Requirement; +import org.eclipse.lyo.oslc4j.core.model.ResourceShape; import org.eclipse.lyo.oslc.domains.cm.ReviewTask; import org.eclipse.lyo.oslc.domains.config.Selections; +import org.eclipse.lyo.oslc4j.core.model.Service; +import org.eclipse.lyo.oslc4j.core.model.ServiceProvider; +import org.eclipse.lyo.oslc.domains.cm.Severity; import org.eclipse.lyo.oslc.domains.cm.State; import org.eclipse.lyo.oslc.domains.cm.Task; import org.eclipse.lyo.oslc.domains.config.VersionResource; diff --git a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/services/Change_requestsService.java b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/services/Change_requestsService.java index 9cb2d44d..0314cef6 100644 --- a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/services/Change_requestsService.java +++ b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/services/Change_requestsService.java @@ -83,15 +83,16 @@ import co.oslc.refimpl.cm.gen.RestDelegate; import co.oslc.refimpl.cm.gen.ServerConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; import co.oslc.refimpl.cm.gen.servlet.ServiceProviderCatalogSingleton; import org.eclipse.lyo.oslc.domains.Agent; +import org.eclipse.lyo.oslc4j.core.model.AllowedValues; import org.eclipse.lyo.oslc.domains.cm.ChangeNotice; import org.eclipse.lyo.oslc.domains.cm.ChangeRequest; import org.eclipse.lyo.oslc.domains.config.ChangeSet; @@ -100,14 +101,23 @@ import org.eclipse.lyo.oslc.domains.config.ConceptResource; import org.eclipse.lyo.oslc.domains.config.Configuration; import org.eclipse.lyo.oslc.domains.config.Contribution; +import org.eclipse.lyo.oslc4j.core.model.CreationFactory; import org.eclipse.lyo.oslc.domains.cm.Defect; +import org.eclipse.lyo.oslc4j.core.model.Dialog; import org.eclipse.lyo.oslc4j.core.model.Discussion; import org.eclipse.lyo.oslc.domains.cm.Enhancement; import org.eclipse.lyo.oslc.domains.Person; import org.eclipse.lyo.oslc.domains.cm.Priority; +import org.eclipse.lyo.oslc4j.core.model.Property; +import org.eclipse.lyo.oslc4j.core.model.Publisher; +import org.eclipse.lyo.oslc4j.core.model.QueryCapability; import org.eclipse.lyo.oslc.domains.rm.Requirement; +import org.eclipse.lyo.oslc4j.core.model.ResourceShape; import org.eclipse.lyo.oslc.domains.cm.ReviewTask; import org.eclipse.lyo.oslc.domains.config.Selections; +import org.eclipse.lyo.oslc4j.core.model.Service; +import org.eclipse.lyo.oslc4j.core.model.ServiceProvider; +import org.eclipse.lyo.oslc.domains.cm.Severity; import org.eclipse.lyo.oslc.domains.cm.State; import org.eclipse.lyo.oslc.domains.cm.Task; import org.eclipse.lyo.oslc.domains.config.VersionResource; @@ -121,7 +131,7 @@ // Start of user code pre_class_code // End of user code -@OslcService(Oslc_cmDomainConstants.CHANGE_MANAGEMENT_SHAPES_NAMSPACE) +@OslcService(Oslc_cm_shapesDomainConstants.CHANGE_MANAGEMENT_SHAPES_NAMSPACE) @Path("resources") public class Change_requestsService { @@ -147,17 +157,17 @@ public Change_requestsService() ( title = "ChangeRequest QC", label = "ChangeRequest Query Capability", - resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.CHANGEREQUEST_PATH, - resourceTypes = {Oslc_cmDomainConstants.CHANGEREQUEST_TYPE}, + resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_PATH, + resourceTypes = {Oslc_cm_shapesDomainConstants.CHANGEREQUEST_TYPE}, usages = {} ) @GET @Path("query_cr") @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -212,9 +222,9 @@ public ChangeRequest[] queryChangeRequests( @Path("query_cr") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -279,17 +289,17 @@ public void queryChangeRequestsAsHtml( ( title = "Defect QC", label = "Defect Query Capability", - resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.DEFECT_PATH, - resourceTypes = {Oslc_cmDomainConstants.DEFECT_TYPE}, + resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.DEFECT_PATH, + resourceTypes = {Oslc_cm_shapesDomainConstants.DEFECT_TYPE}, usages = {} ) @GET @Path("query_defect") @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.DEFECT_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.DEFECT_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.DEFECT_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.DEFECT_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.DEFECT_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.DEFECT_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -344,9 +354,9 @@ public Defect[] queryDefects( @Path("query_defect") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.DEFECT_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.DEFECT_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.DEFECT_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.DEFECT_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.DEFECT_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.DEFECT_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -411,17 +421,17 @@ public void queryDefectsAsHtml( ( title = "Task QC", label = "Task Query Capability", - resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.TASK_PATH, - resourceTypes = {Oslc_cmDomainConstants.TASK_TYPE}, + resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.TASK_PATH, + resourceTypes = {Oslc_cm_shapesDomainConstants.TASK_TYPE}, usages = {} ) @GET @Path("query_task") @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.TASK_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.TASK_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.TASK_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.TASK_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.TASK_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.TASK_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -476,9 +486,9 @@ public Task[] queryTasks( @Path("query_task") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.TASK_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.TASK_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.TASK_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.TASK_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.TASK_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.TASK_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -543,17 +553,17 @@ public void queryTasksAsHtml( ( title = "Enhancement QC", label = "Enhancement Query Capability", - resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.ENHANCEMENT_PATH, - resourceTypes = {Oslc_cmDomainConstants.ENHANCEMENT_TYPE}, + resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_PATH, + resourceTypes = {Oslc_cm_shapesDomainConstants.ENHANCEMENT_TYPE}, usages = {} ) @GET @Path("query_enh") @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.ENHANCEMENT_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -608,9 +618,9 @@ public Enhancement[] queryEnhancements( @Path("query_enh") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.ENHANCEMENT_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.ENHANCEMENT_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -675,17 +685,17 @@ public void queryEnhancementsAsHtml( ( title = "Review QC", label = "ReviewTask Query Capability", - resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.REVIEWTASK_PATH, - resourceTypes = {Oslc_cmDomainConstants.REVIEWTASK_TYPE}, + resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.REVIEWTASK_PATH, + resourceTypes = {Oslc_cm_shapesDomainConstants.REVIEWTASK_TYPE}, usages = {} ) @GET @Path("query_review") @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.REVIEWTASK_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.REVIEWTASK_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.REVIEWTASK_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.REVIEWTASK_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.REVIEWTASK_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.REVIEWTASK_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -740,9 +750,9 @@ public ReviewTask[] queryReviewTasks( @Path("query_review") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.REVIEWTASK_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.REVIEWTASK_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.REVIEWTASK_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.REVIEWTASK_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.REVIEWTASK_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.REVIEWTASK_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -807,17 +817,17 @@ public void queryReviewTasksAsHtml( ( title = "ChangeNotice QC", label = "ChangeNotice Query Capability", - resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.CHANGENOTICE_PATH, - resourceTypes = {Oslc_cmDomainConstants.CHANGENOTICE_TYPE}, + resourceShape = OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_PATH, + resourceTypes = {Oslc_cm_shapesDomainConstants.CHANGENOTICE_TYPE}, usages = {} ) @GET @Path("query_cn") @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.CHANGENOTICE_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -872,9 +882,9 @@ public ChangeNotice[] queryChangeNotices( @Path("query_cn") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "Query capability for resources of type {" + Oslc_cmDomainConstants.CHANGENOTICE_LOCALNAME + "}", - description = "Query capability for resources of type {" + "" + Oslc_cmDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}", + summary = "Query capability for resources of type {" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_LOCALNAME + "}", + description = "Query capability for resources of type {" + "" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.CHANGENOTICE_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)}) } @@ -942,7 +952,7 @@ public void queryChangeNoticesAsHtml( uri = "resources/select_change_request", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.CHANGEREQUEST_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.CHANGEREQUEST_TYPE}, usages = {} ) @GET @@ -1008,7 +1018,7 @@ public Response ChangeRequestSelector( uri = "resources/select_defect", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.DEFECT_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.DEFECT_TYPE}, usages = {} ) @GET @@ -1074,7 +1084,7 @@ public Response DefectSelector( uri = "resources/select_task", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.TASK_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.TASK_TYPE}, usages = {} ) @GET @@ -1140,7 +1150,7 @@ public Response TaskSelector( uri = "resources/select_review_task", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.REVIEWTASK_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.REVIEWTASK_TYPE}, usages = {} ) @GET @@ -1206,7 +1216,7 @@ public Response ReviewTaskSelector( uri = "resources/select_change_notice", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.CHANGENOTICE_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.CHANGENOTICE_TYPE}, usages = {} ) @GET @@ -1272,7 +1282,7 @@ public Response ChangeNoticeSelector( uri = "resources/select_enhancement", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.ENHANCEMENT_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.ENHANCEMENT_TYPE}, usages = {} ) @GET @@ -1341,8 +1351,8 @@ public Response EnhancementSelector( ( title = "ChangeRequestCF", label = "Change Request Creation Factory", - resourceShapes = {OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cmDomainConstants.CHANGEREQUEST_PATH}, - resourceTypes = {Oslc_cmDomainConstants.CHANGEREQUEST_TYPE}, + resourceShapes = {OslcConstants.PATH_RESOURCE_SHAPES + "/" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_PATH}, + resourceTypes = {Oslc_cm_shapesDomainConstants.CHANGEREQUEST_TYPE}, usages = {} ) @POST @@ -1350,9 +1360,9 @@ public Response EnhancementSelector( @Consumes({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON }) @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON}) @Operation( - summary = "Creation factory for resources of type {" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "}", - description = "Creation factory for resources of type {" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}" + - ", with respective resource shapes {" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}", + summary = "Creation factory for resources of type {" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "}", + description = "Creation factory for resources of type {" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}" + + ", with respective resource shapes {" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "}", responses = { @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE)}) } @@ -1402,7 +1412,7 @@ public Response DefectCreator( uri = "resources/create_defect", hintWidth = "500px", hintHeight = "500px", - resourceTypes = {Oslc_cmDomainConstants.DEFECT_TYPE}, + resourceTypes = {Oslc_cm_shapesDomainConstants.DEFECT_TYPE}, usages = {} ) @POST @@ -1651,6 +1661,60 @@ public void createDefectFromDialog(MultivaluedMap formParams aResource.addAuthorizer(new Link(new URI(paramValues.get(i)))); } } + paramValues = formParams.get("type"); + if (paramValues != null) { + for(int i=0; i formParams aResource.addAuthorizer(new Link(new URI(paramValues.get(i)))); } } + paramValues = formParams.get("type"); + if (paramValues != null) { + for(int i=0; i formParams aResource.addAuthorizer(new Link(new URI(paramValues.get(i)))); } } + paramValues = formParams.get("type"); + if (paramValues != null) { + for(int i=0; i formPara aResource.addAuthorizer(new Link(new URI(paramValues.get(i)))); } } + paramValues = formParams.get("type"); + if (paramValues != null) { + for(int i=0; i formParam aResource.addAuthorizer(new Link(new URI(paramValues.get(i)))); } } + paramValues = formParams.get("type"); + if (paramValues != null) { + for(int i=0; i" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + - ", with respective resource shapes {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", + summary = "GET for resources of type {'" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", + description = "GET for resources of type {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + + ", with respective resource shapes {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", responses = {@ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content( mediaType = OslcMediaType.APPLICATION_XML), @Content( @@ -155,9 +155,9 @@ public ChangeRequest getChangeRequest( @Path("{id}") @Produces({ MediaType.TEXT_HTML }) @Operation( - summary = "GET for resources of type {'" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", - description = "GET for resources of type {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + - ", with respective resource shapes {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", + summary = "GET for resources of type {'" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", + description = "GET for resources of type {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + + ", with respective resource shapes {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", responses = {@ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content( mediaType = OslcMediaType.APPLICATION_XML), @Content( @@ -193,9 +193,9 @@ public void getChangeRequestAsHtml( @Path("{id}") @Produces({OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML}) @Operation( - summary = "GET for resources of type {'" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", - description = "GET for resources of type {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + - ", with respective resource shapes {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", + summary = "GET for resources of type {'" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", + description = "GET for resources of type {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + + ", with respective resource shapes {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", responses = {@ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content( mediaType = OslcMediaType.APPLICATION_XML), @Content( @@ -302,9 +302,9 @@ public void getChangeRequestAsHtmlLargePreview( @DELETE @Path("{id}") @Operation( - summary = "DELETE for resources of type {'" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", - description = "DELETE for resources of type {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + - ", with respective resource shapes {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", + summary = "DELETE for resources of type {'" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", + description = "DELETE for resources of type {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + + ", with respective resource shapes {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", responses = {@ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content( mediaType = OslcMediaType.APPLICATION_XML), @Content( @@ -338,9 +338,9 @@ public Response deleteChangeRequest( @Path("{id}") @Consumes({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON }) @Operation( - summary = "PUT for resources of type {'" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", - description = "PUT for resources of type {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + - ", with respective resource shapes {'" + "" + Oslc_cmDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", + summary = "PUT for resources of type {'" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "'}", + description = "PUT for resources of type {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}" + + ", with respective resource shapes {'" + "" + Oslc_cm_shapesDomainConstants.CHANGEREQUEST_LOCALNAME + "" + "'}", responses = {@ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content( mediaType = OslcMediaType.APPLICATION_XML), @Content( diff --git a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/Application.java b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/Application.java index aa57a939..f822d504 100644 --- a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/Application.java +++ b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/Application.java @@ -69,6 +69,7 @@ import co.oslc.refimpl.cm.gen.services.ResourceShapeService; import org.eclipse.lyo.oslc.domains.Agent; +import org.eclipse.lyo.oslc4j.core.model.AllowedValues; import org.eclipse.lyo.oslc.domains.cm.ChangeNotice; import org.eclipse.lyo.oslc.domains.cm.ChangeRequest; import org.eclipse.lyo.oslc.domains.config.ChangeSet; @@ -77,18 +78,27 @@ import org.eclipse.lyo.oslc.domains.config.ConceptResource; import org.eclipse.lyo.oslc.domains.config.Configuration; import org.eclipse.lyo.oslc.domains.config.Contribution; +import org.eclipse.lyo.oslc4j.core.model.CreationFactory; import org.eclipse.lyo.oslc.domains.cm.Defect; +import org.eclipse.lyo.oslc4j.core.model.Dialog; import org.eclipse.lyo.oslc4j.core.model.Discussion; import org.eclipse.lyo.oslc.domains.cm.Enhancement; import org.eclipse.lyo.oslc.domains.Person; import org.eclipse.lyo.oslc.domains.cm.Priority; +import org.eclipse.lyo.oslc4j.core.model.Property; +import org.eclipse.lyo.oslc4j.core.model.Publisher; +import org.eclipse.lyo.oslc4j.core.model.QueryCapability; import org.eclipse.lyo.oslc.domains.rm.Requirement; +import org.eclipse.lyo.oslc4j.core.model.ResourceShape; import org.eclipse.lyo.oslc.domains.cm.ReviewTask; import org.eclipse.lyo.oslc.domains.config.Selections; +import org.eclipse.lyo.oslc4j.core.model.Service; +import org.eclipse.lyo.oslc4j.core.model.ServiceProvider; +import org.eclipse.lyo.oslc.domains.cm.Severity; import org.eclipse.lyo.oslc.domains.cm.State; import org.eclipse.lyo.oslc.domains.cm.Task; import org.eclipse.lyo.oslc.domains.config.VersionResource; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; import org.eclipse.lyo.oslc.domains.config.Oslc_configDomainConstants; import org.eclipse.lyo.oslc.domains.DctermsDomainConstants; import org.eclipse.lyo.oslc.domains.FoafDomainConstants; @@ -179,24 +189,34 @@ public Set getSingletons() { RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcConstants.PATH_SERVICE_PROVIDER_CATALOG, ServiceProviderCatalog.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(FoafDomainConstants.AGENT_PATH, Agent.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.CHANGENOTICE_PATH, ChangeNotice.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.CHANGEREQUEST_PATH, ChangeRequest.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.ALLOWEDVALUES_PATH, AllowedValues.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.CHANGENOTICE_PATH, ChangeNotice.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.CHANGEREQUEST_PATH, ChangeRequest.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.CHANGESET_PATH, ChangeSet.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(RdfsDomainConstants.CLASS_PATH, RdfsClass.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.COMPONENT_PATH, Component.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.CONCEPTRESOURCE_PATH, ConceptResource.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.CONFIGURATION_PATH, Configuration.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.CONTRIBUTION_PATH, Contribution.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.DEFECT_PATH, Defect.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.CREATIONFACTORY_PATH, CreationFactory.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.DEFECT_PATH, Defect.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.DIALOG_PATH, Dialog.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.DISCUSSION_PATH, Discussion.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.ENHANCEMENT_PATH, Enhancement.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.ENHANCEMENT_PATH, Enhancement.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(FoafDomainConstants.PERSON_PATH, Person.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.PRIORITY_PATH, Priority.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.PRIORITY_PATH, Priority.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.PROPERTY_PATH, Property.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.PUBLISHER_PATH, Publisher.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.QUERYCAPABILITY_PATH, QueryCapability.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_rmDomainConstants.REQUIREMENT_PATH, Requirement.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.REVIEWTASK_PATH, ReviewTask.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.RESOURCESHAPE_PATH, ResourceShape.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.REVIEWTASK_PATH, ReviewTask.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.SELECTIONS_PATH, Selections.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.STATE_PATH, State.class); - RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cmDomainConstants.TASK_PATH, Task.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.SERVICE_PATH, Service.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(OslcDomainConstants.SERVICEPROVIDER_PATH, ServiceProvider.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.SEVERITY_PATH, Severity.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.STATE_PATH, State.class); + RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_cm_shapesDomainConstants.TASK_PATH, Task.class); RESOURCE_SHAPE_PATH_TO_RESOURCE_CLASS_MAP.put(Oslc_configDomainConstants.VERSIONRESOURCE_PATH, VersionResource.class); } diff --git a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/ServiceProvidersFactory.java b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/ServiceProvidersFactory.java index 91d0fa87..449b993d 100644 --- a/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/ServiceProvidersFactory.java +++ b/src/server-cm/src/main/java/co/oslc/refimpl/cm/gen/servlet/ServiceProvidersFactory.java @@ -46,7 +46,7 @@ import co.oslc.refimpl.cm.gen.ServiceProviderInfo; -import org.eclipse.lyo.oslc.domains.cm.Oslc_cmDomainConstants; +import org.eclipse.lyo.oslc.domains.cm.Oslc_cm_shapesDomainConstants; import org.eclipse.lyo.oslc.domains.config.Oslc_configDomainConstants; import org.eclipse.lyo.oslc.domains.DctermsDomainConstants; import org.eclipse.lyo.oslc.domains.FoafDomainConstants; @@ -128,13 +128,13 @@ public static ServiceProvider createServiceProvider(final ServiceProviderInfo se new PrefixDefinition(OslcConstants.OSLC_DATA_NAMESPACE_PREFIX, new URI(OslcConstants.OSLC_DATA_NAMESPACE)), new PrefixDefinition(OslcConstants.RDF_NAMESPACE_PREFIX, new URI(OslcConstants.RDF_NAMESPACE)), new PrefixDefinition(OslcConstants.RDFS_NAMESPACE_PREFIX, new URI(OslcConstants.RDFS_NAMESPACE)), - new PrefixDefinition(Oslc_cmDomainConstants.CHANGE_MANAGEMENT_SHAPES_NAMSPACE_PREFIX, new URI(Oslc_cmDomainConstants.CHANGE_MANAGEMENT_SHAPES_NAMSPACE)), + new PrefixDefinition(Oslc_cm_shapesDomainConstants.CHANGE_MANAGEMENT_SHAPES_NAMSPACE_PREFIX, new URI(Oslc_cm_shapesDomainConstants.CHANGE_MANAGEMENT_SHAPES_NAMSPACE)), new PrefixDefinition(Oslc_configDomainConstants.CONFIGURATION_MANAGEMENT_NAMSPACE_PREFIX, new URI(Oslc_configDomainConstants.CONFIGURATION_MANAGEMENT_NAMSPACE)), new PrefixDefinition(DctermsDomainConstants.DUBLIN_CORE_NAMSPACE_PREFIX, new URI(DctermsDomainConstants.DUBLIN_CORE_NAMSPACE)), new PrefixDefinition(FoafDomainConstants.FOAF_NAMSPACE_PREFIX, new URI(FoafDomainConstants.FOAF_NAMSPACE)), new PrefixDefinition(OslcDomainConstants.OSLC_NAMSPACE_PREFIX, new URI(OslcDomainConstants.OSLC_NAMSPACE)), new PrefixDefinition(RdfsDomainConstants.RDFS_NAMSPACE_PREFIX, new URI(RdfsDomainConstants.RDFS_NAMSPACE)), - new PrefixDefinition(Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_NAMSPACE_PREFIX, new URI(Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_NAMSPACE)) + new PrefixDefinition(Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_NAMSPACE_PREFIX, new URI(Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_NAMSPACE)) }; serviceProvider.setPrefixDefinitions(prefixDefinitions); diff --git a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/changenoticecreator.jsp b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/changenoticecreator.jsp index 2db2843c..3c4a092a 100644 --- a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/changenoticecreator.jsp +++ b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/changenoticecreator.jsp @@ -274,6 +274,69 @@ %> + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + diff --git a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/defectcreator.jsp b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/defectcreator.jsp index b51477f2..04ba836c 100644 --- a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/defectcreator.jsp +++ b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/defectcreator.jsp @@ -274,6 +274,69 @@ %> + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + diff --git a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/enhancementcreator.jsp b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/enhancementcreator.jsp index 2a83079b..f8462d84 100644 --- a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/enhancementcreator.jsp +++ b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/enhancementcreator.jsp @@ -274,6 +274,69 @@ %> + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + diff --git a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/reviewtaskcreator.jsp b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/reviewtaskcreator.jsp index 86e46d7f..69c96c06 100644 --- a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/reviewtaskcreator.jsp +++ b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/reviewtaskcreator.jsp @@ -274,6 +274,69 @@ %> + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + diff --git a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/taskcreator.jsp b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/taskcreator.jsp index 1d09b7e1..3ef95b74 100644 --- a/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/taskcreator.jsp +++ b/src/server-cm/src/main/webapp/co/oslc/refimpl/cm/gen/taskcreator.jsp @@ -274,6 +274,69 @@ %> + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + + + + + + <% + %> + +