Changeset 712
- Timestamp:
- 07/06/06 15:28:24
- Files:
-
- trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/BwSysIntfImpl.java (modified) (2 diffs)
- trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/CaldavBWIntf.java (modified) (4 diffs)
- trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/SysIntf.java (modified) (2 diffs)
- trunk/calendar3/config/configs/democal.properties (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/BwSysIntfImpl.java
r708 r712 80 80 import java.util.Collection; 81 81 82 import javax.servlet.ServletContext;83 82 import javax.servlet.http.HttpServletRequest; 84 import javax.servlet.http.HttpSession;85 83 86 84 /** Bedework implementation of SysIntf. … … 102 100 103 101 public void init(HttpServletRequest req, 102 String envPrefix, 104 103 String account, 105 104 boolean debug) throws WebdavIntfException { 106 105 try { 106 this.envPrefix = envPrefix; 107 107 this.account = account; 108 108 this.debug = debug; 109 110 HttpSession session = req.getSession();111 ServletContext sc = session.getServletContext();112 113 String appName = sc.getInitParameter("bwappname");114 115 if ((appName == null) || (appName.length() == 0)) {116 appName = "unknown-app-name";117 }118 119 envPrefix = "org.bedework.app." + appName + ".";120 121 /*122 namespacePrefix = WebdavUtils.getUrlPrefix(req);123 namespace = namespacePrefix + "/schema";124 */125 109 } catch (Throwable t) { 126 110 throw new WebdavIntfException(t); trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/CaldavBWIntf.java
r708 r712 55 55 56 56 import org.bedework.appcommon.AccessXmlUtil; 57 import org.bedework.calenv.CalEnv; 57 58 import org.bedework.calfacade.BwCalendar; 58 59 import org.bedework.calfacade.BwEvent; … … 94 95 import java.util.Properties; 95 96 97 import javax.servlet.ServletContext; 96 98 import javax.servlet.http.HttpServletRequest; 97 99 import javax.servlet.http.HttpServletResponse; 100 import javax.servlet.http.HttpSession; 98 101 99 102 import org.w3c.dom.Element; … … 126 129 private String namespace; 127 130 131 /* Prefix for our properties */ 132 private String envPrefix; 133 128 134 SysIntf sysi; 129 135 … … 163 169 164 170 try { 171 172 HttpSession session = req.getSession(); 173 ServletContext sc = session.getServletContext(); 174 175 String appName = sc.getInitParameter("bwappname"); 176 177 if ((appName == null) || (appName.length() == 0)) { 178 appName = "unknown-app-name"; 179 } 180 181 envPrefix = "org.bedework.app." + appName + "."; 182 165 183 namespacePrefix = WebdavUtils.getUrlPrefix(req); 166 184 namespace = namespacePrefix + "/schema"; 167 185 168 sysi = new BwSysIntfImpl(); 169 sysi.init(req, account, debug); 186 CalEnv env = new CalEnv(envPrefix, debug); 187 188 sysi = (SysIntf)env.getAppObject("sysintfimpl", SysIntf.class); 189 190 sysi.init(req, envPrefix, account, debug); 170 191 171 192 emitAccess = new EmitAccess(namespacePrefix, xml); trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/SysIntf.java
r708 r712 81 81 * 82 82 * @param req 83 * @param envPrefix 83 84 * @param account 84 85 * @param debug … … 86 87 */ 87 88 public void init(HttpServletRequest req, 89 String envPrefix, 88 90 String account, 89 91 boolean debug) throws WebdavIntfException; trunk/calendar3/config/configs/democal.properties
r628 r712 187 187 org.bedework.app.Pubcaldav.run.as.user=public-user 188 188 org.bedework.app.Pubcaldav.logprefix=PubCalDav 189 org.bedework.app.Pubcaldav.sysintfimpl=edu.rpi.cct.uwcal.caldav.BwSysIntfImpl 189 190 190 191 # … … 208 209 org.bedework.app.Usercaldav.publicadmin=false 209 210 org.bedework.app.Usercaldav.logprefix=UserCalDav 211 org.bedework.app.Usercaldav.sysintfimpl=edu.rpi.cct.uwcal.caldav.BwSysIntfImpl 210 212 211 213 #
