Class CassandraServiceRegistry
java.lang.Object
org.apereo.cas.services.AbstractServiceRegistry
org.apereo.cas.services.cassandra.CassandraServiceRegistry
- All Implemented Interfaces:
org.apereo.cas.services.ServiceRegistry,org.springframework.beans.factory.DisposableBean
public class CassandraServiceRegistry
extends org.apereo.cas.services.AbstractServiceRegistry
implements org.springframework.beans.factory.DisposableBean
This is
CassandraServiceRegistry.- Since:
- 6.1.0
-
Field Summary
Fields inherited from interface org.apereo.cas.services.ServiceRegistry
BEAN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionCassandraServiceRegistry(org.apereo.cas.cassandra.CassandraSessionFactory cassandraSessionFactory, org.apereo.cas.configuration.model.support.cassandra.serviceregistry.CassandraServiceRegistryProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, Collection<org.apereo.cas.services.ServiceRegistryListener> serviceRegistryListeners) -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(org.apereo.cas.services.RegisteredService registeredService) voidvoiddestroy()org.apereo.cas.services.RegisteredServicefindServiceById(long id) Collection<org.apereo.cas.services.RegisteredService>load()org.apereo.cas.services.RegisteredServicesave(org.apereo.cas.services.RegisteredService rs) longsize()Methods inherited from class org.apereo.cas.services.AbstractServiceRegistry
getApplicationContext, getServiceRegistryListeners, invokeServiceRegistryListenerPostLoad, invokeServiceRegistryListenerPreSave, publishEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.services.ServiceRegistry
findServiceBy, findServiceByExactServiceId, findServiceByExactServiceName, findServiceByExactServiceName, findServiceById, findServicePredicate, getName, getServicesStream, save, save
-
Constructor Details
-
CassandraServiceRegistry
public CassandraServiceRegistry(org.apereo.cas.cassandra.CassandraSessionFactory cassandraSessionFactory, org.apereo.cas.configuration.model.support.cassandra.serviceregistry.CassandraServiceRegistryProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, Collection<org.apereo.cas.services.ServiceRegistryListener> serviceRegistryListeners)
-
-
Method Details
-
save
public org.apereo.cas.services.RegisteredService save(org.apereo.cas.services.RegisteredService rs) - Specified by:
savein interfaceorg.apereo.cas.services.ServiceRegistry
-
delete
public boolean delete(org.apereo.cas.services.RegisteredService registeredService) - Specified by:
deletein interfaceorg.apereo.cas.services.ServiceRegistry
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceorg.apereo.cas.services.ServiceRegistry
-
size
public long size()- Specified by:
sizein interfaceorg.apereo.cas.services.ServiceRegistry
-
load
- Specified by:
loadin interfaceorg.apereo.cas.services.ServiceRegistry
-
findServiceById
public org.apereo.cas.services.RegisteredService findServiceById(long id) - Specified by:
findServiceByIdin interfaceorg.apereo.cas.services.ServiceRegistry
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-