org.jasig.cas.adaptors.ldap.services
Class LdapServiceRegistryDao

java.lang.Object
  extended by org.jasig.cas.adaptors.ldap.services.LdapServiceRegistryDao
All Implemented Interfaces:
ServiceRegistryDao

public final class LdapServiceRegistryDao
extends java.lang.Object
implements ServiceRegistryDao

Implementation of the ServiceRegistryDao interface which stores the services in a LDAP Directory

Author:
Siegfried Puchbauer, SPP (http://www.spp.at), Scott Battaglia

Constructor Summary
LdapServiceRegistryDao()
           
 
Method Summary
 boolean delete(RegisteredService registeredService)
           
protected  java.lang.String findDn(java.lang.String filter)
           
 RegisteredService findServiceById(long id)
           
 java.util.List<RegisteredService> load()
           
protected  org.springframework.ldap.core.DirContextAdapter lookupCtx(java.lang.String dn)
           
 RegisteredService save(RegisteredService rs)
           
 void setIgnoreMultipleSearchResults(boolean ignoreMultipleSearchResults)
           
 void setLdapServiceMapper(LdapServiceMapper ldapServiceMapper)
           
 void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
           
 void setServiceBaseDN(java.lang.String serviceBaseDN)
           
 RegisteredService update(RegisteredServiceImpl registeredService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapServiceRegistryDao

public LdapServiceRegistryDao()
Method Detail

save

public RegisteredService save(RegisteredService rs)
Specified by:
save in interface ServiceRegistryDao

update

public RegisteredService update(RegisteredServiceImpl registeredService)

lookupCtx

protected org.springframework.ldap.core.DirContextAdapter lookupCtx(java.lang.String dn)

findDn

protected java.lang.String findDn(java.lang.String filter)

delete

public boolean delete(RegisteredService registeredService)
Specified by:
delete in interface ServiceRegistryDao

load

public java.util.List<RegisteredService> load()
Specified by:
load in interface ServiceRegistryDao

findServiceById

public RegisteredService findServiceById(long id)
Specified by:
findServiceById in interface ServiceRegistryDao

setServiceBaseDN

public void setServiceBaseDN(java.lang.String serviceBaseDN)

setLdapTemplate

public void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)

setIgnoreMultipleSearchResults

public void setIgnoreMultipleSearchResults(boolean ignoreMultipleSearchResults)

setLdapServiceMapper

public void setLdapServiceMapper(LdapServiceMapper ldapServiceMapper)


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.