public abstract class DbDirHandler extends AbstractDirHandler implements org.bedework.access.PrivilegeDefs
| Modifier and Type | Class and Description |
|---|---|
protected class |
DbDirHandler.CollectionsBatchImpl |
AbstractDirHandler.SplitResultDirHandler.CollectionBatcher| Modifier and Type | Field and Description |
|---|---|
protected DbDirHandlerConfig |
dbConfig |
protected Timestamp |
objTimestamp
When we were created for debugging
|
protected HibSession |
sess
Current hibernate session - exists only across one user interaction
|
protected String |
userHomeRoot |
account, cdConfig, debug, dhConfig, open, principalNotFound, superUser, unknownPrincipalType, urlHandlerallowed, allowedInherited, denied, deniedInherited, inheritedFlag, oldAllowed, oldDenied, privAll, privAny, privBind, privEncoding, privMaxType, privNone, privRead, privReadAcl, privReadCurrentUserPrivilegeSet, privReadFreeBusy, privSchedule, privScheduleDeliver, privScheduleDeliverInvite, privScheduleDeliverReply, privScheduleFreeBusy, privScheduleQueryFreebusy, privScheduleReply, privScheduleRequest, privScheduleSend, privScheduleSendFreebusy, privScheduleSendInvite, privScheduleSendReply, privUnbind, privUnlock, privWrite, privWriteAcl, privWriteContent, privWriteProperties, unspecifiedstatusChangeUid, statusCreated, statusDestinationExists, statusDuplicate, statusDuplicateUid, statusIllegal, statusNoAccess, statusOK| Constructor and Description |
|---|
DbDirHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginTransaction() |
protected org.bedework.webdav.servlet.access.SharedEntity |
checkAccess(org.bedework.webdav.servlet.access.SharedEntity ent,
int desiredAccess,
boolean alwaysReturnResult) |
protected void |
checkOpen() |
void |
close() |
protected void |
closeSession() |
protected void |
deleteDbCard(DbCard dbcard) |
protected int |
deleteDbCollection(String path) |
protected void |
endTransaction() |
protected String |
ensureSlashAtEnd(String val) |
Iterator<Card> |
getAll(String path) |
Card |
getCard(String path,
String name) |
Card |
getCardByUid(String path,
String uid) |
GetResult |
getCards(String path,
Filter filter,
GetLimits limits) |
CarddavCollection |
getCollection(String path) |
DirHandler.CollectionBatcher |
getCollections(String path) |
GetResult |
getCollections(String path,
GetLimits limits) |
protected DbCard |
getDbCard(String path) |
protected DbCard |
getDbCard(String parentPath,
String name,
int access) |
protected DbCard |
getDbCardByUid(String parentPath,
String uid) |
protected DbCollection |
getDbCollection(String path,
int access) |
void |
init(CardDAVConfig cdConfig,
DirHandlerConfig dhConfig,
org.bedework.webdav.servlet.shared.UrlHandler urlHandler) |
protected CarddavCollection |
makeCdCollection(DbCollection col) |
protected Card |
makeVcard(DbCard dbcard) |
void |
open(String account) |
protected void |
openSession() |
protected void |
rollbackTransaction() |
protected void |
updateCollection(DbCollection col) |
addValidUser, ensureEndSlash, error, exportData, getDirectoryInfo, getGroups, getLogger, getPrincipal, getprincipalHome, getprincipalHome, isOpen, isPrincipal, lookupUser, makePrincipalHref, makePrincipalUri, splitUri, trace, verifyPath, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCard, copyMove, deleteCard, deleteCollection, getPrincipalCard, makeCollection, rename, updateCard, updateCollectionprotected DbDirHandlerConfig dbConfig
protected String userHomeRoot
protected Timestamp objTimestamp
protected HibSession sess
public void init(CardDAVConfig cdConfig, DirHandlerConfig dhConfig, org.bedework.webdav.servlet.shared.UrlHandler urlHandler) throws org.bedework.webdav.servlet.shared.WebdavException
init in interface DirHandlerinit in class AbstractDirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void open(String account) throws org.bedework.webdav.servlet.shared.WebdavException
open in interface DirHandleropen in class AbstractDirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic void close()
throws org.bedework.webdav.servlet.shared.WebdavException
close in interface DirHandlerclose in class AbstractDirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic Card getCard(String path, String name) throws org.bedework.webdav.servlet.shared.WebdavException
getCard in interface DirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic Card getCardByUid(String path, String uid) throws org.bedework.webdav.servlet.shared.WebdavException
getCardByUid in interface DirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic GetResult getCards(String path, Filter filter, GetLimits limits) throws org.bedework.webdav.servlet.shared.WebdavException
getCards in interface DirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic Iterator<Card> getAll(String path) throws org.bedework.webdav.servlet.shared.WebdavException
getAll in interface DirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic CarddavCollection getCollection(String path) throws org.bedework.webdav.servlet.shared.WebdavException
getCollection in interface DirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic GetResult getCollections(String path, GetLimits limits) throws org.bedework.webdav.servlet.shared.WebdavException
getCollections in interface DirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionpublic DirHandler.CollectionBatcher getCollections(String path) throws org.bedework.webdav.servlet.shared.WebdavException
getCollections in interface DirHandlergetCollections in class AbstractDirHandlerorg.bedework.webdav.servlet.shared.WebdavExceptionprotected void updateCollection(DbCollection col) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected DbCard getDbCard(String parentPath, String name, int access) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected DbCard getDbCardByUid(String parentPath, String uid) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected DbCard getDbCard(String path) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected DbCollection getDbCollection(String path, int access) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected CarddavCollection makeCdCollection(DbCollection col) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected int deleteDbCollection(String path) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected Card makeVcard(DbCard dbcard) throws org.bedework.webdav.servlet.shared.WebdavException
dbcard - dbcopyorg.bedework.webdav.servlet.shared.WebdavExceptionprotected void deleteDbCard(DbCard dbcard) throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected void checkOpen()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected void openSession()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected void closeSession()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected void beginTransaction()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected void endTransaction()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected void rollbackTransaction()
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionprotected org.bedework.webdav.servlet.access.SharedEntity checkAccess(org.bedework.webdav.servlet.access.SharedEntity ent,
int desiredAccess,
boolean alwaysReturnResult)
throws org.bedework.webdav.servlet.shared.WebdavException
org.bedework.webdav.servlet.shared.WebdavExceptionCopyright © 2015 Bedework. All rights reserved.