diff options
author | Ryan D. Brooks | 2016-06-14 23:28:09 +0000 |
---|---|---|
committer | Angel Avila | 2016-06-14 23:28:09 +0000 |
commit | c06df82d61e0fbaba865fc82413a3981d664d0e0 (patch) | |
tree | 8f983e45b7423f3834d1154027b64bf17a587c9a /plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model | |
parent | eb4bf3bf6d8cad58dad30c359741d15bbaef65d8 (diff) | |
download | org.eclipse.osee-c06df82d61e0fbaba865fc82413a3981d664d0e0.tar.gz org.eclipse.osee-c06df82d61e0fbaba865fc82413a3981d664d0e0.tar.xz org.eclipse.osee-c06df82d61e0fbaba865fc82413a3981d664d0e0.zip |
refactor: Remove unnecessary usage of TransactionReadable
Change-Id: I253fb85c0c23445eeac173799adb51d7c541e932
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model')
-rw-r--r-- | plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java index ee8099e3995..4917b0b7f9d 100644 --- a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/TransactionEndpoint.java @@ -19,6 +19,7 @@ import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +import org.eclipse.osee.framework.core.data.TransactionId; import org.eclipse.osee.orcs.transaction.CompareResults; /** @@ -34,16 +35,16 @@ public interface TransactionEndpoint { @GET @Path("{tx-id}") @Produces({MediaType.APPLICATION_JSON}) - Transaction getTx(@PathParam("tx-id") int txId); + Transaction getTx(@PathParam("tx-id") TransactionId txId); @GET @Path("{tx-id1}/diff/{tx-id2}") @Produces({MediaType.APPLICATION_JSON}) - CompareResults compareTxs(@PathParam("tx-id1") int txId1, @PathParam("tx-id2") int txId2); + CompareResults compareTxs(@PathParam("tx-id1") TransactionId txId1, @PathParam("tx-id2") TransactionId txId2); @PUT @Path("{tx-id}/comment/{tx-comment}") - Response setTxComment(@PathParam("tx-id") int txId, @PathParam("tx-comment") String comment); + Response setTxComment(@PathParam("tx-id") TransactionId txId, @PathParam("tx-comment") String comment); @DELETE @Path("{tx-ids}") @@ -54,5 +55,5 @@ public interface TransactionEndpoint { @PUT @Path("{user}/branch/{branch-id}/transaction/{tx-id}/artifact/{art-id}/comment/{comment}") - Response replaceWithBaselineTxVersion(@PathParam("user") String userId, @PathParam("branch-id") Long branchId, @PathParam("tx-id") int txId, @PathParam("art-id") int artId, @PathParam("comment") String comment); + Response replaceWithBaselineTxVersion(@PathParam("user") String userId, @PathParam("branch-id") Long branchId, @PathParam("tx-id") TransactionId txId, @PathParam("art-id") int artId, @PathParam("comment") String comment); }
\ No newline at end of file |