working on document list

This commit is contained in:
2025-07-09 00:27:06 +02:00
parent 58f69689e2
commit 5b5e6a9387
22 changed files with 1914 additions and 26 deletions

View File

@@ -21,6 +21,7 @@ public class Constants {
public static final String ERROR_FAILED_CREATE_TABLE = "Failed to create \"{0}\" table!";
public static final String ERROR_INVALID_FIELD = "Expected {0} to be {1}!";
public static final String ERROR_MISSING_CONFIG = "Config is missing value for {0}!";
public static final String ERROR_MISSING_FIELD = "Json is missing {0} field!";
public static final String ERROR_READ_TABLE = "Failed to read {0} from {1} table";

View File

@@ -31,6 +31,11 @@ public class Util {
};
}
public static String markdown(String code){
LOG.log(ERROR,"{0}.markdown(…) not implemented",Util.class.getCanonicalName());
return code;
}
public static HttpURLConnection open(URL url) throws IOException {
var conn = (HttpURLConnection) url.openConnection();
conn.setRequestProperty("Accept","*/*");

View File

@@ -1,11 +1,13 @@
/* © SRSoftware 2025 */
package de.srsoftware.umbrella.core.api;
import com.sun.net.httpserver.HttpExchange;
import de.srsoftware.umbrella.core.Token;
import de.srsoftware.umbrella.core.UmbrellaException;
import de.srsoftware.umbrella.core.model.UmbrellaUser;
import java.util.Optional;
public interface UserHelper {
Optional<UmbrellaUser> loadUser(Optional<Token> sessionToken) throws UmbrellaException;
Optional<UmbrellaUser> loadUser(HttpExchange ex) throws UmbrellaException;
}