Class 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
    Since:
    6.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      CassandraServiceRegistry​(org.apereo.cas.cassandra.CassandraSessionFactory cassandraSessionFactory, org.apereo.cas.configuration.model.support.cassandra.serviceregistry.CassandraServiceRegistryProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, java.util.Collection<org.apereo.cas.services.ServiceRegistryListener> serviceRegistryListeners)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(org.apereo.cas.services.RegisteredService registeredService)  
      void destroy()  
      org.apereo.cas.services.RegisteredService findServiceById​(long id)  
      java.util.Collection<org.apereo.cas.services.RegisteredService> load()  
      org.apereo.cas.services.RegisteredService save​(org.apereo.cas.services.RegisteredService rs)  
      long size()  
      • Methods inherited from class org.apereo.cas.services.AbstractServiceRegistry

        getApplicationContext, getServiceRegistryListeners, invokeServiceRegistryListenerPostLoad, invokeServiceRegistryListenerPreSave, publishEvent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.services.ServiceRegistry

        findServiceBy, findServiceByExactServiceId, findServiceByExactServiceName, findServiceByExactServiceName, findServiceById, findServicePredicate, getName, getServicesStream
    • Constructor Detail

      • CassandraServiceRegistry

        public CassandraServiceRegistry​(org.apereo.cas.cassandra.CassandraSessionFactory cassandraSessionFactory,
                                        org.apereo.cas.configuration.model.support.cassandra.serviceregistry.CassandraServiceRegistryProperties properties,
                                        org.springframework.context.ConfigurableApplicationContext applicationContext,
                                        java.util.Collection<org.apereo.cas.services.ServiceRegistryListener> serviceRegistryListeners)
    • Method Detail

      • save

        public org.apereo.cas.services.RegisteredService save​(org.apereo.cas.services.RegisteredService rs)
        Specified by:
        save in interface org.apereo.cas.services.ServiceRegistry
      • delete

        public boolean delete​(org.apereo.cas.services.RegisteredService registeredService)
        Specified by:
        delete in interface org.apereo.cas.services.ServiceRegistry
      • size

        public long size()
        Specified by:
        size in interface org.apereo.cas.services.ServiceRegistry
      • load

        public java.util.Collection<org.apereo.cas.services.RegisteredService> load()
        Specified by:
        load in interface org.apereo.cas.services.ServiceRegistry
      • findServiceById

        public org.apereo.cas.services.RegisteredService findServiceById​(long id)
        Specified by:
        findServiceById in interface org.apereo.cas.services.ServiceRegistry
      • destroy

        public void destroy()
                     throws java.lang.Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        java.lang.Exception