From 8cab6e94514c38151b2e0c53c9df47c6e1682e28 Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 21 Jan 2021 19:21:56 +0000 Subject: [PATCH] Anpassungen Foto UI fertig, jQuery ausgebaut --- src/java/de/uhilger/filecms/api/Api.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/java/de/uhilger/filecms/api/Api.java b/src/java/de/uhilger/filecms/api/Api.java index 507c2ae..b26537e 100644 --- a/src/java/de/uhilger/filecms/api/Api.java +++ b/src/java/de/uhilger/filecms/api/Api.java @@ -46,13 +46,18 @@ public static final String WBX_DATA_PATH = "daten/"; public static final String PUB_DIR_PATH = "www/"; public static final String HOME_DIR_PATH = "home/"; + public static final String DAV_DIR_PATH = "dav/"; + public static final String PUB_DIR_NAME = "Oeffentlich"; //public static final String HOME_DIR_NAME = "Persoenlicher Ordner"; public static final String HOME_DIR_NAME = "Persoenlich"; + public static final String DAV_DIR_NAME = "Austausch"; + public static final String WBX_ADMIN_ROLE = "wbxAdmin"; public static final String WBX_BASE = "$basis"; public static final String WBX_DATA = "$daten"; + public static final String DAV_DATA = "$dav"; /** * Einen relativen Pfad in einen absoluten Pfad der WebBox @@ -78,6 +83,9 @@ } else if(relPath.startsWith(HOME_DIR_NAME)) { targetPath = HOME_DIR_PATH + getUserName() + relPath.substring(HOME_DIR_NAME.length()); targetDir = new File(getBase().getAbsolutePath(), targetPath); + } else if(relPath.startsWith(DAV_DIR_NAME)) { + targetPath = DAV_DIR_PATH + /* getUserName() +*/ relPath.substring(DAV_DIR_NAME.length()); + targetDir = new File(getBase().getAbsolutePath(), targetPath); } else if(getRequest().isUserInRole(WBX_ADMIN_ROLE)) { logger.fine("in admin role"); if(relPath.startsWith(WBX_BASE)) { -- Gitblit v1.9.3