test_class.declarator: userDataRepository
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      UserDataRepository userDataRepository;
test_class.type: UserDataRepository
test_class.var_name: userDataRepository
test_class.declarator: security
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      Security security;
test_class.type: Security
test_class.var_name: security
test_class.declarator: versionService
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      VersionService versionService;
test_class.type: VersionService
test_class.var_name: versionService
test_class.file: dataprep-api/src/test/java/org/talend/dataprep/api/service/DataSetAPITest.java
test_class.identifier: DataSetAPITest
test_class.superclass: extends ApiServiceTestBase
test_case.body: @Test
      public void testDataSetLineActions() throws Exception {
          // when
          final String content = given().when().get("/api/transform/actions/line").asString();
  
          // then
          final InputStream expected =
                  PreparationAPITest.class.getResourceAsStream("suggestions/all_line_scope_actions.json");
          assertThat(content, sameJSONAsFile(expected));
      }
test_case.class_method_signature: DataSetAPITest.testDataSetLineActions()
test_case.full_signature: @Test public void testDataSetLineActions()
test_case.identifier: testDataSetLineActions
test_case.invocations: asString get when given getResourceAsStream assertThat sameJSONAsFile
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDataSetLineActions()
focal_class.declarator: datasetClient
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private DatasetClient datasetClient;
focal_class.type: DatasetClient
focal_class.var_name: datasetClient
focal_class.declarator: datasetListLimit
focal_class.modifier: @Value("${dataset.list.limit:10}")
      private
focal_class.original_string: @Value("${dataset.list.limit:10}")
      private int datasetListLimit;
focal_class.type: int
focal_class.var_name: datasetListLimit
focal_class.file: dataprep-api/src/main/java/org/talend/dataprep/api/service/DataSetAPI.java
focal_class.identifier: DataSetAPI
focal_class.class_method_signature: DataSetAPI.create(
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) final String name,
              @ApiParam(value = "An optional tag to be added in data set metadata once created.") @RequestParam(
                      defaultValue = "", required = false) String tag,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @RequestHeader(CONTENT_TYPE) String contentType, @ApiParam(value = "content") InputStream dataSetContent)
focal_class.full_signature: @RequestMapping(value = "/api/datasets", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Create a data set", produces = TEXT_PLAIN_VALUE, notes = "Create a new data set based on content provided in POST body. For documentation purposes, body is typed as 'text/plain' but operation accepts binary content too. Returns the id of the newly created data set.") @Timed public Callable<String> create(
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) final String name,
              @ApiParam(value = "An optional tag to be added in data set metadata once created.") @RequestParam(
                      defaultValue = "", required = false) String tag,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @RequestHeader(CONTENT_TYPE) String contentType, @ApiParam(value = "content") InputStream dataSetContent)
focal_class.identifier: create
focal_class.modifiers: @RequestMapping(value = "/api/datasets", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Create a data set", produces = TEXT_PLAIN_VALUE, notes = "Create a new data set based on content provided in POST body. For documentation purposes, body is typed as 'text/plain' but operation accepts binary content too. Returns the id of the newly created data set.") @Timed public
focal_class.parameters: (
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) final String name,
              @ApiParam(value = "An optional tag to be added in data set metadata once created.") @RequestParam(
                      defaultValue = "", required = false) String tag,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @RequestHeader(CONTENT_TYPE) String contentType, @ApiParam(value = "content") InputStream dataSetContent)
focal_class.return: Callable<String>
focal_class.signature: Callable<String> create(
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) final String name,
              @ApiParam(value = "An optional tag to be added in data set metadata once created.") @RequestParam(
                      defaultValue = "", required = false) String tag,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @RequestHeader(CONTENT_TYPE) String contentType, @ApiParam(value = "content") InputStream dataSetContent)
focal_class.class_method_signature: DataSetAPI.createOrUpdateById(
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}", method = PUT, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Update a data set by id.", produces = TEXT_PLAIN_VALUE, // notes = "Create or update a data set based on content provided in PUT body with given id. For documentation purposes, body is typed as 'text/plain' but operation accepts binary content too. Returns the id of the newly created data set.") @Timed public Callable<String> createOrUpdateById(
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.identifier: createOrUpdateById
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}", method = PUT, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Update a data set by id.", produces = TEXT_PLAIN_VALUE, // notes = "Create or update a data set based on content provided in PUT body with given id. For documentation purposes, body is typed as 'text/plain' but operation accepts binary content too. Returns the id of the newly created data set.") @Timed public
focal_class.parameters: (
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.return: Callable<String>
focal_class.signature: Callable<String> createOrUpdateById(
              @ApiParam(
                      value = "User readable name of the data set (e.g. 'Finance Report 2015', 'Test Data Set').") @RequestParam(
                              defaultValue = "", required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id,
              @ApiParam(value = "Size of the data set, in bytes.") @RequestParam(defaultValue = "0") long size,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.class_method_signature: DataSetAPI.copy(@ApiParam(value = "Name of the copy") @RequestParam(required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/copy", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Copy the dataset.", produces = TEXT_PLAIN_VALUE, notes = "Copy the dataset, returns the id of the copied created data set.") @Timed public Callable<String> copy(@ApiParam(value = "Name of the copy") @RequestParam(required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id)
focal_class.identifier: copy
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/copy", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Copy the dataset.", produces = TEXT_PLAIN_VALUE, notes = "Copy the dataset, returns the id of the copied created data set.") @Timed public
focal_class.parameters: (@ApiParam(value = "Name of the copy") @RequestParam(required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id)
focal_class.return: Callable<String>
focal_class.signature: Callable<String> copy(@ApiParam(value = "Name of the copy") @RequestParam(required = false) String name,
              @ApiParam(value = "Id of the data set to update / create") @PathVariable(value = "id") String id)
focal_class.class_method_signature: DataSetAPI.updateMetadata(
              @ApiParam(value = "Id of the data set metadata to be updated") @PathVariable(value = "id") String id,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/metadata", method = PUT, produces = MediaType.APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a data set metadata by id.", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE, // notes = "Update a data set metadata based on content provided in PUT body with given id. For documentation purposes. Returns the id of the updated data set metadata.") @Timed public void updateMetadata(
              @ApiParam(value = "Id of the data set metadata to be updated") @PathVariable(value = "id") String id,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.identifier: updateMetadata
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/metadata", method = PUT, produces = MediaType.APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a data set metadata by id.", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE, // notes = "Update a data set metadata based on content provided in PUT body with given id. For documentation purposes. Returns the id of the updated data set metadata.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Id of the data set metadata to be updated") @PathVariable(value = "id") String id,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.return: void
focal_class.signature: void updateMetadata(
              @ApiParam(value = "Id of the data set metadata to be updated") @PathVariable(value = "id") String id,
              @ApiParam(value = "content") InputStream dataSetContent)
focal_class.class_method_signature: DataSetAPI.updateColumn(
              @PathVariable(value = "datasetId") @ApiParam(value = "Id of the dataset to update") final String datasetId,
              @PathVariable(value = "columnId") @ApiParam(value = "Id of the column to update") final String columnId,
              @ApiParam(value = "content") final InputStream body)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{datasetId}/column/{columnId}", method = POST, consumes = APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a dataset.", consumes = APPLICATION_JSON_VALUE, // notes = "Update a data set based on content provided in POST body with given id. For documentation purposes, body is typed as 'text/plain' but operation accepts binary content too.") @Timed public void updateColumn(
              @PathVariable(value = "datasetId") @ApiParam(value = "Id of the dataset to update") final String datasetId,
              @PathVariable(value = "columnId") @ApiParam(value = "Id of the column to update") final String columnId,
              @ApiParam(value = "content") final InputStream body)
focal_class.identifier: updateColumn
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{datasetId}/column/{columnId}", method = POST, consumes = APPLICATION_JSON_VALUE) @ApiOperation(value = "Update a dataset.", consumes = APPLICATION_JSON_VALUE, // notes = "Update a data set based on content provided in POST body with given id. For documentation purposes, body is typed as 'text/plain' but operation accepts binary content too.") @Timed public
focal_class.parameters: (
              @PathVariable(value = "datasetId") @ApiParam(value = "Id of the dataset to update") final String datasetId,
              @PathVariable(value = "columnId") @ApiParam(value = "Id of the column to update") final String columnId,
              @ApiParam(value = "content") final InputStream body)
focal_class.return: void
focal_class.signature: void updateColumn(
              @PathVariable(value = "datasetId") @ApiParam(value = "Id of the dataset to update") final String datasetId,
              @PathVariable(value = "columnId") @ApiParam(value = "Id of the column to update") final String columnId,
              @ApiParam(value = "content") final InputStream body)
focal_class.class_method_signature: DataSetAPI.get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.") @Timed public DataSet get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_class.identifier: get
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.") @Timed public
focal_class.parameters: (@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_class.return: DataSet
focal_class.signature: DataSet get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_class.class_method_signature: DataSetAPI.getMetadata(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/metadata", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set metadata by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set metadata based on given id.") @Timed public DataSetMetadata getMetadata(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.identifier: getMetadata
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/metadata", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set metadata by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set metadata based on given id.") @Timed public
focal_class.parameters: (@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.return: DataSetMetadata
focal_class.signature: DataSetMetadata getMetadata(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.class_method_signature: DataSetAPI.preview(
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "true") @ApiParam(name = "metadata",
                      value = "Include metadata information in the response") boolean metadata,
              @RequestParam(defaultValue = "") @ApiParam(name = "sheetName",
                      value = "Sheet name to preview") String sheetName)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/preview/{id}", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.") @Timed public ResponseEntity<StreamingResponseBody> preview(
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "true") @ApiParam(name = "metadata",
                      value = "Include metadata information in the response") boolean metadata,
              @RequestParam(defaultValue = "") @ApiParam(name = "sheetName",
                      value = "Sheet name to preview") String sheetName)
focal_class.identifier: preview
focal_class.modifiers: @RequestMapping(value = "/api/datasets/preview/{id}", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "true") @ApiParam(name = "metadata",
                      value = "Include metadata information in the response") boolean metadata,
              @RequestParam(defaultValue = "") @ApiParam(name = "sheetName",
                      value = "Sheet name to preview") String sheetName)
focal_class.return: ResponseEntity<StreamingResponseBody>
focal_class.signature: ResponseEntity<StreamingResponseBody> preview(
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "true") @ApiParam(name = "metadata",
                      value = "Include metadata information in the response") boolean metadata,
              @RequestParam(defaultValue = "") @ApiParam(name = "sheetName",
                      value = "Sheet name to preview") String sheetName)
focal_class.class_method_signature: DataSetAPI.list(
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.full_signature: @RequestMapping(value = "/api/datasets", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List data sets.", produces = APPLICATION_JSON_VALUE, notes = "Returns a list of data sets the user can use.") @Timed public Stream<DatasetDTO> list(
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.identifier: list
focal_class.modifiers: @RequestMapping(value = "/api/datasets", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List data sets.", produces = APPLICATION_JSON_VALUE, notes = "Returns a list of data sets the user can use.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.return: Stream<DatasetDTO>
focal_class.signature: Stream<DatasetDTO> list(
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.class_method_signature: DataSetAPI.getDetails(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/details", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set detail by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set metadata based on given id.") @Timed public DatasetDetailsDTO getDetails(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.identifier: getDetails
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/details", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set detail by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set metadata based on given id.") @Timed public
focal_class.parameters: (@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.return: DatasetDetailsDTO
focal_class.signature: DatasetDetailsDTO getDetails(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.class_method_signature: DataSetAPI.getPreparation(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/preparations", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get the list of preparation using a dataset by the dataset id.", produces = APPLICATION_JSON_VALUE, notes = "Get the list of preparation using a dataset by the dataset id.") @Timed public List<DatasetDetailsDTO.Preparation> getPreparation(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.identifier: getPreparation
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/preparations", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get the list of preparation using a dataset by the dataset id.", produces = APPLICATION_JSON_VALUE, notes = "Get the list of preparation using a dataset by the dataset id.") @Timed public
focal_class.parameters: (@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.return: List<DatasetDetailsDTO.Preparation>
focal_class.signature: List<DatasetDetailsDTO.Preparation> getPreparation(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id)
focal_class.class_method_signature: DataSetAPI.listSummary(
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/summary", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List data sets summary.", produces = APPLICATION_JSON_VALUE, notes = "Returns a list of data sets summary the user can use.") @Timed public Stream<DatasetDTO> listSummary(
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.identifier: listSummary
focal_class.modifiers: @RequestMapping(value = "/api/datasets/summary", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List data sets summary.", produces = APPLICATION_JSON_VALUE, notes = "Returns a list of data sets summary the user can use.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.return: Stream<DatasetDTO>
focal_class.signature: Stream<DatasetDTO> listSummary(
              @ApiParam(value = "Sort key (by name or date), defaults to 'date'.") @RequestParam(
                      defaultValue = "creationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order,
              @ApiParam(value = "Filter on name containing the specified name") @RequestParam(
                      defaultValue = "") String name,
              @ApiParam(value = "Filter on certified data sets") @RequestParam(defaultValue = "false") boolean certified,
              @ApiParam(value = "Filter on favorite data sets") @RequestParam(defaultValue = "false") boolean favorite,
              @ApiParam(value = "Filter on recent data sets") @RequestParam(defaultValue = "false") boolean limit)
focal_class.class_method_signature: DataSetAPI.listCompatiblePreparations(
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String dataSetId,
              @ApiParam(value = "Sort key (by name or date), defaults to 'modification'.") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/compatiblepreparations", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List compatible preparations.", produces = APPLICATION_JSON_VALUE, notes = "Returns a list of data sets that are compatible with the specified one.") @Timed public Stream<PreparationDTO> listCompatiblePreparations(
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String dataSetId,
              @ApiParam(value = "Sort key (by name or date), defaults to 'modification'.") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order)
focal_class.identifier: listCompatiblePreparations
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/compatiblepreparations", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List compatible preparations.", produces = APPLICATION_JSON_VALUE, notes = "Returns a list of data sets that are compatible with the specified one.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String dataSetId,
              @ApiParam(value = "Sort key (by name or date), defaults to 'modification'.") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order)
focal_class.return: Stream<PreparationDTO>
focal_class.signature: Stream<PreparationDTO> listCompatiblePreparations(
              @ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String dataSetId,
              @ApiParam(value = "Sort key (by name or date), defaults to 'modification'.") @RequestParam(
                      defaultValue = "lastModificationDate") Sort sort,
              @ApiParam(value = "Order for sort key (desc or asc), defaults to 'desc'.") @RequestParam(
                      defaultValue = "desc") Order order)
focal_class.class_method_signature: DataSetAPI.delete(@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Id of the data set to delete") String dataSetId)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}", method = DELETE) @ApiOperation(value = "Delete a data set by id", notes = "Delete a data set content based on provided id. Id should be a UUID returned by the list operation. Not valid or non existing data set id returns empty content.") @Timed public ResponseEntity<String> delete(@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Id of the data set to delete") String dataSetId)
focal_class.identifier: delete
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}", method = DELETE) @ApiOperation(value = "Delete a data set by id", notes = "Delete a data set content based on provided id. Id should be a UUID returned by the list operation. Not valid or non existing data set id returns empty content.") @Timed public
focal_class.parameters: (@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Id of the data set to delete") String dataSetId)
focal_class.return: ResponseEntity<String>
focal_class.signature: ResponseEntity<String> delete(@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Id of the data set to delete") String dataSetId)
focal_class.class_method_signature: DataSetAPI.suggestDatasetActions(@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Data set id to get suggestions from.") String dataSetId)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{id}/actions", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get suggested actions for a whole data set.", notes = "Returns the suggested actions for the given dataset in decreasing order of likeness.") @Timed @Deprecated public Stream<ActionForm> suggestDatasetActions(@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Data set id to get suggestions from.") String dataSetId)
focal_class.identifier: suggestDatasetActions
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{id}/actions", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get suggested actions for a whole data set.", notes = "Returns the suggested actions for the given dataset in decreasing order of likeness.") @Timed @Deprecated public
focal_class.parameters: (@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Data set id to get suggestions from.") String dataSetId)
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> suggestDatasetActions(@PathVariable(value = "id") @ApiParam(name = "id",
              value = "Data set id to get suggestions from.") String dataSetId)
focal_class.class_method_signature: DataSetAPI.getDatasetsLookupActions()
focal_class.full_signature: @RequestMapping(value = "/api/datasets/actions/lookup", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get lookup actions for all data sets.", notes = "Returns the lookup actions for the datasets.") @Timed public Stream<ActionForm> getDatasetsLookupActions()
focal_class.identifier: getDatasetsLookupActions
focal_class.modifiers: @RequestMapping(value = "/api/datasets/actions/lookup", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get lookup actions for all data sets.", notes = "Returns the lookup actions for the datasets.") @Timed public
focal_class.parameters: ()
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> getDatasetsLookupActions()
focal_class.class_method_signature: DataSetAPI.favorite(
              @ApiParam(value = "Id of the favorite data set ") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "false") @ApiParam(name = "unset",
                      value = "When true, will remove the dataset from favorites, if false (default) this will set the dataset as favorite.") boolean unset)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/favorite/{id}", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Set or Unset the dataset as favorite for the current user.", produces = TEXT_PLAIN_VALUE, // notes = "Specify if a dataset is or is not a favorite for the current user.") @Timed public Callable<String> favorite(
              @ApiParam(value = "Id of the favorite data set ") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "false") @ApiParam(name = "unset",
                      value = "When true, will remove the dataset from favorites, if false (default) this will set the dataset as favorite.") boolean unset)
focal_class.identifier: favorite
focal_class.modifiers: @RequestMapping(value = "/api/datasets/favorite/{id}", method = POST, produces = TEXT_PLAIN_VALUE) @ApiOperation(value = "Set or Unset the dataset as favorite for the current user.", produces = TEXT_PLAIN_VALUE, // notes = "Specify if a dataset is or is not a favorite for the current user.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Id of the favorite data set ") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "false") @ApiParam(name = "unset",
                      value = "When true, will remove the dataset from favorites, if false (default) this will set the dataset as favorite.") boolean unset)
focal_class.return: Callable<String>
focal_class.signature: Callable<String> favorite(
              @ApiParam(value = "Id of the favorite data set ") @PathVariable(value = "id") String id,
              @RequestParam(defaultValue = "false") @ApiParam(name = "unset",
                      value = "When true, will remove the dataset from favorites, if false (default) this will set the dataset as favorite.") boolean unset)
focal_class.class_method_signature: DataSetAPI.listEncodings()
focal_class.full_signature: @RequestMapping(value = "/api/datasets/encodings", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List supported dataset encodings.", notes = "Returns the supported dataset encodings.") @Timed @PublicAPI public Stream<String> listEncodings()
focal_class.identifier: listEncodings
focal_class.modifiers: @RequestMapping(value = "/api/datasets/encodings", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "List supported dataset encodings.", notes = "Returns the supported dataset encodings.") @Timed @PublicAPI public
focal_class.parameters: ()
focal_class.return: Stream<String>
focal_class.signature: Stream<String> listEncodings()
focal_class.class_method_signature: DataSetAPI.getImportParameters(@PathVariable("import") final String importType)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/imports/{import}/parameters", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Fetch the parameters needed to imports a dataset.", notes = "Returns the parameters needed to imports a dataset.") @Timed @PublicAPI public ResponseEntity<StreamingResponseBody> getImportParameters(@PathVariable("import") final String importType)
focal_class.identifier: getImportParameters
focal_class.modifiers: @RequestMapping(value = "/api/datasets/imports/{import}/parameters", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Fetch the parameters needed to imports a dataset.", notes = "Returns the parameters needed to imports a dataset.") @Timed @PublicAPI public
focal_class.parameters: (@PathVariable("import") final String importType)
focal_class.return: ResponseEntity<StreamingResponseBody>
focal_class.signature: ResponseEntity<StreamingResponseBody> getImportParameters(@PathVariable("import") final String importType)
focal_class.class_method_signature: DataSetAPI.getDataSetColumnSemanticCategories(
              @ApiParam(value = "The dataset id") @PathVariable String datasetId,
              @ApiParam(value = "The column id") @PathVariable String columnId)
focal_class.full_signature: @RequestMapping(value = "/api/datasets/{datasetId}/columns/{columnId}/types", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "list the types of the wanted column", notes = "This list can be used by user to change the column type.") @Timed @PublicAPI public Stream<SemanticDomain> getDataSetColumnSemanticCategories(
              @ApiParam(value = "The dataset id") @PathVariable String datasetId,
              @ApiParam(value = "The column id") @PathVariable String columnId)
focal_class.identifier: getDataSetColumnSemanticCategories
focal_class.modifiers: @RequestMapping(value = "/api/datasets/{datasetId}/columns/{columnId}/types", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "list the types of the wanted column", notes = "This list can be used by user to change the column type.") @Timed @PublicAPI public
focal_class.parameters: (
              @ApiParam(value = "The dataset id") @PathVariable String datasetId,
              @ApiParam(value = "The column id") @PathVariable String columnId)
focal_class.return: Stream<SemanticDomain>
focal_class.signature: Stream<SemanticDomain> getDataSetColumnSemanticCategories(
              @ApiParam(value = "The dataset id") @PathVariable String datasetId,
              @ApiParam(value = "The column id") @PathVariable String columnId)
focal_class.superclass: extends APIService
focal_method.body: @RequestMapping(value = "/api/datasets/{id}", method = GET, produces = APPLICATION_JSON_VALUE)
      @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE,
              notes = "Get a data set based on given id.")
      @Timed
      public DataSet get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties) {
          if (LOG.isDebugEnabled()) {
              LOG.debug("Requesting dataset #{} (pool: {})...", id, getConnectionStats());
          }
          try {
              return datasetClient.getDataSet(id, fullContent, includeTechnicalProperties, filter);
          } finally {
              if (LOG.isDebugEnabled()) {
                  LOG.debug("Request dataset #{} (pool: {}) done.", id, getConnectionStats());
              }
          }
      }
focal_method.class_method_signature: DataSetAPI.get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_method.full_signature: @RequestMapping(value = "/api/datasets/{id}", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.") @Timed public DataSet get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_method.identifier: get
focal_method.invocations: isDebugEnabled debug getConnectionStats getDataSet isDebugEnabled debug getConnectionStats
focal_method.modifiers: @RequestMapping(value = "/api/datasets/{id}", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.") @Timed public
focal_method.parameters: (@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)
focal_method.return: DataSet
focal_method.signature: DataSet get(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
              @ApiParam(value = "Whether output should be the full data set (true) or not (false).") @RequestParam(
                      value = "fullContent", defaultValue = "false") boolean fullContent,
              @ApiParam(value = "Filter for retrieved content.") @RequestParam(value = "filter",
                      defaultValue = "") String filter,
              @ApiParam(value = "Whether to include internal technical properties (true) or not (false).") @RequestParam(
                      value = "includeTechnicalProperties", defaultValue = "false") boolean includeTechnicalProperties)