test_class.declarator: mockBundleContext
test_class.modifier: @Mock
test_class.original_string: @Mock
      BundleContext mockBundleContext;
test_class.type: BundleContext
test_class.var_name: mockBundleContext
test_class.declarator: mockConfigurationAdmin
test_class.modifier: @Mock
test_class.original_string: @Mock
      ConfigurationAdmin mockConfigurationAdmin;
test_class.type: ConfigurationAdmin
test_class.var_name: mockConfigurationAdmin
test_class.declarator: mockConfiguration
test_class.modifier: @Mock
test_class.original_string: @Mock
      Configuration mockConfiguration;
test_class.type: Configuration
test_class.var_name: mockConfiguration
test_class.declarator: configProperties
test_class.original_string: Dictionary<String, Object> configProperties;
test_class.type: Dictionary<String, Object>
test_class.var_name: configProperties
test_class.declarator: taskManager
test_class.original_string: RcpTaskManagerImpl taskManager;
test_class.type: RcpTaskManagerImpl
test_class.var_name: taskManager
test_class.declarator: folder= new TemporaryFolder()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder folder= new TemporaryFolder();
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.file: vault-rcp/src/test/java/org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImplTest.java
test_class.identifier: RcpTaskManagerImplTest
test_case.body: @Test 
      public void testEditTask() throws IOException, ConfigurationException, URISyntaxException {
          DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
          try (InputStream input = this.getClass().getResourceAsStream("/filter.xml")) {
              filter.load(input);
          }
          ConnectionOptions.Builder connectionOptionsBuilder = ConnectionOptions.builder();
          connectionOptionsBuilder.proxyHost("proxyHost");
          RcpTaskImpl taskOld = (RcpTaskImpl)taskManager.addTask(new RepositoryAddress("http://localhost:4502"), connectionOptionsBuilder.build(), new SimpleCredentials("testUser", "pw".toCharArray()), "/target/path", "2", Arrays.asList("exclude1", "exclude2"), false);
          RcpTaskImpl taskNew = (RcpTaskImpl)taskManager.editTask(taskOld.getId(), null, null, null, null, null, null, null);
          Assert.assertThat(taskNew, new TaskMatcher(taskOld));
          
          RepositoryAddress newSource = new RepositoryAddress("http://localhost:4503");
          taskNew = (RcpTaskImpl)taskManager.editTask(taskOld.getId(), newSource, null, null, null, null, null, null);
          Assert.assertThat(taskNew, Matchers.not(new TaskMatcher(taskOld)));
          Assert.assertEquals(newSource, taskNew.getSource());
      }
test_case.class_method_signature: RcpTaskManagerImplTest.testEditTask()
test_case.full_signature: @Test public void testEditTask()
test_case.identifier: testEditTask
test_case.invocations: getResourceAsStream getClass load builder proxyHost addTask build toCharArray asList editTask getId assertThat editTask getId assertThat not assertEquals getSource
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEditTask()
focal_class.declarator: TASKS_DATA_FILE_NAME = "tasks"
focal_class.modifier: private static final
focal_class.original_string: private static final String TASKS_DATA_FILE_NAME = "tasks";
focal_class.type: String
focal_class.var_name: TASKS_DATA_FILE_NAME
focal_class.declarator: PROP_TASKS_SERIALIZATION = "serialized.tasks.json"
focal_class.modifier: private static final
focal_class.original_string: private static final String PROP_TASKS_SERIALIZATION = "serialized.tasks.json";
focal_class.type: String
focal_class.var_name: PROP_TASKS_SERIALIZATION
focal_class.declarator: PID = RcpTaskManagerImpl.class.getName()
focal_class.modifier: private static final
focal_class.original_string: private static final String PID = RcpTaskManagerImpl.class.getName();
focal_class.type: String
focal_class.var_name: PID
focal_class.declarator: log = LoggerFactory.getLogger(RcpTaskManagerImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(RcpTaskManagerImpl.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: tasks
focal_class.original_string: SortedMap<String, RcpTaskImpl> tasks;
focal_class.type: SortedMap<String, RcpTaskImpl>
focal_class.var_name: tasks
focal_class.declarator: dataFile
focal_class.modifier: private
focal_class.original_string: private File dataFile;
focal_class.type: File
focal_class.var_name: dataFile
focal_class.declarator: mapper = new ObjectMapper()
focal_class.modifier: private final
focal_class.original_string: private final ObjectMapper mapper = new ObjectMapper();
focal_class.type: ObjectMapper
focal_class.var_name: mapper
focal_class.declarator: configuration
focal_class.modifier: private
focal_class.original_string: private Configuration configuration;
focal_class.type: Configuration
focal_class.var_name: configuration
focal_class.declarator: configurationAdmin
focal_class.modifier: @Reference
focal_class.original_string: @Reference
      ConfigurationAdmin configurationAdmin;
focal_class.type: ConfigurationAdmin
focal_class.var_name: configurationAdmin
focal_class.declarator: serializedTasks
focal_class.modifier: private
focal_class.original_string: private String serializedTasks;
focal_class.type: String
focal_class.var_name: serializedTasks
focal_class.file: vault-rcp/src/main/java/org/apache/jackrabbit/vault/rcp/impl/RcpTaskManagerImpl.java
focal_class.identifier: RcpTaskManagerImpl
focal_class.interfaces: implements RcpTaskManager
focal_class.class_method_signature: RcpTaskManagerImpl.activate(BundleContext bundleContext, Map <String, Object> newConfigProperties)
focal_class.full_signature: @Activate void activate(BundleContext bundleContext, Map <String, Object> newConfigProperties)
focal_class.identifier: activate
focal_class.modifiers: @Activate
focal_class.parameters: (BundleContext bundleContext, Map <String, Object> newConfigProperties)
focal_class.return: void
focal_class.signature: void activate(BundleContext bundleContext, Map <String, Object> newConfigProperties)
focal_class.class_method_signature: RcpTaskManagerImpl.RcpTaskManagerImpl()
focal_class.full_signature: public  RcpTaskManagerImpl()
focal_class.identifier: RcpTaskManagerImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RcpTaskManagerImpl()
focal_class.class_method_signature: RcpTaskManagerImpl.RcpTaskManagerImpl(BundleContext bundleContext, ConfigurationAdmin configurationAdmin, Map <String, Object> newConfigProperties)
focal_class.full_signature: public  RcpTaskManagerImpl(BundleContext bundleContext, ConfigurationAdmin configurationAdmin, Map <String, Object> newConfigProperties)
focal_class.identifier: RcpTaskManagerImpl
focal_class.modifiers: public
focal_class.parameters: (BundleContext bundleContext, ConfigurationAdmin configurationAdmin, Map <String, Object> newConfigProperties)
focal_class.signature:  RcpTaskManagerImpl(BundleContext bundleContext, ConfigurationAdmin configurationAdmin, Map <String, Object> newConfigProperties)
focal_class.class_method_signature: RcpTaskManagerImpl.deactivate()
focal_class.full_signature: @Deactivate void deactivate()
focal_class.identifier: deactivate
focal_class.modifiers: @Deactivate
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deactivate()
focal_class.class_method_signature: RcpTaskManagerImpl.modified(Map <String, Object> newConfigProperties)
focal_class.full_signature: @Modified void modified(Map <String, Object> newConfigProperties)
focal_class.identifier: modified
focal_class.modifiers: @Modified
focal_class.parameters: (Map <String, Object> newConfigProperties)
focal_class.return: void
focal_class.signature: void modified(Map <String, Object> newConfigProperties)
focal_class.class_method_signature: RcpTaskManagerImpl.createMapFromDictionary(Dictionary<String, Object> dictionary)
focal_class.full_signature: static Map<String, Object> createMapFromDictionary(Dictionary<String, Object> dictionary)
focal_class.identifier: createMapFromDictionary
focal_class.modifiers: static
focal_class.parameters: (Dictionary<String, Object> dictionary)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> createMapFromDictionary(Dictionary<String, Object> dictionary)
focal_class.class_method_signature: RcpTaskManagerImpl.loadTasks(String serializedTasks, File dataFile)
focal_class.full_signature: private SortedMap<String, RcpTaskImpl> loadTasks(String serializedTasks, File dataFile)
focal_class.identifier: loadTasks
focal_class.modifiers: private
focal_class.parameters: (String serializedTasks, File dataFile)
focal_class.return: SortedMap<String, RcpTaskImpl>
focal_class.signature: SortedMap<String, RcpTaskImpl> loadTasks(String serializedTasks, File dataFile)
focal_class.class_method_signature: RcpTaskManagerImpl.validateTasks(SortedMap<String, RcpTaskImpl> tasks)
focal_class.full_signature:  void validateTasks(SortedMap<String, RcpTaskImpl> tasks)
focal_class.identifier: validateTasks
focal_class.parameters: (SortedMap<String, RcpTaskImpl> tasks)
focal_class.return: void
focal_class.signature: void validateTasks(SortedMap<String, RcpTaskImpl> tasks)
focal_class.class_method_signature: RcpTaskManagerImpl.loadTasksCredentials(Map<String, RcpTaskImpl> tasks, File dataFile)
focal_class.full_signature: private void loadTasksCredentials(Map<String, RcpTaskImpl> tasks, File dataFile)
focal_class.identifier: loadTasksCredentials
focal_class.modifiers: private
focal_class.parameters: (Map<String, RcpTaskImpl> tasks, File dataFile)
focal_class.return: void
focal_class.signature: void loadTasksCredentials(Map<String, RcpTaskImpl> tasks, File dataFile)
focal_class.class_method_signature: RcpTaskManagerImpl.persistTasks()
focal_class.full_signature: private void persistTasks()
focal_class.identifier: persistTasks
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void persistTasks()
focal_class.class_method_signature: RcpTaskManagerImpl.persistTasks(Dictionary<String, Object> configProperties, File dataFile)
focal_class.full_signature: private void persistTasks(Dictionary<String, Object> configProperties, File dataFile)
focal_class.identifier: persistTasks
focal_class.modifiers: private
focal_class.parameters: (Dictionary<String, Object> configProperties, File dataFile)
focal_class.return: void
focal_class.signature: void persistTasks(Dictionary<String, Object> configProperties, File dataFile)
focal_class.class_method_signature: RcpTaskManagerImpl.persistTasksCredentials()
focal_class.full_signature: private void persistTasksCredentials()
focal_class.identifier: persistTasksCredentials
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void persistTasksCredentials()
focal_class.class_method_signature: RcpTaskManagerImpl.persistTasksCredentials(File dataFile)
focal_class.full_signature: private void persistTasksCredentials(File dataFile)
focal_class.identifier: persistTasksCredentials
focal_class.modifiers: private
focal_class.parameters: (File dataFile)
focal_class.return: void
focal_class.signature: void persistTasksCredentials(File dataFile)
focal_class.class_method_signature: RcpTaskManagerImpl.getTask(String taskId)
focal_class.full_signature: public RcpTask getTask(String taskId)
focal_class.identifier: getTask
focal_class.modifiers: public
focal_class.parameters: (String taskId)
focal_class.return: RcpTask
focal_class.signature: RcpTask getTask(String taskId)
focal_class.class_method_signature: RcpTaskManagerImpl.getTasks()
focal_class.full_signature: public Map<String, RcpTask> getTasks()
focal_class.identifier: getTasks
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, RcpTask>
focal_class.signature: Map<String, RcpTask> getTasks()
focal_class.class_method_signature: RcpTaskManagerImpl.addTask(RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, List<String> excludes, @Nullable Boolean recursive)
focal_class.full_signature: @Override public RcpTask addTask(RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, List<String> excludes, @Nullable Boolean recursive)
focal_class.identifier: addTask
focal_class.modifiers: @Override public
focal_class.parameters: (RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, List<String> excludes, @Nullable Boolean recursive)
focal_class.return: RcpTask
focal_class.signature: RcpTask addTask(RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, List<String> excludes, @Nullable Boolean recursive)
focal_class.class_method_signature: RcpTaskManagerImpl.addTask(RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, WorkspaceFilter srcFilter,
              @Nullable Boolean recursive)
focal_class.full_signature: @Override public RcpTask addTask(RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, WorkspaceFilter srcFilter,
              @Nullable Boolean recursive)
focal_class.identifier: addTask
focal_class.modifiers: @Override public
focal_class.parameters: (RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, WorkspaceFilter srcFilter,
              @Nullable Boolean recursive)
focal_class.return: RcpTask
focal_class.signature: RcpTask addTask(RepositoryAddress src, ConnectionOptions connectionOptions, Credentials srcCreds, String dst, String id, WorkspaceFilter srcFilter,
              @Nullable Boolean recursive)
focal_class.class_method_signature: RcpTaskManagerImpl.editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_class.full_signature: @Override public RcpTask editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_class.identifier: editTask
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_class.return: RcpTask
focal_class.signature: RcpTask editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_class.class_method_signature: RcpTaskManagerImpl.removeTask(String taskId)
focal_class.full_signature: @Override public boolean removeTask(String taskId)
focal_class.identifier: removeTask
focal_class.modifiers: @Override public
focal_class.parameters: (String taskId)
focal_class.return: boolean
focal_class.signature: boolean removeTask(String taskId)
focal_class.class_method_signature: RcpTaskManagerImpl.setSourceCredentials(String taskId, Credentials srcCreds)
focal_class.full_signature: @Override public void setSourceCredentials(String taskId, Credentials srcCreds)
focal_class.identifier: setSourceCredentials
focal_class.modifiers: @Override public
focal_class.parameters: (String taskId, Credentials srcCreds)
focal_class.return: void
focal_class.signature: void setSourceCredentials(String taskId, Credentials srcCreds)
focal_class.class_method_signature: RcpTaskManagerImpl.getClassLoaderForRepositoryFactory()
focal_class.full_signature: protected ClassLoader getClassLoaderForRepositoryFactory()
focal_class.identifier: getClassLoaderForRepositoryFactory
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getClassLoaderForRepositoryFactory()
focal_method.body: @Override
      public RcpTask editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive) throws ConfigurationException {
          RcpTaskImpl oldTask = tasks.get(taskId);
          if (oldTask == null) {
              throw new IllegalArgumentException("No such task with id='" + taskId + "'");
          }
          RcpTaskImpl newTask = new RcpTaskImpl(oldTask, src, connectionOptions, srcCreds, dst, excludes, srcFilter, recursive);
          tasks.put(taskId, newTask);
          persistTasks();
          return newTask;
      }
focal_method.class_method_signature: RcpTaskManagerImpl.editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_method.full_signature: @Override public RcpTask editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_method.identifier: editTask
focal_method.invocations: get put persistTasks
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)
focal_method.return: RcpTask
focal_method.signature: RcpTask editTask(@NotNull String taskId, @Nullable RepositoryAddress src, @Nullable ConnectionOptions connectionOptions, @Nullable Credentials srcCreds, @Nullable String dst, @Nullable List<String> excludes,
              @Nullable WorkspaceFilter srcFilter, @Nullable Boolean recursive)