Class LdapDirHandler

    • Constructor Detail

      • LdapDirHandler

        public LdapDirHandler()
    • Method Detail

      • init

        public void init​(CardDAVConfigI cdConfig,
                         DirHandlerConfig dhConfig,
                         org.bedework.webdav.servlet.shared.UrlHandler urlHandler)
                  throws org.bedework.webdav.servlet.shared.WebdavException
        Specified by:
        init in interface DirHandler
        Overrides:
        init in class AbstractDirHandler
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • getCard

        public Card getCard​(String path,
                            String name)
                     throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • getCardByUid

        public Card getCardByUid​(String path,
                                 String uid)
                          throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • getCards

        public GetResult getCards​(String path,
                                  Filter filter,
                                  GetLimits limits)
                           throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • getCollection

        public CarddavCollection getCollection​(String path)
                                        throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • getCollections

        public GetResult getCollections​(String path,
                                        GetLimits limits)
                                 throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • search

        protected GetResult search​(String base,
                                   String filter,
                                   GetLimits limits,
                                   int scope)
                            throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • nextCard

        protected org.bedework.carddav.server.dirHandlers.ldap.LdapDirHandler.CardObject nextCard​(String path,
                                                                                                  boolean fullPath)
                                                                                           throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • nextCdCollection

        protected org.bedework.carddav.server.dirHandlers.ldap.LdapDirHandler.CollectionObject nextCdCollection​(String path,
                                                                                                                boolean fullPath)
                                                                                                         throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • makeCdCollection

        protected CarddavCollection makeCdCollection​(String path,
                                                     boolean fullPath,
                                                     Attributes attrs)
                                              throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • makeVcard

        protected Card makeVcard​(String path,
                                 boolean fullPath,
                                 Attributes attrs,
                                 String dn)
                          throws org.bedework.webdav.servlet.shared.WebdavException
        Parameters:
        path - path to this card
        fullPath - - path includes card name
        attrs - attributes for the entry
        Returns:
        a card
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • getObject

        protected LdapDirHandler.LdapObject getObject​(String path,
                                                      boolean isCollection)
                                               throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • searchChildren

        protected GetResult searchChildren​(String path,
                                           String filter,
                                           GetLimits limits,
                                           boolean cards)
                                    throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • makePrincipalDn

        protected String makePrincipalDn​(String account)
      • makeAddrbookDn

        protected String makeAddrbookDn​(String path,
                                        boolean isCollection)
                                 throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • openContext

        protected void openContext()
                            throws org.bedework.webdav.servlet.shared.WebdavException
        Throws:
        org.bedework.webdav.servlet.shared.WebdavException
      • closeContext

        protected void closeContext()
      • getAttrIdList

        protected String[] getAttrIdList()