org.springframework.ldap.samples.person.dao
Class GroupDaoImpl
java.lang.Object
org.springframework.ldap.samples.person.dao.GroupDaoImpl
- All Implemented Interfaces:
- GroupDao
public class GroupDaoImpl
- extends Object
- implements GroupDao
Default implementation of GroupDao. This implementation uses
DirContextOperations (DirContextAdapter really, but for mock testing purposes
we use the interface) for managing attribute values. It has been specified in
the Spring Context that the DirObjectFactory should be used when creating
objects from contexts, which defaults to creating DirContextAdapter objects.
This means that we can use a ContextMapper to map from the found contexts to
our domain objects.
- Author:
- Ulrik Sandberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupDaoImpl
public GroupDaoImpl()
create
public void create(Group group)
- Specified by:
create
in interface GroupDao
delete
public void delete(Group group)
- Specified by:
delete
in interface GroupDao
find
public List find(SearchCriteria criteria)
- Specified by:
find
in interface GroupDao
findAll
public List findAll()
- Specified by:
findAll
in interface GroupDao
findByPrimaryKey
public Group findByPrimaryKey(String name)
- Specified by:
findByPrimaryKey
in interface GroupDao
update
public void update(Group group)
- Specified by:
update
in interface GroupDao
setLdapOperations
public void setLdapOperations(LdapOperations ldapOperations)
updateMemberDn
public void updateMemberDn(String originalDn,
String newDn)
- Description copied from interface:
GroupDao
- Update all groups referring to the original DN with the new DN value.
- Specified by:
updateMemberDn
in interface GroupDao
- Parameters:
originalDn
- the original DN.newDn
- the new DN.
Copyright © 2006-2011 Spring Framework. All Rights Reserved.