|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.BaseService toolbox.services.ldap.LDAPService
public class LDAPService
Convenience service implementation that can be used to develop services
that require interaction with a LDAP Directory using the
toolbox.ldap
package.
Constructor Summary | |
---|---|
protected |
LDAPService()
Default constructor. |
Method Summary | |
---|---|
void |
create(java.lang.String name,
java.lang.String confHome,
ServiceEnvironment env,
XMLProperties xmlProps)
Create the service by obtaining a reference to the LDAPWorker using the provided environment. |
void |
destroy()
Destroy this service by nulling the worker. |
protected LDAPWorker |
getLDAPWorker()
Returns the LDAPWorker for this service. |
protected java.util.List |
search(java.lang.String entry,
java.lang.String filter,
java.lang.String context,
java.lang.String[] attrs,
java.lang.String[] params)
Perform a subtree directory search using the given parameters. |
protected java.util.List |
search(java.lang.String entry,
java.lang.String filter,
java.lang.String context,
java.lang.String[] attrs,
java.lang.String[] params,
java.lang.String sortAttr,
java.lang.String sortOrder)
Perform a subtree directory search using the given parameters and sort the results as specified. |
Methods inherited from class toolbox.services.BaseService |
---|
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LDAPService()
Method Detail |
---|
public void create(java.lang.String name, java.lang.String confHome, ServiceEnvironment env, XMLProperties xmlProps) throws ServiceException
create
in interface Service
create
in class BaseService
name
- The name of this service.confHome
- The path to the configuration home directory.env
- The service environment for this service.xmlProps
- XML configuration properties.
ServiceException
- if this service cannot be created.protected LDAPWorker getLDAPWorker()
protected java.util.List search(java.lang.String entry, java.lang.String filter, java.lang.String context, java.lang.String[] attrs, java.lang.String[] params) throws ServiceException
entry
- String containing the entry type to search for.filter
- String containing a filter template.context
- String containing the name of a configured context to
search in.attrs
- String array containing the names of the entries to
return.params
- The filter parameters.
ServiceException
- if the search cannot be performed.protected java.util.List search(java.lang.String entry, java.lang.String filter, java.lang.String context, java.lang.String[] attrs, java.lang.String[] params, java.lang.String sortAttr, java.lang.String sortOrder) throws ServiceException
entry
- String containing the entry type to search for.filter
- String containing a filter template.context
- String containing the name of a configured context to
search in.attrs
- String array containing the names of the entries to
return.params
- The filter parameters.sortAttr
- String containing the name of the attribute to sort
on. Must be one of the attributes in the attrs
param.sortOrder
- String indicating the sort order, asc or desc.
ServiceException
- if the search cannot be performed.public void destroy()
destroy
in interface Service
destroy
in class BaseService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |