mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-12-16 06:25:31 +00:00
Creaded Upload Interface; Also added Wrapper around HaDocument to reload the Document
This commit is contained in:
@@ -8,4 +8,5 @@ public interface IXMLService {
|
||||
public Task<List<XMLRootDocument>?> ProbeHamannFile(XDocument document, ModelStateDictionary ModelState);
|
||||
public Task UpdateAvailableFiles(XMLRootDocument doc, string basefilepath, ModelStateDictionary ModelState);
|
||||
public Dictionary<string, List<XMLRootDocument>> GetUsed();
|
||||
public List<XMLRootDocument>? GetAvailableFiles(string prefix);
|
||||
}
|
||||
@@ -87,6 +87,13 @@ public class XMLService : IXMLService {
|
||||
AutoDetermineUsed(prefix);
|
||||
}
|
||||
|
||||
public List<XMLRootDocument>? GetAvailableFiles(string prefix) {
|
||||
if (_Roots == null || _availableFiles == null) return null;
|
||||
if(!_Roots.ContainsKey(prefix) || !_availableFiles.ContainsKey(prefix)) return null;
|
||||
|
||||
return _availableFiles[prefix];
|
||||
}
|
||||
|
||||
public async Task UpdateAvailableFiles(XMLRootDocument doc, string basefilepath, ModelStateDictionary ModelState) {
|
||||
await _setEnabled();
|
||||
if (!UploadEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user