@Test(expected = DataSetCreationException.class) public void createDataSetThrowsAnExceptionWhenTheDataSetAlreadyExist() throws Exception { dataSetRepository.createDataSet(User.create(null, "user"), "dataset"); dataSetRepository.createDataSet(User.create(null, "user"), "dataset"); }
public DataSet createDataSet(User user, String dataSetId) throws DataStoreCreationException, IllegalDataSetNameException, DataSetCreationException { return createDataSet(user, dataSetId, null); }
DataSetRepository { public DataSet createDataSet(User user, String dataSetId) throws DataStoreCreationException, IllegalDataSetNameException, DataSetCreationException { return createDataSet(user, dataSetId, null); } }
DataSetRepository { public DataSet createDataSet(User user, String dataSetId) throws DataStoreCreationException, IllegalDataSetNameException, DataSetCreationException { return createDataSet(user, dataSetId, null); } DataSetRepository(ExecutorService executorService, PermissionFetcher permissionFetcher,
                           BdbEnvironmentCreator dataStoreFactory,
                           TimbuctooRdfIdHelper rdfIdHelper, Consumer<String> onUpdated,
                           boolean publicByDefault, DataStorage dataStorage); }
DataSetRepository { public DataSet createDataSet(User user, String dataSetId) throws DataStoreCreationException, IllegalDataSetNameException, DataSetCreationException { return createDataSet(user, dataSetId, null); } DataSetRepository(ExecutorService executorService, PermissionFetcher permissionFetcher,
                           BdbEnvironmentCreator dataStoreFactory,
                           TimbuctooRdfIdHelper rdfIdHelper, Consumer<String> onUpdated,
                           boolean publicByDefault, DataStorage dataStorage); void reloadDataSet(String dataSetId); Optional<DataSet> getDataSet(User user, String ownerId, String dataSetId); Optional<DataSet> unsafeGetDataSetWithoutCheckingPermissions(String ownerId, String dataSetId); boolean userMatchesPrefix(User user, String prefix); DataSet createDataSet(User user, String dataSetId); DataSet createDataSet(User user, String dataSetId,
                               List<ImportInfo> importInfos); void publishDataSet(User user, String ownerId, String dataSetName); Collection<DataSet> getDataSets(); Collection<DataSet> getPromotedDataSets(); Collection<DataSet> getDataSetsWithWriteAccess(User user); Collection<DataSet> getDataSetsWithReadAccess(@Nullable User user); void removeDataSet(String ownerId, String dataSetName, User user); void stop(); void start(); void subscribeToDataSetsUpdated(Runnable dataSetsUpdatedListener); }
DataSetRepository { public DataSet createDataSet(User user, String dataSetId) throws DataStoreCreationException, IllegalDataSetNameException, DataSetCreationException { return createDataSet(user, dataSetId, null); } DataSetRepository(ExecutorService executorService, PermissionFetcher permissionFetcher,
                           BdbEnvironmentCreator dataStoreFactory,
                           TimbuctooRdfIdHelper rdfIdHelper, Consumer<String> onUpdated,
                           boolean publicByDefault, DataStorage dataStorage); void reloadDataSet(String dataSetId); Optional<DataSet> getDataSet(User user, String ownerId, String dataSetId); Optional<DataSet> unsafeGetDataSetWithoutCheckingPermissions(String ownerId, String dataSetId); boolean userMatchesPrefix(User user, String prefix); DataSet createDataSet(User user, String dataSetId); DataSet createDataSet(User user, String dataSetId,
                               List<ImportInfo> importInfos); void publishDataSet(User user, String ownerId, String dataSetName); Collection<DataSet> getDataSets(); Collection<DataSet> getPromotedDataSets(); Collection<DataSet> getDataSetsWithWriteAccess(User user); Collection<DataSet> getDataSetsWithReadAccess(@Nullable User user); void removeDataSet(String ownerId, String dataSetName, User user); void stop(); void start(); void subscribeToDataSetsUpdated(Runnable dataSetsUpdatedListener);  }