public final class DefaultServicesManagerImpl extends Object implements ReloadableServicesManager
ServicesManager interface. If there are
no services registered with the server, it considers the ServicecsManager
disabled and will not prevent any service from using CAS.| Constructor and Description |
|---|
DefaultServicesManagerImpl(ServiceRegistryDao serviceRegistryDao) |
DefaultServicesManagerImpl(ServiceRegistryDao serviceRegistryDao,
List<String> defaultAttributes)
Constructs an instance of the
DefaultServicesManagerImpl where the default RegisteredService
can include a set of default attributes to use if no services are defined in the registry. |
| Modifier and Type | Method and Description |
|---|---|
protected TreeSet<RegisteredService> |
convertToTreeSet() |
RegisteredService |
delete(long id)
Delete the entry for this RegisteredService.
|
RegisteredService |
findServiceBy(long id)
Find a RegisteredService by matching with the supplied id.
|
RegisteredService |
findServiceBy(Service service)
Find a RegisteredService by matching with the supplied service.
|
Collection<RegisteredService> |
getAllServices()
Retrieve the collection of all registered services.
|
boolean |
matchesExistingService(Service service)
Convenience method to let one know if a service exists in the data store.
|
void |
reload()
Inform the ServicesManager to reload its list of services if its cached
them.
|
RegisteredService |
save(RegisteredService registeredService)
Register a service with CAS, or update an existing an entry.
|
public DefaultServicesManagerImpl(ServiceRegistryDao serviceRegistryDao)
public DefaultServicesManagerImpl(ServiceRegistryDao serviceRegistryDao, List<String> defaultAttributes)
DefaultServicesManagerImpl where the default RegisteredService
can include a set of default attributes to use if no services are defined in the registry.serviceRegistryDao - the Service Registry Dao.defaultAttributes - the list of default attributes to use.@Transactional(readOnly=false) public RegisteredService delete(long id)
ServicesManagerdelete in interface ServicesManagerid - the id of the registeredService to delete.public RegisteredService findServiceBy(Service service)
This preserves default CAS behavior.
findServiceBy in interface ServicesManagerservice - the service to match with.public RegisteredService findServiceBy(long id)
ServicesManagerfindServiceBy in interface ServicesManagerid - the id to match with.protected TreeSet<RegisteredService> convertToTreeSet()
public Collection<RegisteredService> getAllServices()
ServicesManagergetAllServices in interface ServicesManagerpublic boolean matchesExistingService(Service service)
ServicesManagermatchesExistingService in interface ServicesManagerservice - the service to check.@Transactional(readOnly=false) public RegisteredService save(RegisteredService registeredService)
ServicesManagersave in interface ServicesManagerregisteredService - the RegisteredService to update or add.public void reload()
ReloadableServicesManagerreload in interface ReloadableServicesManagerCopyright © 2004-2014 Jasig. All Rights Reserved.