Interface ConsentRepository

  • All Superinterfaces:
    java.io.Serializable

    public interface ConsentRepository
    extends java.io.Serializable
    Since:
    5.1.0
    • Method Detail

      • findConsentDecision

        ConsentDecision findConsentDecision​(org.apereo.cas.authentication.principal.Service service,
                                            org.apereo.cas.services.RegisteredService registeredService,
                                            org.apereo.cas.authentication.Authentication authentication)
        Gets consent decision.
        Parameters:
        service - the service
        registeredService - the registered service
        authentication - the authentication
        Returns:
        the consent decision
      • findConsentDecisions

        java.util.Collection<? extends ConsentDecision> findConsentDecisions​(java.lang.String principal)
        Gets consent decision for a user.
        Parameters:
        principal - the principal
        Returns:
        the consent decision
      • findConsentDecisions

        java.util.Collection<? extends ConsentDecision> findConsentDecisions()
        Gets consent decisions.
        Returns:
        the consent decision
      • storeConsentDecision

        boolean storeConsentDecision​(ConsentDecision decision)
        Store consent decision.
        Parameters:
        decision - the decision
        Returns:
        true /false
      • deleteConsentDecision

        boolean deleteConsentDecision​(long id,
                                      java.lang.String principal)
        Delete consent decision.
        Parameters:
        id - the decision id
        principal - the principal
        Returns:
        true / false