fixed setCalledMethod paths
This commit is contained in:
parent
fdead3cb7d
commit
15c4e1501f
|
@ -93,7 +93,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
String path = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + profileID);
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + profileID);
|
||||||
CalledMethodHandler.setCalledMethod(path + "/getConfiguration");
|
CalledMethodHandler.setCalledMethod(path + "/"+InterfaceConstants.Methods.CONFIGURATION_PATH);
|
||||||
|
|
||||||
return new GuardedMethod<Configuration>() {
|
return new GuardedMethod<Configuration>() {
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.PUT,
|
String path = CalledMethodHandler.buildCalledResource(HttpMethod.PUT,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(path + "/update/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
CalledMethodHandler.setCalledMethod(path + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||||
|
|
||||||
Project theUpdatedProject = new GuardedMethod<Project>() {
|
Project theUpdatedProject = new GuardedMethod<Project>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -210,7 +210,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource("PATCH",
|
String path = CalledMethodHandler.buildCalledResource("PATCH",
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(path + "/patch/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
CalledMethodHandler.setCalledMethod(path + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||||
|
|
||||||
return new GuardedMethod<Project>() {
|
return new GuardedMethod<Project>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -237,7 +237,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE,
|
String path = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(path + "/delete/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
CalledMethodHandler.setCalledMethod(path + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||||
|
|
||||||
Boolean deleted = new GuardedMethod<Boolean>() {
|
Boolean deleted = new GuardedMethod<Boolean>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -453,7 +453,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/list");
|
CalledMethodHandler.setCalledMethod(pathCalledResource);
|
||||||
|
|
||||||
return new GuardedMethod<Iterable<?>>() {
|
return new GuardedMethod<Iterable<?>>() {
|
||||||
protected Iterable<?> run() throws Exception, WebApplicationException {
|
protected Iterable<?> run() throws Exception, WebApplicationException {
|
||||||
|
@ -477,7 +477,7 @@ public class ProfiledDocuments {
|
||||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler
|
CalledMethodHandler
|
||||||
.setCalledMethod(pathCalledResource + "/getById/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
.setCalledMethod(pathCalledResource + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}");
|
||||||
|
|
||||||
return new GuardedMethod<Project>() {
|
return new GuardedMethod<Project>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -557,7 +557,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.GET,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/getRelationshipChain/" + "{"
|
CalledMethodHandler.setCalledMethod(pathCalledResource + "/{"
|
||||||
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
||||||
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
||||||
|
|
||||||
|
@ -590,7 +590,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.PUT,
|
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.PUT,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/setRelation/" + "{"
|
CalledMethodHandler.setCalledMethod(pathCalledResource + "/{"
|
||||||
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
||||||
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
||||||
|
|
||||||
|
@ -630,7 +630,7 @@ public class ProfiledDocuments {
|
||||||
|
|
||||||
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE,
|
String pathCalledResource = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE,
|
||||||
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
"/" + InterfaceConstants.Methods.PROJECTS + "/" + manager.getUseCaseDescriptor().getId());
|
||||||
CalledMethodHandler.setCalledMethod(pathCalledResource + "/deleteRelation/" + "{"
|
CalledMethodHandler.setCalledMethod(pathCalledResource + "/{"
|
||||||
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
+ InterfaceConstants.Methods.RELATIONSHIP + "}/{" + InterfaceConstants.Parameters.PROJECT_ID + "}"
|
||||||
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
+ "/{" + InterfaceConstants.Parameters.RELATIONSHIP_ID + "}");
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class UseCaseDescriptors {
|
||||||
UseCaseDescriptor d) {
|
UseCaseDescriptor d) {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.PUT, "/" + InterfaceConstants.Methods.UCD);
|
String path = CalledMethodHandler.buildCalledResource(HttpMethod.PUT, "/" + InterfaceConstants.Methods.UCD);
|
||||||
CalledMethodHandler.setCalledMethod(path + "/update/" + profileId);
|
CalledMethodHandler.setCalledMethod(path + "/" + profileId);
|
||||||
|
|
||||||
return new GuardedMethod<UseCaseDescriptor>() {
|
return new GuardedMethod<UseCaseDescriptor>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -97,7 +97,7 @@ public class UseCaseDescriptors {
|
||||||
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force) {
|
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force) {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE, "/" + InterfaceConstants.Methods.UCD);
|
String path = CalledMethodHandler.buildCalledResource(HttpMethod.DELETE, "/" + InterfaceConstants.Methods.UCD);
|
||||||
CalledMethodHandler.setCalledMethod(path + "/delete/"+id);
|
CalledMethodHandler.setCalledMethod(path + "/"+id);
|
||||||
|
|
||||||
return new GuardedMethod<Boolean>() {
|
return new GuardedMethod<Boolean>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -116,7 +116,7 @@ public class UseCaseDescriptors {
|
||||||
public UseCaseDescriptor getById(@PathParam(InterfaceConstants.Parameters.UCID) String id) {
|
public UseCaseDescriptor getById(@PathParam(InterfaceConstants.Parameters.UCID) String id) {
|
||||||
|
|
||||||
String path = CalledMethodHandler.buildCalledResource(HttpMethod.GET, "/" + InterfaceConstants.Methods.UCD);
|
String path = CalledMethodHandler.buildCalledResource(HttpMethod.GET, "/" + InterfaceConstants.Methods.UCD);
|
||||||
CalledMethodHandler.setCalledMethod(path + "/getById/" + id);
|
CalledMethodHandler.setCalledMethod(path + "/"+ id);
|
||||||
|
|
||||||
return new GuardedMethod<UseCaseDescriptor>() {
|
return new GuardedMethod<UseCaseDescriptor>() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue