JBStrap LDAP DAO
Data handling in LDAP
Fetch
Use this functionality to programmatically retrieve data based on a DataDescriptor from an LDAP server. In the data query, you can apply filter criteria to the query. Filter criteria are JBStrap Criteria objects. Results are returned as DataRecord or List<DataRecord> objects. You can retrieve all the corresponding records or only a subset of the record for a faster response time.
If you can specify the client object, the access rights in the DataDescriptor are checked. If a user does not have read rights for the data (as specified in the DataDescriptor), the an error is returned, preventing unauthorized access to the data.
Here are a few examples of how to fetch data using the LDAP DataDescriptor:
Fetching a record from the LDAP server using its unique ID:
Counting the records: