test_class.declarator: userNamespaceAuthorizationRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private UserNamespaceAuthorizationRestController userNamespaceAuthorizationRestController;
test_class.type: UserNamespaceAuthorizationRestController
test_class.var_name: userNamespaceAuthorizationRestController
test_class.declarator: userNamespaceAuthorizationService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UserNamespaceAuthorizationService userNamespaceAuthorizationService;
test_class.type: UserNamespaceAuthorizationService
test_class.var_name: userNamespaceAuthorizationService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/UserNamespaceAuthorizationRestControllerTest.java
test_class.identifier: UserNamespaceAuthorizationRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testGetUserNamespaceAuthorizationsByUserId() throws Exception
      {
          UserNamespaceAuthorizations userNamespaceAuthorizations = new UserNamespaceAuthorizations();
  
          when(userNamespaceAuthorizationService.getUserNamespaceAuthorizationsByUserId(USER_ID)).thenReturn(userNamespaceAuthorizations);
  
          // Get user namespace authorizations for the specified user id.
          UserNamespaceAuthorizations resultUserNamespaceAuthorizations =
              userNamespaceAuthorizationRestController.getUserNamespaceAuthorizationsByUserId(USER_ID);
  
          // Verify the external calls.
          verify(userNamespaceAuthorizationService).getUserNamespaceAuthorizationsByUserId(USER_ID);
          verifyNoMoreInteractions(userNamespaceAuthorizationService);
  
          // Validate the returned object.
          assertEquals(resultUserNamespaceAuthorizations, userNamespaceAuthorizations);
      }
test_case.class_method_signature: UserNamespaceAuthorizationRestControllerTest.testGetUserNamespaceAuthorizationsByUserId()
test_case.full_signature: @Test public void testGetUserNamespaceAuthorizationsByUserId()
test_case.identifier: testGetUserNamespaceAuthorizationsByUserId
test_case.invocations: thenReturn when getUserNamespaceAuthorizationsByUserId getUserNamespaceAuthorizationsByUserId getUserNamespaceAuthorizationsByUserId verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetUserNamespaceAuthorizationsByUserId()
focal_class.declarator: USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX = "/userNamespaceAuthorizations"
focal_class.modifier: public static final
focal_class.original_string: public static final String USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX = "/userNamespaceAuthorizations";
focal_class.type: String
focal_class.var_name: USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX
focal_class.declarator: userNamespaceAuthorizationService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UserNamespaceAuthorizationService userNamespaceAuthorizationService;
focal_class.type: UserNamespaceAuthorizationService
focal_class.var_name: userNamespaceAuthorizationService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/UserNamespaceAuthorizationRestController.java
focal_class.identifier: UserNamespaceAuthorizationRestController
focal_class.class_method_signature: UserNamespaceAuthorizationRestController.createUserNamespaceAuthorization(@RequestBody UserNamespaceAuthorizationCreateRequest request)
focal_class.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_POST) public UserNamespaceAuthorization createUserNamespaceAuthorization(@RequestBody UserNamespaceAuthorizationCreateRequest request)
focal_class.identifier: createUserNamespaceAuthorization
focal_class.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_POST) public
focal_class.parameters: (@RequestBody UserNamespaceAuthorizationCreateRequest request)
focal_class.return: UserNamespaceAuthorization
focal_class.signature: UserNamespaceAuthorization createUserNamespaceAuthorization(@RequestBody UserNamespaceAuthorizationCreateRequest request)
focal_class.class_method_signature: UserNamespaceAuthorizationRestController.updateUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace,
          @RequestBody UserNamespaceAuthorizationUpdateRequest request)
focal_class.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_PUT) public UserNamespaceAuthorization updateUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace,
          @RequestBody UserNamespaceAuthorizationUpdateRequest request)
focal_class.identifier: updateUserNamespaceAuthorization
focal_class.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_PUT) public
focal_class.parameters: (@PathVariable("userId") String userId, @PathVariable("namespace") String namespace,
          @RequestBody UserNamespaceAuthorizationUpdateRequest request)
focal_class.return: UserNamespaceAuthorization
focal_class.signature: UserNamespaceAuthorization updateUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace,
          @RequestBody UserNamespaceAuthorizationUpdateRequest request)
focal_class.class_method_signature: UserNamespaceAuthorizationRestController.getUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_GET) public UserNamespaceAuthorization getUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.identifier: getUserNamespaceAuthorization
focal_class.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_GET) public
focal_class.parameters: (@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.return: UserNamespaceAuthorization
focal_class.signature: UserNamespaceAuthorization getUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.class_method_signature: UserNamespaceAuthorizationRestController.deleteUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_DELETE) public UserNamespaceAuthorization deleteUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.identifier: deleteUserNamespaceAuthorization
focal_class.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_DELETE) public
focal_class.parameters: (@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.return: UserNamespaceAuthorization
focal_class.signature: UserNamespaceAuthorization deleteUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace)
focal_class.class_method_signature: UserNamespaceAuthorizationRestController.getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)
focal_class.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_USERID_GET) public UserNamespaceAuthorizations getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)
focal_class.identifier: getUserNamespaceAuthorizationsByUserId
focal_class.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_USERID_GET) public
focal_class.parameters: (@PathVariable("userId") String userId)
focal_class.return: UserNamespaceAuthorizations
focal_class.signature: UserNamespaceAuthorizations getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)
focal_class.class_method_signature: UserNamespaceAuthorizationRestController.getUserNamespaceAuthorizationsByNamespace(@PathVariable("namespace") String namespace)
focal_class.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_NAMESPACE_GET) public UserNamespaceAuthorizations getUserNamespaceAuthorizationsByNamespace(@PathVariable("namespace") String namespace)
focal_class.identifier: getUserNamespaceAuthorizationsByNamespace
focal_class.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_NAMESPACE_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace)
focal_class.return: UserNamespaceAuthorizations
focal_class.signature: UserNamespaceAuthorizations getUserNamespaceAuthorizationsByNamespace(@PathVariable("namespace") String namespace)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_USERID_GET)
      public UserNamespaceAuthorizations getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)
      {
          return userNamespaceAuthorizationService.getUserNamespaceAuthorizationsByUserId(userId);
      }
focal_method.class_method_signature: UserNamespaceAuthorizationRestController.getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)
focal_method.full_signature: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_USERID_GET) public UserNamespaceAuthorizations getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)
focal_method.identifier: getUserNamespaceAuthorizationsByUserId
focal_method.invocations: getUserNamespaceAuthorizationsByUserId
focal_method.modifiers: @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_BY_USERID_GET) public
focal_method.parameters: (@PathVariable("userId") String userId)
focal_method.return: UserNamespaceAuthorizations
focal_method.signature: UserNamespaceAuthorizations getUserNamespaceAuthorizationsByUserId(@PathVariable("userId") String userId)