test_class.declarator: preparationUtils
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private PreparationUtils preparationUtils;
test_class.type: PreparationUtils
test_class.var_name: preparationUtils
test_class.declarator: rule = new LocalizationRule(Locale.US)
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public LocalizationRule rule = new LocalizationRule(Locale.US);
test_class.type: LocalizationRule
test_class.var_name: rule
test_class.file: dataprep-preparation/src/test/java/org/talend/dataprep/preparation/service/PreparationControllerTest.java
test_class.identifier: PreparationControllerTest
test_class.superclass: extends BasePreparationTest
test_case.body: @Test
      public void shouldModifyLastAction() throws Exception {
          // Initial preparation
          final String preparationId = createPreparation("1234", "my preparation");
          final String firstStepId = applyTransformation(preparationId, "actions/append_upper_case.json");
          final String secondStepId = applyTransformation(preparationId, "actions/append_lower_case.json");
  
          Preparation preparation = repository.get(preparationId, Preparation.class);
          final long oldModificationDate = preparation.getLastModificationDate();
  
          // when : update second (last) step
          given()
                  .body(IOUtils.toString(
                          PreparationControllerTest.class.getResourceAsStream("actions/append_update_upper_case.json"),
                          UTF_8))
                  .contentType(ContentType.JSON)
                  .when()
                  .put("/preparations/{id}/actions/{action}", preparationId, secondStepId);
  
          // then
          preparation = repository.get(preparationId, Preparation.class);
          assertThat(preparation.getLastModificationDate(), is(greaterThan(oldModificationDate)));
  
          final Step head = repository.get(preparation.getHeadId(), Step.class);
          assertThat(head.getParent(), is(firstStepId));
      }
test_case.class_method_signature: PreparationControllerTest.shouldModifyLastAction()
test_case.full_signature: @Test public void shouldModifyLastAction()
test_case.identifier: shouldModifyLastAction
test_case.invocations: createPreparation applyTransformation applyTransformation get getLastModificationDate put when contentType body given toString getResourceAsStream get assertThat getLastModificationDate is greaterThan get getHeadId assertThat getParent is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldModifyLastAction()
focal_class.declarator: LOGGER = getLogger(PreparationController.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = getLogger(PreparationController.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: preparationService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PreparationService preparationService;
focal_class.type: PreparationService
focal_class.var_name: preparationService
focal_class.declarator: beanConversionService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BeanConversionService beanConversionService;
focal_class.type: BeanConversionService
focal_class.var_name: beanConversionService
focal_class.file: dataprep-preparation/src/main/java/org/talend/dataprep/preparation/service/PreparationController.java
focal_class.identifier: PreparationController
focal_class.class_method_signature: PreparationController.create(@ApiParam("preparation") @RequestBody @Valid final Preparation preparation,
              @ApiParam(value = "The folderId path to create the entry.") @RequestParam String folderId)
focal_class.full_signature: @RequestMapping(value = "/preparations", method = POST) @ApiOperation(value = "Create a preparation", notes = "Returns the id of the created preparation.") @Timed public String create(@ApiParam("preparation") @RequestBody @Valid final Preparation preparation,
              @ApiParam(value = "The folderId path to create the entry.") @RequestParam String folderId)
focal_class.identifier: create
focal_class.modifiers: @RequestMapping(value = "/preparations", method = POST) @ApiOperation(value = "Create a preparation", notes = "Returns the id of the created preparation.") @Timed public
focal_class.parameters: (@ApiParam("preparation") @RequestBody @Valid final Preparation preparation,
              @ApiParam(value = "The folderId path to create the entry.") @RequestParam String folderId)
focal_class.return: String
focal_class.signature: String create(@ApiParam("preparation") @RequestBody @Valid final Preparation preparation,
              @ApiParam(value = "The folderId path to create the entry.") @RequestParam String folderId)
focal_class.class_method_signature: PreparationController.list(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.full_signature: @RequestMapping(value = "/preparations", method = GET) @ApiOperation(value = "List all preparations id", notes = "Returns the list of preparations ids the current user is allowed to see. Creation date is always displayed in UTC time zone. See 'preparations/all' to get all details at once.") @Timed public Stream<String> list(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.identifier: list
focal_class.modifiers: @RequestMapping(value = "/preparations", method = GET) @ApiOperation(value = "List all preparations id", notes = "Returns the list of preparations ids the current user is allowed to see. Creation date is always displayed in UTC time zone. See 'preparations/all' to get all details at once.") @Timed public
focal_class.parameters: (
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.return: Stream<String>
focal_class.signature: Stream<String> list(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.class_method_signature: PreparationController.listAll(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.full_signature: @RequestMapping(value = "/preparations/details", method = GET) @ApiOperation(value = "List all preparations", notes = "Returns the list of preparations details the current user is allowed to see. Creation date is always displayed in UTC time zone. This operation return all details on the preparations.") @Timed public Stream<PreparationDTO> listAll(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.identifier: listAll
focal_class.modifiers: @RequestMapping(value = "/preparations/details", method = GET) @ApiOperation(value = "List all preparations", notes = "Returns the list of preparations details the current user is allowed to see. Creation date is always displayed in UTC time zone. This operation return all details on the preparations.") @Timed public
focal_class.parameters: (
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.return: Stream<PreparationDTO>
focal_class.signature: Stream<PreparationDTO> listAll(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.class_method_signature: PreparationController.listSummary(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.full_signature: @RequestMapping(value = "/preparations/summaries", method = GET) @ApiOperation(value = "List all preparations", notes = "Returns the list of preparations summaries the current user is allowed to see. Creation date is always displayed in UTC time zone.") @Timed public Stream<PreparationDTO> listSummary(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.identifier: listSummary
focal_class.modifiers: @RequestMapping(value = "/preparations/summaries", method = GET) @ApiOperation(value = "List all preparations", notes = "Returns the list of preparations summaries the current user is allowed to see. Creation date is always displayed in UTC time zone.") @Timed public
focal_class.parameters: (
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.return: Stream<PreparationDTO>
focal_class.signature: Stream<PreparationDTO> listSummary(
              @ApiParam(name = "name",
                      value = "Filter preparations by name.") @RequestParam(required = false) String name,
              @ApiParam(name = "folder_path", value = "Filter preparations by folder path.") @RequestParam(
                      required = false, name = "folder_path") String folderPath,
              @ApiParam(name = "path",
                      value = "Filter preparations by full path (<folder path>/<preparation name>).") @RequestParam(
                              required = false, name = "path") String path,
              @ApiParam(value = "Sort key (by name or date).") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc).") @RequestParam(defaultValue = "desc") Order order)
focal_class.class_method_signature: PreparationController.searchPreparations(
              @RequestParam(required = false) @ApiParam("dataSetId") String dataSetId,
              @RequestParam(required = false) @ApiParam(
                      value = "Id of the folder where to look for preparations") String folderId,
              @RequestParam(required = false) @ApiParam(
                      value = "Path of the folder where to look for preparations") String folderPath,
              @RequestParam(required = false) @ApiParam("name") String name,
              @RequestParam(defaultValue = "true") @ApiParam("exactMatch") boolean exactMatch,
              @RequestParam(defaultValue = "lastModificationDate") @ApiParam(
                      value = "Sort key (by name or date).") Sort sort,
              @RequestParam(defaultValue = "desc") @ApiParam(value = "Order for sort key (desc or asc).") Order order)
focal_class.full_signature: @RequestMapping(value = "/preparations/search", method = GET) @ApiOperation(value = "Search for preparations details", notes = "Returns the list of preparations details that match the search criteria.") @Timed public Stream<PreparationDTO> searchPreparations(
              @RequestParam(required = false) @ApiParam("dataSetId") String dataSetId,
              @RequestParam(required = false) @ApiParam(
                      value = "Id of the folder where to look for preparations") String folderId,
              @RequestParam(required = false) @ApiParam(
                      value = "Path of the folder where to look for preparations") String folderPath,
              @RequestParam(required = false) @ApiParam("name") String name,
              @RequestParam(defaultValue = "true") @ApiParam("exactMatch") boolean exactMatch,
              @RequestParam(defaultValue = "lastModificationDate") @ApiParam(
                      value = "Sort key (by name or date).") Sort sort,
              @RequestParam(defaultValue = "desc") @ApiParam(value = "Order for sort key (desc or asc).") Order order)
focal_class.identifier: searchPreparations
focal_class.modifiers: @RequestMapping(value = "/preparations/search", method = GET) @ApiOperation(value = "Search for preparations details", notes = "Returns the list of preparations details that match the search criteria.") @Timed public
focal_class.parameters: (
              @RequestParam(required = false) @ApiParam("dataSetId") String dataSetId,
              @RequestParam(required = false) @ApiParam(
                      value = "Id of the folder where to look for preparations") String folderId,
              @RequestParam(required = false) @ApiParam(
                      value = "Path of the folder where to look for preparations") String folderPath,
              @RequestParam(required = false) @ApiParam("name") String name,
              @RequestParam(defaultValue = "true") @ApiParam("exactMatch") boolean exactMatch,
              @RequestParam(defaultValue = "lastModificationDate") @ApiParam(
                      value = "Sort key (by name or date).") Sort sort,
              @RequestParam(defaultValue = "desc") @ApiParam(value = "Order for sort key (desc or asc).") Order order)
focal_class.return: Stream<PreparationDTO>
focal_class.signature: Stream<PreparationDTO> searchPreparations(
              @RequestParam(required = false) @ApiParam("dataSetId") String dataSetId,
              @RequestParam(required = false) @ApiParam(
                      value = "Id of the folder where to look for preparations") String folderId,
              @RequestParam(required = false) @ApiParam(
                      value = "Path of the folder where to look for preparations") String folderPath,
              @RequestParam(required = false) @ApiParam("name") String name,
              @RequestParam(defaultValue = "true") @ApiParam("exactMatch") boolean exactMatch,
              @RequestParam(defaultValue = "lastModificationDate") @ApiParam(
                      value = "Sort key (by name or date).") Sort sort,
              @RequestParam(defaultValue = "desc") @ApiParam(value = "Order for sort key (desc or asc).") Order order)
focal_class.class_method_signature: PreparationController.copy(
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to copy") String preparationId,
              @ApiParam(value = "The name of the copied preparation.") @RequestParam(required = false) String name,
              @ApiParam(value = "The folder path to create the copy.") @RequestParam() String destination)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/copy", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Copy a preparation", produces = TEXT_PLAIN_VALUE, notes = "Copy the preparation to the new name / folder and returns the new id.") @Timed public String copy(
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to copy") String preparationId,
              @ApiParam(value = "The name of the copied preparation.") @RequestParam(required = false) String name,
              @ApiParam(value = "The folder path to create the copy.") @RequestParam() String destination)
focal_class.identifier: copy
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/copy", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Copy a preparation", produces = TEXT_PLAIN_VALUE, notes = "Copy the preparation to the new name / folder and returns the new id.") @Timed public
focal_class.parameters: (
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to copy") String preparationId,
              @ApiParam(value = "The name of the copied preparation.") @RequestParam(required = false) String name,
              @ApiParam(value = "The folder path to create the copy.") @RequestParam() String destination)
focal_class.return: String
focal_class.signature: String copy(
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to copy") String preparationId,
              @ApiParam(value = "The name of the copied preparation.") @RequestParam(required = false) String name,
              @ApiParam(value = "The folder path to create the copy.") @RequestParam() String destination)
focal_class.class_method_signature: PreparationController.move(
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to move") String preparationId,
              @ApiParam(value = "The original folder path of the preparation.") @RequestParam String folder,
              @ApiParam(value = "The new folder path of the preparation.") @RequestParam String destination,
              @ApiParam(value = "The new name of the moved dataset.") @RequestParam(defaultValue = "") String newName)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/move", method = PUT) @ApiOperation(value = "Move a preparation", notes = "Move a preparation to an other folder.") @Timed public void move(
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to move") String preparationId,
              @ApiParam(value = "The original folder path of the preparation.") @RequestParam String folder,
              @ApiParam(value = "The new folder path of the preparation.") @RequestParam String destination,
              @ApiParam(value = "The new name of the moved dataset.") @RequestParam(defaultValue = "") String newName)
focal_class.identifier: move
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/move", method = PUT) @ApiOperation(value = "Move a preparation", notes = "Move a preparation to an other folder.") @Timed public
focal_class.parameters: (
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to move") String preparationId,
              @ApiParam(value = "The original folder path of the preparation.") @RequestParam String folder,
              @ApiParam(value = "The new folder path of the preparation.") @RequestParam String destination,
              @ApiParam(value = "The new name of the moved dataset.") @RequestParam(defaultValue = "") String newName)
focal_class.return: void
focal_class.signature: void move(
              @PathVariable(value = "id") @ApiParam(name = "id",
                      value = "Id of the preparation to move") String preparationId,
              @ApiParam(value = "The original folder path of the preparation.") @RequestParam String folder,
              @ApiParam(value = "The new folder path of the preparation.") @RequestParam String destination,
              @ApiParam(value = "The new name of the moved dataset.") @RequestParam(defaultValue = "") String newName)
focal_class.class_method_signature: PreparationController.delete(
              @PathVariable(value = "id") @ApiParam(name = "id", value = "Id of the preparation to delete") String id)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}", method = RequestMethod.DELETE) @ApiOperation(value = "Delete a preparation by id", notes = "Delete a preparation content based on provided id. Id should be a UUID returned by the list operation. Not valid or non existing preparation id returns empty content.") @Timed public void delete(
              @PathVariable(value = "id") @ApiParam(name = "id", value = "Id of the preparation to delete") String id)
focal_class.identifier: delete
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}", method = RequestMethod.DELETE) @ApiOperation(value = "Delete a preparation by id", notes = "Delete a preparation content based on provided id. Id should be a UUID returned by the list operation. Not valid or non existing preparation id returns empty content.") @Timed public
focal_class.parameters: (
              @PathVariable(value = "id") @ApiParam(name = "id", value = "Id of the preparation to delete") String id)
focal_class.return: void
focal_class.signature: void delete(
              @PathVariable(value = "id") @ApiParam(name = "id", value = "Id of the preparation to delete") String id)
focal_class.class_method_signature: PreparationController.update(@ApiParam("id") @PathVariable("id") String id,
              @RequestBody @ApiParam("preparation") final PreparationDTO preparation)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}", method = PUT) @ApiOperation(value = "Create a preparation", notes = "Returns the id of the updated preparation.") @Timed public String update(@ApiParam("id") @PathVariable("id") String id,
              @RequestBody @ApiParam("preparation") final PreparationDTO preparation)
focal_class.identifier: update
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}", method = PUT) @ApiOperation(value = "Create a preparation", notes = "Returns the id of the updated preparation.") @Timed public
focal_class.parameters: (@ApiParam("id") @PathVariable("id") String id,
              @RequestBody @ApiParam("preparation") final PreparationDTO preparation)
focal_class.return: String
focal_class.signature: String update(@ApiParam("id") @PathVariable("id") String id,
              @RequestBody @ApiParam("preparation") final PreparationDTO preparation)
focal_class.class_method_signature: PreparationController.updateStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId,
              @RequestBody @ApiParam("rowMetadata") final RowMetadata rowMetadata)
focal_class.full_signature: @RequestMapping(value = "/preparations/steps/{stepId}/metadata", method = PUT, produces = TEXT_PLAIN_VALUE, consumes = APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a preparation steps", notes = "Returns the id of the updated step.") @Timed public String updateStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId,
              @RequestBody @ApiParam("rowMetadata") final RowMetadata rowMetadata)
focal_class.identifier: updateStepMetadata
focal_class.modifiers: @RequestMapping(value = "/preparations/steps/{stepId}/metadata", method = PUT, produces = TEXT_PLAIN_VALUE, consumes = APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a preparation steps", notes = "Returns the id of the updated step.") @Timed public
focal_class.parameters: (@ApiParam("stepId") @PathVariable("stepId") String stepId,
              @RequestBody @ApiParam("rowMetadata") final RowMetadata rowMetadata)
focal_class.return: String
focal_class.signature: String updateStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId,
              @RequestBody @ApiParam("rowMetadata") final RowMetadata rowMetadata)
focal_class.class_method_signature: PreparationController.invalidateStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.full_signature: @RequestMapping(value = "/preparations/steps/{stepId}/metadata", method = DELETE) @ApiOperation(value = "Deletes the metadata associated with step") @Timed public void invalidateStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.identifier: invalidateStepMetadata
focal_class.modifiers: @RequestMapping(value = "/preparations/steps/{stepId}/metadata", method = DELETE) @ApiOperation(value = "Deletes the metadata associated with step") @Timed public
focal_class.parameters: (@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.return: void
focal_class.signature: void invalidateStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.class_method_signature: PreparationController.getStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.full_signature: @RequestMapping(value = "/preparations/steps/{stepId}/metadata", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a preparation steps", notes = "Returns the id of the updated step.") @Timed public RowMetadata getStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.identifier: getStepMetadata
focal_class.modifiers: @RequestMapping(value = "/preparations/steps/{stepId}/metadata", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a preparation steps", notes = "Returns the id of the updated step.") @Timed public
focal_class.parameters: (@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.return: RowMetadata
focal_class.signature: RowMetadata getStepMetadata(@ApiParam("stepId") @PathVariable("stepId") String stepId)
focal_class.class_method_signature: PreparationController.copyStepsFrom(@ApiParam(value = "the preparation id to update") @PathVariable("id") String id,
              @ApiParam(value = "the preparation to copy the steps from.") @RequestParam String from)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/steps/copy", method = PUT) @ApiOperation(value = "Copy the steps from another preparation", notes = "Copy the steps from another preparation if this one has no steps.") @Timed public void copyStepsFrom(@ApiParam(value = "the preparation id to update") @PathVariable("id") String id,
              @ApiParam(value = "the preparation to copy the steps from.") @RequestParam String from)
focal_class.identifier: copyStepsFrom
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/steps/copy", method = PUT) @ApiOperation(value = "Copy the steps from another preparation", notes = "Copy the steps from another preparation if this one has no steps.") @Timed public
focal_class.parameters: (@ApiParam(value = "the preparation id to update") @PathVariable("id") String id,
              @ApiParam(value = "the preparation to copy the steps from.") @RequestParam String from)
focal_class.return: void
focal_class.signature: void copyStepsFrom(@ApiParam(value = "the preparation id to update") @PathVariable("id") String id,
              @ApiParam(value = "the preparation to copy the steps from.") @RequestParam String from)
focal_class.class_method_signature: PreparationController.getDetails( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/details", method = GET) @ApiOperation(value = "Get preparation details", notes = "Return the details of the preparation with provided id.") @Timed public PreparationDTO getDetails( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.identifier: getDetails
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/details", method = GET) @ApiOperation(value = "Get preparation details", notes = "Return the details of the preparation with provided id.") @Timed public
focal_class.parameters: ( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.return: PreparationDTO
focal_class.signature: PreparationDTO getDetails( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.class_method_signature: PreparationController.getDetailsFull( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/details/full", method = GET) @ApiOperation(value = "Get preparation details", notes = "Return the details of the preparation with provided id.") @Timed public PreparationDetailsDTO getDetailsFull( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.identifier: getDetailsFull
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/details/full", method = GET) @ApiOperation(value = "Get preparation details", notes = "Return the details of the preparation with provided id.") @Timed public
focal_class.parameters: ( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.return: PreparationDetailsDTO
focal_class.signature: PreparationDetailsDTO getDetailsFull( //
              @ApiParam("id") @PathVariable("id") String id, //
              @ApiParam(value = "stepId", defaultValue = "head") @RequestParam(value = "stepId",
                      defaultValue = "head") String stepId)
focal_class.class_method_signature: PreparationController.get(@ApiParam("id") @PathVariable("id") String id)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}", method = GET) @ApiOperation(value = "Get preparation", notes = "Return the preparation with provided id.") @Timed public PreparationDTO get(@ApiParam("id") @PathVariable("id") String id)
focal_class.identifier: get
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}", method = GET) @ApiOperation(value = "Get preparation", notes = "Return the preparation with provided id.") @Timed public
focal_class.parameters: (@ApiParam("id") @PathVariable("id") String id)
focal_class.return: PreparationDTO
focal_class.signature: PreparationDTO get(@ApiParam("id") @PathVariable("id") String id)
focal_class.class_method_signature: PreparationController.searchLocation(@ApiParam(value = "the preparation id") @PathVariable("id") String id)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/folder", method = GET) @ApiOperation(value = "Get preparation details", notes = "Return the details of the preparation with provided id.") @Timed public Folder searchLocation(@ApiParam(value = "the preparation id") @PathVariable("id") String id)
focal_class.identifier: searchLocation
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/folder", method = GET) @ApiOperation(value = "Get preparation details", notes = "Return the details of the preparation with provided id.") @Timed public
focal_class.parameters: (@ApiParam(value = "the preparation id") @PathVariable("id") String id)
focal_class.return: Folder
focal_class.signature: Folder searchLocation(@ApiParam(value = "the preparation id") @PathVariable("id") String id)
focal_class.class_method_signature: PreparationController.getSteps(@ApiParam("id") @PathVariable("id") String id)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/steps", method = GET) @ApiOperation(value = "Get all preparation steps id", notes = "Return the steps of the preparation with provided id.") @Timed public List<String> getSteps(@ApiParam("id") @PathVariable("id") String id)
focal_class.identifier: getSteps
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/steps", method = GET) @ApiOperation(value = "Get all preparation steps id", notes = "Return the steps of the preparation with provided id.") @Timed public
focal_class.parameters: (@ApiParam("id") @PathVariable("id") String id)
focal_class.return: List<String>
focal_class.signature: List<String> getSteps(@ApiParam("id") @PathVariable("id") String id)
focal_class.class_method_signature: PreparationController.updateAction(@PathVariable("id") final String preparationId,
              @PathVariable("stepId") final String stepToModifyId, @RequestBody final AppendStep newStep)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/actions/{stepId}", method = PUT) @ApiOperation(value = "Updates an action in a preparation", notes = "Modifies an action in preparation's steps.") @Timed public void updateAction(@PathVariable("id") final String preparationId,
              @PathVariable("stepId") final String stepToModifyId, @RequestBody final AppendStep newStep)
focal_class.identifier: updateAction
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/actions/{stepId}", method = PUT) @ApiOperation(value = "Updates an action in a preparation", notes = "Modifies an action in preparation's steps.") @Timed public
focal_class.parameters: (@PathVariable("id") final String preparationId,
              @PathVariable("stepId") final String stepToModifyId, @RequestBody final AppendStep newStep)
focal_class.return: void
focal_class.signature: void updateAction(@PathVariable("id") final String preparationId,
              @PathVariable("stepId") final String stepToModifyId, @RequestBody final AppendStep newStep)
focal_class.class_method_signature: PreparationController.deleteAction(@PathVariable("id") final String id, @PathVariable("stepId") final String stepToDeleteId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/actions/{stepId}", method = DELETE) @ApiOperation(value = "Delete an action in a preparation", notes = "Delete a step and all following steps from a preparation") @Timed public void deleteAction(@PathVariable("id") final String id, @PathVariable("stepId") final String stepToDeleteId)
focal_class.identifier: deleteAction
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/actions/{stepId}", method = DELETE) @ApiOperation(value = "Delete an action in a preparation", notes = "Delete a step and all following steps from a preparation") @Timed public
focal_class.parameters: (@PathVariable("id") final String id, @PathVariable("stepId") final String stepToDeleteId)
focal_class.return: void
focal_class.signature: void deleteAction(@PathVariable("id") final String id, @PathVariable("stepId") final String stepToDeleteId)
focal_class.class_method_signature: PreparationController.setPreparationHead(@PathVariable("id") final String preparationId, //
              @PathVariable("headId") final String headId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/head/{headId}", method = PUT) @ApiOperation(value = "Move preparation head", notes = "Set head to the specified head id") @Timed public void setPreparationHead(@PathVariable("id") final String preparationId, //
              @PathVariable("headId") final String headId)
focal_class.identifier: setPreparationHead
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/head/{headId}", method = PUT) @ApiOperation(value = "Move preparation head", notes = "Set head to the specified head id") @Timed public
focal_class.parameters: (@PathVariable("id") final String preparationId, //
              @PathVariable("headId") final String headId)
focal_class.return: void
focal_class.signature: void setPreparationHead(@PathVariable("id") final String preparationId, //
              @PathVariable("headId") final String headId)
focal_class.class_method_signature: PreparationController.getVersionedAction(@ApiParam("id") @PathVariable("id") final String id,
              @ApiParam("version") @PathVariable("version") final String version)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/actions/{version}", method = GET) @ApiOperation(value = "Get all the actions of a preparation at given version.", notes = "Returns the action JSON at version.") @Timed public List<Action> getVersionedAction(@ApiParam("id") @PathVariable("id") final String id,
              @ApiParam("version") @PathVariable("version") final String version)
focal_class.identifier: getVersionedAction
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/actions/{version}", method = GET) @ApiOperation(value = "Get all the actions of a preparation at given version.", notes = "Returns the action JSON at version.") @Timed public
focal_class.parameters: (@ApiParam("id") @PathVariable("id") final String id,
              @ApiParam("version") @PathVariable("version") final String version)
focal_class.return: List<Action>
focal_class.signature: List<Action> getVersionedAction(@ApiParam("id") @PathVariable("id") final String id,
              @ApiParam("version") @PathVariable("version") final String version)
focal_class.class_method_signature: PreparationController.listErrors()
focal_class.full_signature: @RequestMapping(value = "/preparations/errors", method = RequestMethod.GET) @ApiOperation(value = "Get all preparation related error codes.", notes = "Returns the list of all preparation related error codes.") @Timed public Iterable<JsonErrorCodeDescription> listErrors()
focal_class.identifier: listErrors
focal_class.modifiers: @RequestMapping(value = "/preparations/errors", method = RequestMethod.GET) @ApiOperation(value = "Get all preparation related error codes.", notes = "Returns the list of all preparation related error codes.") @Timed public
focal_class.parameters: ()
focal_class.return: Iterable<JsonErrorCodeDescription>
focal_class.signature: Iterable<JsonErrorCodeDescription> listErrors()
focal_class.class_method_signature: PreparationController.lockPreparation(@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{preparationId}/lock", method = PUT) @ApiOperation(value = "Lock the specified preparation.", notes = "Returns a locked resource.") @Timed public void lockPreparation(@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.identifier: lockPreparation
focal_class.modifiers: @RequestMapping(value = "/preparations/{preparationId}/lock", method = PUT) @ApiOperation(value = "Lock the specified preparation.", notes = "Returns a locked resource.") @Timed public
focal_class.parameters: (@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.return: void
focal_class.signature: void lockPreparation(@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.class_method_signature: PreparationController.unlockPreparation(@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{preparationId}/unlock", method = PUT) @ApiOperation(value = "Unlock the specified preparation.", notes = "Returns a locked resource.") @Timed public void unlockPreparation(@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.identifier: unlockPreparation
focal_class.modifiers: @RequestMapping(value = "/preparations/{preparationId}/unlock", method = PUT) @ApiOperation(value = "Unlock the specified preparation.", notes = "Returns a locked resource.") @Timed public
focal_class.parameters: (@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.return: void
focal_class.signature: void unlockPreparation(@ApiParam("preparationId") @PathVariable("preparationId") final String preparationId)
focal_class.class_method_signature: PreparationController.preparationsThatUseDataset(@ApiParam("datasetId") @PathVariable("datasetId") final String datasetId)
focal_class.full_signature: @RequestMapping(value = "/preparations/use/dataset/{datasetId}", method = HEAD) @ApiOperation(value = "Check if dataset is used by a preparation.", notes = "Returns no content, the response code is the meaning.") @Timed public ResponseEntity<Void> preparationsThatUseDataset(@ApiParam("datasetId") @PathVariable("datasetId") final String datasetId)
focal_class.identifier: preparationsThatUseDataset
focal_class.modifiers: @RequestMapping(value = "/preparations/use/dataset/{datasetId}", method = HEAD) @ApiOperation(value = "Check if dataset is used by a preparation.", notes = "Returns no content, the response code is the meaning.") @Timed public
focal_class.parameters: (@ApiParam("datasetId") @PathVariable("datasetId") final String datasetId)
focal_class.return: ResponseEntity<Void>
focal_class.signature: ResponseEntity<Void> preparationsThatUseDataset(@ApiParam("datasetId") @PathVariable("datasetId") final String datasetId)
focal_class.class_method_signature: PreparationController.moveStep(@PathVariable("id") final String preparationId,
              @ApiParam(value = "The id of the step we want to move.") @PathVariable String stepId,
              @ApiParam(value = "The step that will become the parent of stepId") @RequestParam String parentStepId)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/steps/{stepId}/order", method = POST) @ApiOperation(value = "Moves a step within a preparation after a specified step", notes = "Moves a step within a preparation after a specified step.") @Timed public void moveStep(@PathVariable("id") final String preparationId,
              @ApiParam(value = "The id of the step we want to move.") @PathVariable String stepId,
              @ApiParam(value = "The step that will become the parent of stepId") @RequestParam String parentStepId)
focal_class.identifier: moveStep
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/steps/{stepId}/order", method = POST) @ApiOperation(value = "Moves a step within a preparation after a specified step", notes = "Moves a step within a preparation after a specified step.") @Timed public
focal_class.parameters: (@PathVariable("id") final String preparationId,
              @ApiParam(value = "The id of the step we want to move.") @PathVariable String stepId,
              @ApiParam(value = "The step that will become the parent of stepId") @RequestParam String parentStepId)
focal_class.return: void
focal_class.signature: void moveStep(@PathVariable("id") final String preparationId,
              @ApiParam(value = "The id of the step we want to move.") @PathVariable String stepId,
              @ApiParam(value = "The step that will become the parent of stepId") @RequestParam String parentStepId)
focal_class.class_method_signature: PreparationController.addPreparationAction(
              @ApiParam(name = "id", value = "Preparation id.") @PathVariable(value = "id") final String preparationId,
              @ApiParam("Action to add at end of the preparation.") @RequestBody final List<AppendStep> steps)
focal_class.full_signature: @RequestMapping(value = "/preparations/{id}/actions", method = POST) @ApiOperation(value = "Adds an action at the end of preparation.", notes = "Does not return any value, client may expect successful operation based on HTTP status code.") @Timed public void addPreparationAction(
              @ApiParam(name = "id", value = "Preparation id.") @PathVariable(value = "id") final String preparationId,
              @ApiParam("Action to add at end of the preparation.") @RequestBody final List<AppendStep> steps)
focal_class.identifier: addPreparationAction
focal_class.modifiers: @RequestMapping(value = "/preparations/{id}/actions", method = POST) @ApiOperation(value = "Adds an action at the end of preparation.", notes = "Does not return any value, client may expect successful operation based on HTTP status code.") @Timed public
focal_class.parameters: (
              @ApiParam(name = "id", value = "Preparation id.") @PathVariable(value = "id") final String preparationId,
              @ApiParam("Action to add at end of the preparation.") @RequestBody final List<AppendStep> steps)
focal_class.return: void
focal_class.signature: void addPreparationAction(
              @ApiParam(name = "id", value = "Preparation id.") @PathVariable(value = "id") final String preparationId,
              @ApiParam("Action to add at end of the preparation.") @RequestBody final List<AppendStep> steps)
focal_class.class_method_signature: PreparationController.getStep(@PathVariable("id") final String stepId)
focal_class.full_signature: @RequestMapping(value = "/steps/{id}", method = GET) @ApiOperation(value = "Retrieve a specific step.", notes = "Just find the step for this ID.") @Timed public Step getStep(@PathVariable("id") final String stepId)
focal_class.identifier: getStep
focal_class.modifiers: @RequestMapping(value = "/steps/{id}", method = GET) @ApiOperation(value = "Retrieve a specific step.", notes = "Just find the step for this ID.") @Timed public
focal_class.parameters: (@PathVariable("id") final String stepId)
focal_class.return: Step
focal_class.signature: Step getStep(@PathVariable("id") final String stepId)
focal_method.body: @RequestMapping(value = "/preparations/{id}", method = GET)
      @ApiOperation(value = "Get preparation", notes = "Return the preparation with provided id.")
      @Timed
      public PreparationDTO get(@ApiParam("id") @PathVariable("id") String id) {
          return preparationService.getPreparation(id);
      }
focal_method.class_method_signature: PreparationController.get(@ApiParam("id") @PathVariable("id") String id)
focal_method.full_signature: @RequestMapping(value = "/preparations/{id}", method = GET) @ApiOperation(value = "Get preparation", notes = "Return the preparation with provided id.") @Timed public PreparationDTO get(@ApiParam("id") @PathVariable("id") String id)
focal_method.identifier: get
focal_method.invocations: getPreparation
focal_method.modifiers: @RequestMapping(value = "/preparations/{id}", method = GET) @ApiOperation(value = "Get preparation", notes = "Return the preparation with provided id.") @Timed public
focal_method.parameters: (@ApiParam("id") @PathVariable("id") String id)
focal_method.return: PreparationDTO
focal_method.signature: PreparationDTO get(@ApiParam("id") @PathVariable("id") String id)