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
 java.lang.String convertUidToLdapAcceptableName(java.lang.String uid)
           Converts the uid to an ldap acceptable name.
 void create(java.lang.String principalUid)
           Makes a new ldap entry for the specified principal.
 void delete(java.lang.String principalUid)
           Deletes a ldap entry for the specified principal.
 java.security.Principal[] find(java.lang.String principalUid, java.lang.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(java.lang.String principalUid)
            throws SecurityException

Makes a new ldap entry for the specified principal.

Parameters:
principalUid - The principal uid.
Throws:
SecurityException - Throws a SecurityException.

delete

void delete(java.lang.String principalUid)
            throws SecurityException

Deletes a ldap entry for the specified principal.

Parameters:
principalUid - The principal uid.
Throws:
SecurityException - Throws a SecurityException.

find

java.security.Principal[] find(java.lang.String principalUid,
                               java.lang.String principalType)
                               throws 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:
SecurityException

convertUidToLdapAcceptableName

java.lang.String convertUidToLdapAcceptableName(java.lang.String uid)

Converts the uid to an ldap acceptable name.

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


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