test_class.declarator: dataSetProviderRegistry
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetProviderRegistryCDI dataSetProviderRegistry;
test_class.type: DataSetProviderRegistryCDI
test_class.var_name: dataSetProviderRegistry
test_class.declarator: scheduler
test_class.modifier: @Mock
test_class.original_string: @Mock
      SchedulerCDI scheduler;
test_class.type: SchedulerCDI
test_class.var_name: scheduler
test_class.declarator: exceptionManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      ExceptionManager exceptionManager;
test_class.type: ExceptionManager
test_class.var_name: exceptionManager
test_class.declarator: dataSetDefModifiedEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent;
test_class.type: Event<DataSetDefModifiedEvent>
test_class.var_name: dataSetDefModifiedEvent
test_class.declarator: dataSetDefRegisteredEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent;
test_class.type: Event<DataSetDefRegisteredEvent>
test_class.var_name: dataSetDefRegisteredEvent
test_class.declarator: dataSetDefRemovedEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent;
test_class.type: Event<DataSetDefRemovedEvent>
test_class.var_name: dataSetDefRemovedEvent
test_class.declarator: dataSetStaleEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      Event<DataSetStaleEvent> dataSetStaleEvent;
test_class.type: Event<DataSetStaleEvent>
test_class.var_name: dataSetStaleEvent
test_class.declarator: dataSetDefRegistry
test_class.original_string: DataSetDefRegistryCDI dataSetDefRegistry;
test_class.type: DataSetDefRegistryCDI
test_class.var_name: dataSetDefRegistry
test_class.declarator: dataSetDef = DataSetDefFactory
              .newCSVDataSetDef()
              .uuid("testDset")
              .buildDef()
test_class.modifier: public
test_class.original_string: public DataSetDef dataSetDef = DataSetDefFactory
              .newCSVDataSetDef()
              .uuid("testDset")
              .buildDef();
test_class.type: DataSetDef
test_class.var_name: dataSetDef
test_class.file: dashbuilder-backend/dashbuilder-dataset-cdi/src/test/java/org/dashbuilder/dataset/DataSetDefRegistryCDITest.java
test_class.identifier: DataSetDefRegistryCDITest
test_class.superclass: extends BaseCDITest
test_case.body: @Test
      public void testRegistryDataSetDef() throws Exception {
          dataSetDefRegistry.registerDataSetDef(dataSetDef);
  
          verify(getIOService()).write(any(Path.class), anyString());
          verify(dataSetDefRegisteredEvent).fire(any(DataSetDefRegisteredEvent.class));
      }
test_case.class_method_signature: DataSetDefRegistryCDITest.testRegistryDataSetDef()
test_case.full_signature: @Test public void testRegistryDataSetDef()
test_case.identifier: testRegistryDataSetDef
test_case.invocations: registerDataSetDef write verify getIOService any anyString fire verify any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRegistryDataSetDef()
focal_class.declarator: DATASET_EXT = ".dset"
focal_class.modifier: public static final
focal_class.original_string: public static final String DATASET_EXT = ".dset";
focal_class.type: String
focal_class.var_name: DATASET_EXT
focal_class.declarator: CSV_EXT = ".csv"
focal_class.modifier: public static final
focal_class.original_string: public static final String CSV_EXT = ".csv";
focal_class.type: String
focal_class.var_name: CSV_EXT
focal_class.declarator: maxCsvLength
focal_class.modifier: protected
focal_class.original_string: protected int maxCsvLength;
focal_class.type: int
focal_class.var_name: maxCsvLength
focal_class.declarator: ioService
focal_class.modifier: protected
focal_class.original_string: protected IOService ioService;
focal_class.type: IOService
focal_class.var_name: ioService
focal_class.declarator: exceptionManager
focal_class.modifier: protected
focal_class.original_string: protected ExceptionManager exceptionManager;
focal_class.type: ExceptionManager
focal_class.var_name: exceptionManager
focal_class.declarator: uuidGenerator
focal_class.modifier: protected
focal_class.original_string: protected UUIDGenerator uuidGenerator;
focal_class.type: UUIDGenerator
focal_class.var_name: uuidGenerator
focal_class.declarator: dataSetDefModifiedEvent
focal_class.modifier: protected
focal_class.original_string: protected Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent;
focal_class.type: Event<DataSetDefModifiedEvent>
focal_class.var_name: dataSetDefModifiedEvent
focal_class.declarator: dataSetDefRegisteredEvent
focal_class.modifier: protected
focal_class.original_string: protected Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent;
focal_class.type: Event<DataSetDefRegisteredEvent>
focal_class.var_name: dataSetDefRegisteredEvent
focal_class.declarator: dataSetDefRemovedEvent
focal_class.modifier: protected
focal_class.original_string: protected Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent;
focal_class.type: Event<DataSetDefRemovedEvent>
focal_class.var_name: dataSetDefRemovedEvent
focal_class.declarator: dataSetStaleEvent
focal_class.modifier: protected
focal_class.original_string: protected Event<DataSetStaleEvent> dataSetStaleEvent;
focal_class.type: Event<DataSetStaleEvent>
focal_class.var_name: dataSetStaleEvent
focal_class.declarator: fileSystem
focal_class.modifier: protected
focal_class.original_string: protected FileSystem fileSystem;
focal_class.type: FileSystem
focal_class.var_name: fileSystem
focal_class.declarator: root
focal_class.modifier: protected
focal_class.original_string: protected Path root;
focal_class.type: Path
focal_class.var_name: root
focal_class.file: dashbuilder-backend/dashbuilder-dataset-cdi/src/main/java/org/dashbuilder/dataset/DataSetDefRegistryCDI.java
focal_class.identifier: DataSetDefRegistryCDI
focal_class.interfaces: implements CSVFileStorage
focal_class.class_method_signature: DataSetDefRegistryCDI.DataSetDefRegistryCDI()
focal_class.full_signature: public  DataSetDefRegistryCDI()
focal_class.identifier: DataSetDefRegistryCDI
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DataSetDefRegistryCDI()
focal_class.class_method_signature: DataSetDefRegistryCDI.DataSetDefRegistryCDI(@Config("10485760" /* 10 Mb */) int maxCsvLength,
                                   @Named("ioStrategy") IOService ioService,
                                   DataSetProviderRegistryCDI dataSetProviderRegistry,
                                   SchedulerCDI scheduler,
                                   ExceptionManager exceptionManager,
                                   Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent,
                                   Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent,
                                   Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent,
                                   Event<DataSetStaleEvent> dataSetStaleEvent)
focal_class.full_signature: @Inject public  DataSetDefRegistryCDI(@Config("10485760" /* 10 Mb */) int maxCsvLength,
                                   @Named("ioStrategy") IOService ioService,
                                   DataSetProviderRegistryCDI dataSetProviderRegistry,
                                   SchedulerCDI scheduler,
                                   ExceptionManager exceptionManager,
                                   Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent,
                                   Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent,
                                   Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent,
                                   Event<DataSetStaleEvent> dataSetStaleEvent)
focal_class.identifier: DataSetDefRegistryCDI
focal_class.modifiers: @Inject public
focal_class.parameters: (@Config("10485760" /* 10 Mb */) int maxCsvLength,
                                   @Named("ioStrategy") IOService ioService,
                                   DataSetProviderRegistryCDI dataSetProviderRegistry,
                                   SchedulerCDI scheduler,
                                   ExceptionManager exceptionManager,
                                   Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent,
                                   Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent,
                                   Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent,
                                   Event<DataSetStaleEvent> dataSetStaleEvent)
focal_class.signature:  DataSetDefRegistryCDI(@Config("10485760" /* 10 Mb */) int maxCsvLength,
                                   @Named("ioStrategy") IOService ioService,
                                   DataSetProviderRegistryCDI dataSetProviderRegistry,
                                   SchedulerCDI scheduler,
                                   ExceptionManager exceptionManager,
                                   Event<DataSetDefModifiedEvent> dataSetDefModifiedEvent,
                                   Event<DataSetDefRegisteredEvent> dataSetDefRegisteredEvent,
                                   Event<DataSetDefRemovedEvent> dataSetDefRemovedEvent,
                                   Event<DataSetStaleEvent> dataSetStaleEvent)
focal_class.class_method_signature: DataSetDefRegistryCDI.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: DataSetDefRegistryCDI.getDataSetDefJsonMarshaller()
focal_class.full_signature: public DataSetDefJSONMarshaller getDataSetDefJsonMarshaller()
focal_class.identifier: getDataSetDefJsonMarshaller
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetDefJSONMarshaller
focal_class.signature: DataSetDefJSONMarshaller getDataSetDefJsonMarshaller()
focal_class.class_method_signature: DataSetDefRegistryCDI.onDataSetDefStale(DataSetDef def)
focal_class.full_signature: protected void onDataSetDefStale(DataSetDef def)
focal_class.identifier: onDataSetDefStale
focal_class.modifiers: protected
focal_class.parameters: (DataSetDef def)
focal_class.return: void
focal_class.signature: void onDataSetDefStale(DataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.onDataSetDefModified(DataSetDef olDef,
                                          DataSetDef newDef)
focal_class.full_signature: protected void onDataSetDefModified(DataSetDef olDef,
                                          DataSetDef newDef)
focal_class.identifier: onDataSetDefModified
focal_class.modifiers: protected
focal_class.parameters: (DataSetDef olDef,
                                          DataSetDef newDef)
focal_class.return: void
focal_class.signature: void onDataSetDefModified(DataSetDef olDef,
                                          DataSetDef newDef)
focal_class.class_method_signature: DataSetDefRegistryCDI.onDataSetDefRegistered(DataSetDef newDef)
focal_class.full_signature: protected void onDataSetDefRegistered(DataSetDef newDef)
focal_class.identifier: onDataSetDefRegistered
focal_class.modifiers: protected
focal_class.parameters: (DataSetDef newDef)
focal_class.return: void
focal_class.signature: void onDataSetDefRegistered(DataSetDef newDef)
focal_class.class_method_signature: DataSetDefRegistryCDI.onDataSetDefRemoved(DataSetDef oldDef)
focal_class.full_signature: protected void onDataSetDefRemoved(DataSetDef oldDef)
focal_class.identifier: onDataSetDefRemoved
focal_class.modifiers: protected
focal_class.parameters: (DataSetDef oldDef)
focal_class.return: void
focal_class.signature: void onDataSetDefRemoved(DataSetDef oldDef)
focal_class.class_method_signature: DataSetDefRegistryCDI.initFileSystem()
focal_class.full_signature: protected void initFileSystem()
focal_class.identifier: initFileSystem
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initFileSystem()
focal_class.class_method_signature: DataSetDefRegistryCDI.registerDataSetDefs()
focal_class.full_signature: protected void registerDataSetDefs()
focal_class.identifier: registerDataSetDefs
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void registerDataSetDefs()
focal_class.class_method_signature: DataSetDefRegistryCDI.resolveVfsPath(DataSetDef def)
focal_class.full_signature: public org.uberfire.backend.vfs.Path resolveVfsPath(DataSetDef def)
focal_class.identifier: resolveVfsPath
focal_class.modifiers: public
focal_class.parameters: (DataSetDef def)
focal_class.return: org.uberfire.backend.vfs.Path
focal_class.signature: org.uberfire.backend.vfs.Path resolveVfsPath(DataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.resolveNioPath(DataSetDef def)
focal_class.full_signature: protected Path resolveNioPath(DataSetDef def)
focal_class.identifier: resolveNioPath
focal_class.modifiers: protected
focal_class.parameters: (DataSetDef def)
focal_class.return: Path
focal_class.signature: Path resolveNioPath(DataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message)
focal_class.full_signature: @Override public void registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message)
focal_class.identifier: registerDataSetDef
focal_class.modifiers: @Override public
focal_class.parameters: (DataSetDef def,
                                     String subjectId,
                                     String message)
focal_class.return: void
focal_class.signature: void registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message)
focal_class.class_method_signature: DataSetDefRegistryCDI.removeDataSetDef(String uuid,
                                         String subjectId,
                                         String message)
focal_class.full_signature: @Override public DataSetDef removeDataSetDef(String uuid,
                                         String subjectId,
                                         String message)
focal_class.identifier: removeDataSetDef
focal_class.modifiers: @Override public
focal_class.parameters: (String uuid,
                                         String subjectId,
                                         String message)
focal_class.return: DataSetDef
focal_class.signature: DataSetDef removeDataSetDef(String uuid,
                                         String subjectId,
                                         String message)
focal_class.class_method_signature: DataSetDefRegistryCDI.removeDataSetDef(org.uberfire.backend.vfs.Path path,
                                   String subjectId,
                                   String comment)
focal_class.full_signature: public void removeDataSetDef(org.uberfire.backend.vfs.Path path,
                                   String subjectId,
                                   String comment)
focal_class.identifier: removeDataSetDef
focal_class.modifiers: public
focal_class.parameters: (org.uberfire.backend.vfs.Path path,
                                   String subjectId,
                                   String comment)
focal_class.return: void
focal_class.signature: void removeDataSetDef(org.uberfire.backend.vfs.Path path,
                                   String subjectId,
                                   String comment)
focal_class.class_method_signature: DataSetDefRegistryCDI.removeDataSetDef(DataSetDef def,
                                         String subjectId,
                                         String message)
focal_class.full_signature: public DataSetDef removeDataSetDef(DataSetDef def,
                                         String subjectId,
                                         String message)
focal_class.identifier: removeDataSetDef
focal_class.modifiers: public
focal_class.parameters: (DataSetDef def,
                                         String subjectId,
                                         String message)
focal_class.return: DataSetDef
focal_class.signature: DataSetDef removeDataSetDef(DataSetDef def,
                                         String subjectId,
                                         String message)
focal_class.class_method_signature: DataSetDefRegistryCDI.listDataSetDefs()
focal_class.full_signature: public Collection<DataSetDef> listDataSetDefs()
focal_class.identifier: listDataSetDefs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<DataSetDef>
focal_class.signature: Collection<DataSetDef> listDataSetDefs()
focal_class.class_method_signature: DataSetDefRegistryCDI.loadDataSetDef(org.uberfire.backend.vfs.Path path)
focal_class.full_signature: public DataSetDef loadDataSetDef(org.uberfire.backend.vfs.Path path)
focal_class.identifier: loadDataSetDef
focal_class.modifiers: public
focal_class.parameters: (org.uberfire.backend.vfs.Path path)
focal_class.return: DataSetDef
focal_class.signature: DataSetDef loadDataSetDef(org.uberfire.backend.vfs.Path path)
focal_class.class_method_signature: DataSetDefRegistryCDI.copyDataSetDef(DataSetDef def,
                                       String newName,
                                       String subjectId,
                                       String message)
focal_class.full_signature: public DataSetDef copyDataSetDef(DataSetDef def,
                                       String newName,
                                       String subjectId,
                                       String message)
focal_class.identifier: copyDataSetDef
focal_class.modifiers: public
focal_class.parameters: (DataSetDef def,
                                       String newName,
                                       String subjectId,
                                       String message)
focal_class.return: DataSetDef
focal_class.signature: DataSetDef copyDataSetDef(DataSetDef def,
                                       String newName,
                                       String subjectId,
                                       String message)
focal_class.class_method_signature: DataSetDefRegistryCDI.createTempFile(String fileName)
focal_class.full_signature: public Path createTempFile(String fileName)
focal_class.identifier: createTempFile
focal_class.modifiers: public
focal_class.parameters: (String fileName)
focal_class.return: Path
focal_class.signature: Path createTempFile(String fileName)
focal_class.class_method_signature: DataSetDefRegistryCDI.deleteTempFiles()
focal_class.full_signature: public void deleteTempFiles()
focal_class.identifier: deleteTempFiles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deleteTempFiles()
focal_class.class_method_signature: DataSetDefRegistryCDI.getDataSetsPath()
focal_class.full_signature: protected Path getDataSetsPath()
focal_class.identifier: getDataSetsPath
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getDataSetsPath()
focal_class.class_method_signature: DataSetDefRegistryCDI.getTempPath()
focal_class.full_signature: protected Path getTempPath()
focal_class.identifier: getTempPath
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getTempPath()
focal_class.class_method_signature: DataSetDefRegistryCDI.resolveTempPath(String fileName)
focal_class.full_signature: protected Path resolveTempPath(String fileName)
focal_class.identifier: resolveTempPath
focal_class.modifiers: protected
focal_class.parameters: (String fileName)
focal_class.return: Path
focal_class.signature: Path resolveTempPath(String fileName)
focal_class.class_method_signature: DataSetDefRegistryCDI.convert(Path path)
focal_class.full_signature: protected org.uberfire.backend.vfs.Path convert(Path path)
focal_class.identifier: convert
focal_class.modifiers: protected
focal_class.parameters: (Path path)
focal_class.return: org.uberfire.backend.vfs.Path
focal_class.signature: org.uberfire.backend.vfs.Path convert(Path path)
focal_class.class_method_signature: DataSetDefRegistryCDI.convert(org.uberfire.backend.vfs.Path path)
focal_class.full_signature: protected Path convert(org.uberfire.backend.vfs.Path path)
focal_class.identifier: convert
focal_class.modifiers: protected
focal_class.parameters: (org.uberfire.backend.vfs.Path path)
focal_class.return: Path
focal_class.signature: Path convert(org.uberfire.backend.vfs.Path path)
focal_class.class_method_signature: DataSetDefRegistryCDI.getCSVString(CSVDataSetDef def)
focal_class.full_signature: @Override public String getCSVString(CSVDataSetDef def)
focal_class.identifier: getCSVString
focal_class.modifiers: @Override public
focal_class.parameters: (CSVDataSetDef def)
focal_class.return: String
focal_class.signature: String getCSVString(CSVDataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.getCSVInputStream(CSVDataSetDef def)
focal_class.full_signature: @Override public InputStream getCSVInputStream(CSVDataSetDef def)
focal_class.identifier: getCSVInputStream
focal_class.modifiers: @Override public
focal_class.parameters: (CSVDataSetDef def)
focal_class.return: InputStream
focal_class.signature: InputStream getCSVInputStream(CSVDataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.deleteCSVFile(CSVDataSetDef def)
focal_class.full_signature: @Override public void deleteCSVFile(CSVDataSetDef def)
focal_class.identifier: deleteCSVFile
focal_class.modifiers: @Override public
focal_class.parameters: (CSVDataSetDef def)
focal_class.return: void
focal_class.signature: void deleteCSVFile(CSVDataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.saveCSVFile(CSVDataSetDef def)
focal_class.full_signature: @Override public void saveCSVFile(CSVDataSetDef def)
focal_class.identifier: saveCSVFile
focal_class.modifiers: @Override public
focal_class.parameters: (CSVDataSetDef def)
focal_class.return: void
focal_class.signature: void saveCSVFile(CSVDataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.resolveCsvPath(CSVDataSetDef def)
focal_class.full_signature: protected Path resolveCsvPath(CSVDataSetDef def)
focal_class.identifier: resolveCsvPath
focal_class.modifiers: protected
focal_class.parameters: (CSVDataSetDef def)
focal_class.return: Path
focal_class.signature: Path resolveCsvPath(CSVDataSetDef def)
focal_class.class_method_signature: DataSetDefRegistryCDI.resolveCsvTempPath(CSVDataSetDef def)
focal_class.full_signature: protected Path resolveCsvTempPath(CSVDataSetDef def)
focal_class.identifier: resolveCsvTempPath
focal_class.modifiers: protected
focal_class.parameters: (CSVDataSetDef def)
focal_class.return: Path
focal_class.signature: Path resolveCsvTempPath(CSVDataSetDef def)
focal_class.superclass: extends DataSetDefRegistryImpl
focal_method.body: @Override
      public void registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message) {
  
          if (def.getUUID() == null) {
              final String uuid = uuidGenerator.newUuid();
              def.setUUID(uuid);
          }
  
          if (subjectId == null || message == null) {
              ioService.startBatch(fileSystem);
          } else {
              ioService.startBatch(fileSystem,
                                   new CommentedOption(subjectId,
                                                       message));
          }
  
          try {
              String defJson = getDataSetDefJsonMarshaller().toJsonString(def);
              Path defPath = resolveNioPath(def);
              ioService.write(defPath,
                              defJson);
  
              // CSV specific
              if (def instanceof CSVDataSetDef) {
                  saveCSVFile((CSVDataSetDef) def);
              }
              super.registerDataSetDef(def,
                                       subjectId,
                                       message);
          } catch (Exception e) {
              throw exceptionManager.handleException(
                      new Exception("Can't register the data set definition\n" + def,
                                    e));
          } finally {
              ioService.endBatch();
          }
      }
focal_method.class_method_signature: DataSetDefRegistryCDI.registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message)
focal_method.full_signature: @Override public void registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message)
focal_method.identifier: registerDataSetDef
focal_method.invocations: getUUID newUuid setUUID startBatch startBatch toJsonString getDataSetDefJsonMarshaller resolveNioPath write saveCSVFile registerDataSetDef handleException endBatch
focal_method.modifiers: @Override public
focal_method.parameters: (DataSetDef def,
                                     String subjectId,
                                     String message)
focal_method.return: void
focal_method.signature: void registerDataSetDef(DataSetDef def,
                                     String subjectId,
                                     String message)