// can be default
merge, replace, none,
// additional per element
- delete, remove;
+ delete, remove, recreate;
private static final Set<EditStrategyType> defaultStrats = EnumSet.of(merge, replace, none);
case none:
case remove:
case delete:
+ case recreate:
return false;
case replace:
return true;
throw new OperationNotPermittedException(String.format("With "
+ defaultStrategy
+ " as default-operation operations on module elements are not permitted since the default option is restrictive"),
- DocumentedException.ErrorType.application,
- DocumentedException.ErrorTag.operation_failed,
- DocumentedException.ErrorSeverity.error);
+ DocumentedException.ErrorType.APPLICATION,
+ DocumentedException.ErrorTag.OPERATION_FAILED,
+ DocumentedException.ErrorSeverity.ERROR);
}
}
return new DeleteEditConfigStrategy();
case remove:
return new RemoveEditConfigStrategy();
+ case recreate:
+ return new ReCreateEditConfigStrategy();
case none:
return new NoneEditConfigStrategy();
default: