org.apache.jetspeed.services
Class JetspeedLDAP

java.lang.Object
  extended byorg.apache.jetspeed.services.JetspeedLDAP

public class JetspeedLDAP
extends java.lang.Object

Version:
$Id: JetspeedLDAP.java,v 1.5 2004/02/23 04:00:57 jford Exp $
Author:
Ender KILICOGLU, Sami Leino

Constructor Summary
JetspeedLDAP()
           
 
Method Summary
static boolean addAttribute(LDAPURL url, javax.naming.directory.Attribute at)
           
static boolean addEntry(LDAPURL url, javax.naming.directory.Attributes at)
           
static LDAPURL buildURL(java.lang.String DN)
           
static int compare(LDAPURL srcUrl, LDAPURL dstUrl)
           
static boolean deleteAttribute(LDAPURL url, javax.naming.directory.Attribute at)
           
static boolean deleteAttrs(LDAPURL url, javax.naming.directory.Attributes ats)
           
static boolean deleteEntry(LDAPURL url)
           
static boolean deleteTree(LDAPURL url)
           
static boolean exists(LDAPURL url)
           
static LDAPURL findEntryName(LDAPURL url)
           
static java.lang.String getName(java.lang.String dn)
           
static LDAPService getService()
           
static javax.naming.directory.Attributes read(LDAPURL url)
           
static java.lang.String removeAttrName(java.lang.String attrvalue)
           
static boolean renameEntry(LDAPURL url, java.lang.String newDN)
           
static javax.naming.NamingEnumeration search(javax.naming.directory.DirContext ctx, java.lang.String dn, java.lang.String filter, java.lang.String[] attribs, int type)
           
static java.util.Vector search(LDAPURL url, java.lang.String filter, java.lang.String[] attribs, boolean subTreeScope)
           
static boolean synchEntry(LDAPURL url, javax.naming.directory.Attributes ats)
           
static boolean transfer(LDAPURL fromUrl, LDAPURL toUrl, boolean delete, boolean replace, boolean withChildren)
           
static boolean transferEntry(LDAPURL fromUrl, javax.naming.directory.Attributes ats, LDAPURL toUrl, boolean delete, boolean replace)
           
static boolean transferEntry(LDAPURL fromUrl, LDAPURL toUrl, boolean delete, boolean replace)
           
static boolean updateAttribute(LDAPURL url, javax.naming.directory.Attribute at)
           
static boolean updateEntry(LDAPURL url, javax.naming.directory.Attributes at)
           
static boolean updateEntry(LDAPURL url, javax.naming.directory.Attributes ats, boolean replace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetspeedLDAP

public JetspeedLDAP()
Method Detail

getService

public static LDAPService getService()

addAttribute

public static boolean addAttribute(LDAPURL url,
                                   javax.naming.directory.Attribute at)

addEntry

public static boolean addEntry(LDAPURL url,
                               javax.naming.directory.Attributes at)

compare

public static int compare(LDAPURL srcUrl,
                          LDAPURL dstUrl)

deleteAttribute

public static boolean deleteAttribute(LDAPURL url,
                                      javax.naming.directory.Attribute at)

deleteEntry

public static boolean deleteEntry(LDAPURL url)

buildURL

public static LDAPURL buildURL(java.lang.String DN)

deleteTree

public static boolean deleteTree(LDAPURL url)

exists

public static boolean exists(LDAPURL url)

findEntryName

public static LDAPURL findEntryName(LDAPURL url)

removeAttrName

public static java.lang.String removeAttrName(java.lang.String attrvalue)

read

public static javax.naming.directory.Attributes read(LDAPURL url)

renameEntry

public static boolean renameEntry(LDAPURL url,
                                  java.lang.String newDN)

search

public static javax.naming.NamingEnumeration search(javax.naming.directory.DirContext ctx,
                                                    java.lang.String dn,
                                                    java.lang.String filter,
                                                    java.lang.String[] attribs,
                                                    int type)

search

public static java.util.Vector search(LDAPURL url,
                                      java.lang.String filter,
                                      java.lang.String[] attribs,
                                      boolean subTreeScope)

synchEntry

public static boolean synchEntry(LDAPURL url,
                                 javax.naming.directory.Attributes ats)

deleteAttrs

public static boolean deleteAttrs(LDAPURL url,
                                  javax.naming.directory.Attributes ats)

transfer

public static boolean transfer(LDAPURL fromUrl,
                               LDAPURL toUrl,
                               boolean delete,
                               boolean replace,
                               boolean withChildren)

transferEntry

public static boolean transferEntry(LDAPURL fromUrl,
                                    javax.naming.directory.Attributes ats,
                                    LDAPURL toUrl,
                                    boolean delete,
                                    boolean replace)

transferEntry

public static boolean transferEntry(LDAPURL fromUrl,
                                    LDAPURL toUrl,
                                    boolean delete,
                                    boolean replace)

updateAttribute

public static boolean updateAttribute(LDAPURL url,
                                      javax.naming.directory.Attribute at)

updateEntry

public static boolean updateEntry(LDAPURL url,
                                  javax.naming.directory.Attributes at)

updateEntry

public static boolean updateEntry(LDAPURL url,
                                  javax.naming.directory.Attributes ats,
                                  boolean replace)

getName

public static java.lang.String getName(java.lang.String dn)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.