public class LdapServiceRegistry extends AbstractServiceRegistry
Constructor and Description |
---|
LdapServiceRegistry(org.ldaptive.ConnectionFactory connectionFactory,
java.lang.String baseDn,
LdapRegisteredServiceMapper ldapServiceMapper,
LdapServiceRegistryProperties ldapProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(RegisteredService registeredService)
Remove the service from the data store.
|
RegisteredService |
findServiceById(long id)
Find service by the numeric id.
|
RegisteredService |
findServiceById(java.lang.String id)
Find service by the service id.
|
java.util.List<RegisteredService> |
load()
Retrieve the services from the data store.
|
RegisteredService |
save(RegisteredService rs)
Persist the service in the data store.
|
long |
size()
Return number of records held in this service registry.
|
getName, publishEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findServiceByExactServiceId, findServiceByExactServiceName
public LdapServiceRegistry(org.ldaptive.ConnectionFactory connectionFactory, java.lang.String baseDn, LdapRegisteredServiceMapper ldapServiceMapper, LdapServiceRegistryProperties ldapProperties)
public RegisteredService save(RegisteredService rs)
ServiceRegistry
rs
- the service to persist.public boolean delete(RegisteredService registeredService)
ServiceRegistry
registeredService
- the service to remove.public long size()
public java.util.List<RegisteredService> load()
ServiceRegistry
public RegisteredService findServiceById(long id)
ServiceRegistry
id
- the idpublic RegisteredService findServiceById(java.lang.String id)
ServiceRegistry
id
- the id