Announcement Announcement Module
Collapse
No announcement yet.
Trying to use spring-ldap-1.3.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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.

      Comment


      • #4
        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);
        }

        Comment

        Working...
        X