Class RedisConsentRepository

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.consent.ConsentRepository

    public class RedisConsentRepository
    extends java.lang.Object
    implements org.apereo.cas.consent.ConsentRepository
    Since:
    6.1.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CAS_CONSENT_DECISION_PREFIX
      Redis key prefix.
      • Fields inherited from interface org.apereo.cas.consent.ConsentRepository

        BEAN_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteAll()  
      boolean deleteConsentDecision​(long decisionId, java.lang.String principal)  
      boolean deleteConsentDecisions​(java.lang.String principal)  
      org.apereo.cas.consent.ConsentDecision findConsentDecision​(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication)  
      java.util.Collection<? extends org.apereo.cas.consent.ConsentDecision> findConsentDecisions()  
      java.util.Collection<? extends org.apereo.cas.consent.ConsentDecision> findConsentDecisions​(java.lang.String principal)  
      org.apereo.cas.consent.ConsentDecision storeConsentDecision​(org.apereo.cas.consent.ConsentDecision decision)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CAS_CONSENT_DECISION_PREFIX

        public static final java.lang.String CAS_CONSENT_DECISION_PREFIX
        Redis key prefix.
    • Constructor Detail

      • RedisConsentRepository

        public RedisConsentRepository()
    • Method Detail

      • findConsentDecision

        public org.apereo.cas.consent.ConsentDecision findConsentDecision​(org.apereo.cas.authentication.principal.Service service,
                                                                          org.apereo.cas.services.RegisteredService registeredService,
                                                                          org.apereo.cas.authentication.Authentication authentication)
        Specified by:
        findConsentDecision in interface org.apereo.cas.consent.ConsentRepository
      • findConsentDecisions

        public java.util.Collection<? extends org.apereo.cas.consent.ConsentDecision> findConsentDecisions​(java.lang.String principal)
        Specified by:
        findConsentDecisions in interface org.apereo.cas.consent.ConsentRepository
      • findConsentDecisions

        public java.util.Collection<? extends org.apereo.cas.consent.ConsentDecision> findConsentDecisions()
        Specified by:
        findConsentDecisions in interface org.apereo.cas.consent.ConsentRepository
      • storeConsentDecision

        public org.apereo.cas.consent.ConsentDecision storeConsentDecision​(org.apereo.cas.consent.ConsentDecision decision)
        Specified by:
        storeConsentDecision in interface org.apereo.cas.consent.ConsentRepository
      • deleteConsentDecision

        public boolean deleteConsentDecision​(long decisionId,
                                             java.lang.String principal)
        Specified by:
        deleteConsentDecision in interface org.apereo.cas.consent.ConsentRepository
      • deleteAll

        public void deleteAll()
        Specified by:
        deleteAll in interface org.apereo.cas.consent.ConsentRepository
      • deleteConsentDecisions

        public boolean deleteConsentDecisions​(java.lang.String principal)
        Specified by:
        deleteConsentDecisions in interface org.apereo.cas.consent.ConsentRepository