@Test public void testConfirmCredentials() { authenticationController.confirmCredentials("", ""); }
@POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (user == null) { return Response.badRequest("Useraccount was null", null); } User enabledUser = userManager.enable((user.getId())); if (enabledUser != null) { return Response.ok(); } else { return Response.badRequest("Useraccount was null", null); } }
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (user == null) { return Response.badRequest("Useraccount was null", null); } User enabledUser = userManager.enable((user.getId())); if (enabledUser != null) { return Response.ok(); } else { return Response.badRequest("Useraccount was null", null); } } }
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (user == null) { return Response.badRequest("Useraccount was null", null); } User enabledUser = userManager.enable((user.getId())); if (enabledUser != null) { return Response.ok(); } else { return Response.badRequest("Useraccount was null", null); } }  }
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (user == null) { return Response.badRequest("Useraccount was null", null); } User enabledUser = userManager.enable((user.getId())); if (enabledUser != null) { return Response.ok(); } else { return Response.badRequest("Useraccount was null", null); } }  void setUserManager(UserManager userManager); void setAccessControlManager(AccessControlManager accessControlManager); @GET @Path("{userName}") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") Response<AccountEntry> getUser(
               @PathParam("userName") String userName); @POST @Path("{userName}")// can be @me - then updating the current user @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") Response<AccountEntry> updateUser(
               @PathParam("said") String said,
               @PathParam("userName") String userName,
               Request<AccountEntry> request); @DELETE @Path("{userName}") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") Response<AccountEntry> deleteAccount(Request<AccountEntry> request,
            @PathParam("userName") String userName); @GET @Path("/username") String getCurrentUserName(); @GET @Path("/role") String getCurrentRole(); @GET @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") Response<AccountEntry> getCredentials(
            @PathParam("said") String saidLocal,
            @PathParam("contact-said") String saidRequester); @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") Response<?> confirmCredentials(
            @PathParam("said") String saidLocal,
            @PathParam("contact-said") String saidRequester); }
AuthenticationController { @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") public Response<?> confirmCredentials( @PathParam("said") String saidLocal, @PathParam("contact-said") String saidRequester) { User user = userManager.getUserForAccountAndTenant(saidRequester, saidLocal); if (user == null) { return Response.badRequest("Useraccount was null", null); } User enabledUser = userManager.enable((user.getId())); if (enabledUser != null) { return Response.ok(); } else { return Response.badRequest("Useraccount was null", null); } }  void setUserManager(UserManager userManager); void setAccessControlManager(AccessControlManager accessControlManager); @GET @Path("{userName}") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") Response<AccountEntry> getUser(
               @PathParam("userName") String userName); @POST @Path("{userName}")// can be @me - then updating the current user @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") Response<AccountEntry> updateUser(
               @PathParam("said") String said,
               @PathParam("userName") String userName,
               Request<AccountEntry> request); @DELETE @Path("{userName}") @Consumes(MediaType.APPLICATION_JSON + ";charset=UTF-8") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") Response<AccountEntry> deleteAccount(Request<AccountEntry> request,
            @PathParam("userName") String userName); @GET @Path("/username") String getCurrentUserName(); @GET @Path("/role") String getCurrentRole(); @GET @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") Response<AccountEntry> getCredentials(
            @PathParam("said") String saidLocal,
            @PathParam("contact-said") String saidRequester); @POST @Produces(MediaType.APPLICATION_JSON) @Path("/credentials/{contact-said}") Response<?> confirmCredentials(
            @PathParam("said") String saidLocal,
            @PathParam("contact-said") String saidRequester);  }