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.apereo.cas.util.NamedObject, org.springframework.beans.factory.DisposableBean

public class CassandraServiceRegistry extends org.apereo.cas.services.AbstractServiceRegistry implements org.springframework.beans.factory.DisposableBean
Since:
6.1.0
  • Field Summary

    Fields inherited from interface org.apereo.cas.services.ServiceRegistry

    BEAN_NAME
  • 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, Collection<org.apereo.cas.services.ServiceRegistryListener> serviceRegistryListeners)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(org.apereo.cas.services.RegisteredService registeredService)
     
    void
     
    void
     
    org.apereo.cas.services.RegisteredService
    findServiceById(long id)
     
    Collection<org.apereo.cas.services.RegisteredService>
     
    org.apereo.cas.services.RegisteredService
    save(org.apereo.cas.services.RegisteredService rs)
     
    long
     
     

    Methods inherited from class org.apereo.cas.services.AbstractServiceRegistry

    getApplicationContext, getServiceRegistryListeners, publishEvent

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apereo.cas.util.NamedObject

    getName

    Methods inherited from interface org.apereo.cas.services.ServiceRegistry

    findServiceBy, findServiceByExactServiceId, findServiceByExactServiceName, findServiceByExactServiceName, findServiceById, findServicePredicate, 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:
      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
    • deleteAll

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

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

      public 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 Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object