public interface IDBSSession
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
abandon(netscape.ldap.LDAPSearchResults results) |
void |
add(java.lang.String name,
IDBObj obj)
Adds object to backend database.
|
void |
close()
Closes this session.
|
<T> IDBVirtualList<T> |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
Retrieves a list of objects.
|
<T> IDBVirtualList<T> |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs,
java.lang.String[] sortKeys,
int pageSize)
Retrieves a list of objects.
|
<T> IDBVirtualList<T> |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs,
java.lang.String sortKey,
int pageSize)
Retrieves a list of objects.
|
<T> IDBVirtualList<T> |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs,
java.lang.String startFrom,
java.lang.String sortKey,
int pageSize)
Retrieves a list of objects.
|
void |
delete(java.lang.String name)
Deletes object from database.
|
ISubsystem |
getDBSubsystem()
Returns database subsystem.
|
void |
modify(java.lang.String name,
ModificationSet mods)
Modify an object in the database.
|
netscape.ldap.LDAPSearchResults |
persistentSearch(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
Sets persistent search to retrieve modified
certificate records.
|
IDBObj |
read(java.lang.String name)
Reads an object from the database.
|
IDBObj |
read(java.lang.String name,
java.lang.String[] attrs)
Reads an object from the database, and only populates
the selected attributes.
|
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter)
Searchs for a list of objects that match the
filter.
|
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
int maxSize)
Searchs for a list of objects that match the
filter.
|
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
int maxSize,
int timeLimit)
Searchs for a list of objects that match the
filter.
|
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
int maxSize,
int timeLimit,
java.lang.String sortAttribute)
Searchs for a list of objects that match the
filter.
|
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
int maxSize,
java.lang.String sortAttribute)
Searchs for a list of objects that match the
filter.
|
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
Retrieves a list of object that satifies the given
filter.
|
ISubsystem getDBSubsystem()
void close()
throws EDBException
close in interface java.lang.AutoCloseableEDBException - failed to close sessionvoid add(java.lang.String name,
IDBObj obj)
throws EBaseException
session.add("cn=123459,o=certificate repository,o=airius.com",
certRec);
name - name of the objectobj - object to be addedEDBException - failed to add objectEBaseExceptionIDBObj read(java.lang.String name) throws EBaseException
name - name of the object that is to be readEBaseException - failed to read objectIDBObj read(java.lang.String name, java.lang.String[] attrs) throws EBaseException
name - name of the object that is to be readattrs - selected attributesEBaseException - failed to read objectvoid delete(java.lang.String name)
throws EBaseException
name - name of the object that is to be deletedEBaseException - failed to delete objectvoid modify(java.lang.String name,
ModificationSet mods)
throws EBaseException
name - name of the object that is to be modifiedmods - modificationsEBaseException - failed to modifyIDBSearchResults search(java.lang.String base, java.lang.String filter) throws EBaseException
base - starting point of the searchfilter - search filterEBaseException - failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, int maxSize) throws EBaseException
base - starting point of the searchfilter - search filtermaxSize - max number of entriesEBaseException - failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, int maxSize, java.lang.String sortAttribute) throws EBaseException
base - starting point of the searchfilter - search filtermaxSize - max number of entriessortAttribute - Field to sort the records onEBaseException - failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, int maxSize, int timeLimit) throws EBaseException
base - starting point of the searchfilter - search filtermaxSize - max number of entriestimeLimit - timeout limitEBaseException - failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, int maxSize, int timeLimit, java.lang.String sortAttribute) throws EBaseException
base - starting point of the searchfilter - search filtermaxSize - max number of entriestimeLimit - timeout limitsortAttribute - Field to sort the records onEBaseException - failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, java.lang.String[] attrs) throws EBaseException
base - starting point of the searchfilter - search filterattrs - selected attributesEBaseException - failed to search<T> IDBVirtualList<T> createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs) throws EBaseException
base - starting point of the searchfilter - search filterattrs - selected attributesEBaseException - failed to searchnetscape.ldap.LDAPSearchResults persistentSearch(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
throws EBaseException
base - starting point of the searchfilter - search filterattrs - selected attributesEBaseException - failed to searchvoid abandon(netscape.ldap.LDAPSearchResults results)
throws EBaseException
EBaseException<T> IDBVirtualList<T> createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs, java.lang.String sortKey, int pageSize) throws EBaseException
base - starting point of the searchfilter - search filterattrs - selected attributessortKey - key used to sort the listpageSize - page size in the virtual listEBaseException - failed to search<T> IDBVirtualList<T> createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs, java.lang.String[] sortKeys, int pageSize) throws EBaseException
base - starting point of the searchfilter - search filterattrs - selected attributessortKeys - keys used to sort the listpageSize - page size in the virtual listEBaseException - failed to search<T> IDBVirtualList<T> createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs, java.lang.String startFrom, java.lang.String sortKey, int pageSize) throws EBaseException
base - starting point of the searchfilter - search filterattrs - selected attributesstartFrom - starting pointsortKey - key used to sort the listpageSize - page size in the virtual listEBaseException - failed to search