net.sourceforge.heracles.service.impl
Class SearchImpl

java.lang.Object
  extended by net.sourceforge.heracles.service.impl.SearchImpl
All Implemented Interfaces:
Search

public class SearchImpl
extends java.lang.Object
implements Search

Title: SearchImpl.java
Description: The implementation of the Serivce Interface
Java Version: JDK 1.5

Author:
Philipp Gantert version 1.0

Field Summary
private  LdapQuery ldapQuery
           
private  org.apache.log4j.Logger logger
           
 
Constructor Summary
SearchImpl()
           
 
Method Summary
 java.util.List<LdapUser> searchInLdap(java.lang.String domainName, java.lang.String where, java.lang.String like)
          This method asks the dao layer for searching something in the ldap.
 void setLdapQuery(LdapQuery ldapQuery)
          Spring needs this method to inizalize the ldapQuery object.
private  void validating(java.lang.String domainName, java.lang.String where, java.lang.String like)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private org.apache.log4j.Logger logger

ldapQuery

private LdapQuery ldapQuery
Constructor Detail

SearchImpl

public SearchImpl()
Method Detail

setLdapQuery

public void setLdapQuery(LdapQuery ldapQuery)
Spring needs this method to inizalize the ldapQuery object.

Parameters:
ldapQuery -

searchInLdap

public java.util.List<LdapUser> searchInLdap(java.lang.String domainName,
                                             java.lang.String where,
                                             java.lang.String like)
                                      throws javax.naming.NamingException,
                                             HeraclesException
This method asks the dao layer for searching something in the ldap. The "where" statement defines the Attribute which would be to search and the "like" statement defines the String which is searched.

Specified by:
searchInLdap in interface Search
Parameters:
domainName - String: in which domain
where - String: which attribute
like - String: which search statement
Returns:
List
Throws:
javax.naming.NamingException
HeraclesException

validating

private void validating(java.lang.String domainName,
                        java.lang.String where,
                        java.lang.String like)
                 throws HeraclesException
Throws:
HeraclesException


Copyright © 2007 null. All Rights Reserved.