Skip to content

Commit

Permalink
fix #2797 Enhanced CrawlingConfigHelper with improved parameter namin…
Browse files Browse the repository at this point in the history
…g and added extensive JUnit tests for robust testing
  • Loading branch information
marevol committed Jan 11, 2024
1 parent ed73caf commit 296368a
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ public synchronized String store(final String sessionId, final CrawlingConfig cr
return sessionCountId;
}

public void remove(final String sessionId) {
crawlingConfigMap.remove(sessionId);
public void remove(final String sessionCountId) {
crawlingConfigMap.remove(sessionCountId);
}

public CrawlingConfig get(final String sessionId) {
return crawlingConfigMap.get(sessionId);
public CrawlingConfig get(final String sessionCountId) {
return crawlingConfigMap.get(sessionCountId);
}

public List<WebConfig> getAllWebConfigList() {
Expand Down Expand Up @@ -277,6 +277,10 @@ public List<String> getExcludedUrlList(final String configId) {
}

public OptionalEntity<CrawlingConfig> getDefaultConfig(final ConfigType configType) {
if (configType == null) {
return OptionalEntity.empty();
}

final String name = ComponentUtil.getFessConfig().getFormAdminDefaultTemplateName();

return switch (configType) {
Expand Down
Loading

0 comments on commit 296368a

Please sign in to comment.