Class LdapDirHandler
java.lang.Object
org.bedework.carddav.common.AbstractDirHandler
org.bedework.carddav.server.dirHandlers.ldap.LdapDirHandler
- All Implemented Interfaces:
DirHandler,org.bedework.util.logging.Logged
- Direct Known Subclasses:
LdapAddrBookDirHandler,LdapPrincipalDirHandler
Provide some common methods for ldap based directory handlers.
- Author:
- douglm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classstatic classNested classes/interfaces inherited from class org.bedework.carddav.common.AbstractDirHandler
AbstractDirHandler.SplitResultNested classes/interfaces inherited from interface org.bedework.carddav.common.DirHandler
DirHandler.CollectionBatcher -
Field Summary
FieldsFields inherited from class org.bedework.carddav.common.AbstractDirHandler
account, cdConfig, dhConfig, open, principalNotFound, superUser, unknownPrincipalType, urlHandlerFields inherited from interface org.bedework.carddav.common.DirHandler
statusChangeUid, statusCreated, statusDestinationExists, statusDuplicate, statusDuplicateUid, statusIllegal, statusNoAccess, statusOK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Stringprotected String[]getCardByUid(String path, String uid) getCollection(String path) getCollections(String path, GetLimits limits) protected LdapDirHandler.LdapObjectvoidinit(CardDAVConfigI cdConfig, DirHandlerConfig<?> dhConfig, org.bedework.webdav.servlet.shared.UrlHandler urlHandler) protected StringmakeAddrbookDn(String path, boolean isCollection) protected CarddavCollectionmakeCdCollection(String path, boolean fullPath, Attributes attrs) protected StringmakePrincipalDn(String account) protected CardmakeVcard(String path, boolean fullPath, Attributes attrs, String dn) protected LdapDirHandler.CardObjectprotected LdapDirHandler.CollectionObjectnextCdCollection(String path, boolean fullPath) protected voidprotected GetResultprotected GetResultsearchChildren(String path, String filter, GetLimits limits, boolean cards) Methods inherited from class org.bedework.carddav.common.AbstractDirHandler
addToPrincipal, addValidUser, close, ensureEndSlash, exportData, getCollections, getDirectoryInfo, getGroups, getLogger, getPrincipal, getprincipalHome, getprincipalHome, getToPrincipal, isOpen, isPrincipal, lookupUser, makePrincipalHref, makePrincipalUri, open, splitUri, verifyPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.carddav.common.DirHandler
addCard, copyMove, deleteCard, deleteCollection, getAll, getPrincipalCard, makeCollection, rename, updateCard, updateCollectionMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn, warn
-
Field Details
-
ldapConfig
-
ctx
-
-
Constructor Details
-
LdapDirHandler
public LdapDirHandler()
-
-
Method Details
-
getCard
-
getCardByUid
-
getCards
-
getCollection
-
getCollections
-
search
-
nextCard
-
nextCdCollection
-
makeCdCollection
-
makeVcard
- Parameters:
path- path to this cardfullPath- - path includes card nameattrs- attributes for the entry- Returns:
- a card
-
getObject
-
searchChildren
-
makePrincipalDn
-
makeAddrbookDn
-
dnEscape
-
openContext
protected void openContext() -
closeContext
protected void closeContext() -
getAttrIdList