org.apache.jetspeed.security.spi.impl.ldap
Interface LdapPrincipalDao

All Superinterfaces:
LdapReadOnlyPrincipalDao
All Known Subinterfaces:
LdapUserPrincipalDao
All Known Implementing Classes:
LdapGroupDaoImpl, LdapMemberShipDaoImpl, LdapPrincipalDaoImpl, LdapRoleDaoImpl, LdapUserPrincipalDaoImpl

public interface LdapPrincipalDao
extends LdapReadOnlyPrincipalDao

Generic DAO interface for LDAP principals.

Author:
Mike Long , David Le Strat

Method Summary
 String convertUidToLdapAcceptableName(String uid)
           Converts the uid to an ldap acceptable name.
 void create(String principalUid)
           Makes a new ldap entry for the specified principal.
 void delete(String principalUid)
           Deletes a ldap entry for the specified principal.
 Principal[] find(String principalUid, String principalType)
           Search the ldap directory for the principal.
 
Methods inherited from interface org.apache.jetspeed.security.spi.impl.ldap.LdapReadOnlyPrincipalDao
lookupByUid
 

Method Detail

create

void create(String principalUid)
            throws org.apache.jetspeed.security.SecurityException

Makes a new ldap entry for the specified principal.

Parameters:
principalUid - The principal uid.
Throws:
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.

delete

void delete(String principalUid)
            throws org.apache.jetspeed.security.SecurityException

Deletes a ldap entry for the specified principal.

Parameters:
principalUid - The principal uid.
Throws:
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.

find

Principal[] find(String principalUid,
                 String principalType)
                 throws org.apache.jetspeed.security.SecurityException

Search the ldap directory for the principal.

Parameters:
principalUid - The uid value of the principal.
principalType - The type of principal.
Returns:
All the objects of this LDAP class type.
Throws:
org.apache.jetspeed.security.SecurityException

convertUidToLdapAcceptableName

String convertUidToLdapAcceptableName(String uid)

Converts the uid to an ldap acceptable name.

Parameters:
uid - The uid.
Returns:
The converted name.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.