- synchronized void initSessions(Repository repository, String userDirPath) throws RepositoryException {
- this.sysSession = repository.login();
- this.homeSession = repository.login(CmsConstants.HOME_WORKSPACE);
- userDir = sysSession.getNode(userDirPath);
- addDisposeListener((e) -> {
- Jcr.logout(sysSession);
- Jcr.logout(homeSession);
- });
- }
+// synchronized void initSessions(Repository repository, String userDirPath) throws RepositoryException {
+// this.sysSession = repository.login();
+// this.homeSession = repository.login(CmsConstants.HOME_WORKSPACE);
+// userDir = sysSession.getNode(userDirPath);
+// addDisposeListener((e) -> {
+// Jcr.logout(sysSession);
+// Jcr.logout(homeSession);
+// });
+// }