Results 1 to 4 of 4

Thread: Trying to use spring-ldap-1.3.1

  1. #1
    Join Date
    Apr 2013
    Posts
    2

    Default Trying to use spring-ldap-1.3.1

    First let me say that I am a totally newbie when it comes to Spring.

    I brought up the Spring API at http://static.springsource.org/sprin...x/javadoc-api/ and right off the bat, I see that there is nothing pointing to the LDAP API.

    So I did an internet search to try to figure out how to do what I need to do. I looked through the http://static.springsource.org/sprin...LEASE/apidocs/ and http://static.springsource.org/sprin...basic-searches and I see references to the interface PersonDao.

    Is this part of the framework or do I just create this interface and then implement it with say PersonDaoImpl like the example states?

    What should be in this interface? LdapTemplate?

    Any documentation would be helpful. I want to be able to search and other things to OpenDJ. And the documentation that I found says I should be able to do just that.

    Thanks in advance

  2. #2

    Default

    Quote Originally Posted by Crowdness View Post
    First let me say that I am a totally newbie when it comes to Spring.

    I brought up the Spring API at http://static.springsource.org/sprin...x/javadoc-api/ and right off the bat, I see that there is nothing pointing to the LDAP API.

    So I did an internet search to try to figure out how to do what I need to do. I looked through the http://static.springsource.org/sprin...LEASE/apidocs/ and http://static.springsource.org/sprin...basic-searches and I see references to the interface PersonDao.

    Is this part of the framework or do I just create this interface and then implement it with say PersonDaoImpl like the example states?

    What should be in this interface? LdapTemplate?

    Any documentation would be helpful. I want to be able to search and other things to OpenDJ. And the documentation that I found says I should be able to do just that.

    Thanks in advance

    I suggest that you start from the Spring LDAP documentation, which build upon examples as you go along: http://static.springsource.org/sprin...tml/index.html

    But you will need to have some basic knowledge of the Spring framework as a prerequisite.

  3. #3
    Join Date
    Apr 2013
    Posts
    2

    Default

    That is where I started, but the documentation starts out talking about that object and I assumed it was a Framework object. And I could not find the object.

    I think I have a little better handle on what I need to do now. But thanks for the reply.

    I'll ask more questions as my development using Spring and LDAP matures.

  4. #4
    Join Date
    Jul 2005
    Location
    Helsingborg, Sweden
    Posts
    504

    Default

    The PersonDao interface is part of the sample code that is included in a particular release download:

    http://s3.amazonaws.com/dist.springf...pendencies.zip

    Checkout samples/article.

    You can also look at the SVN sources:

    http://src.springframework.org/svn/s...-1.3.1.RELEASE

    Again in samples/article.

    It's not a complicated interface:

    Code:
    public interface PersonDao {
       void create(Person person);
    
       void update(Person person);
    
       void delete(Person person);
    
       List getAllPersonNames();
    
       List findAll();
    
       Person findByPrimaryKey(String country,
          String company, String fullname);
    }
    Ulrik Sandberg
    Jayway (www.jayway.com)
    Spring LDAP project member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •