Class WAConsentRepository

java.lang.Object
org.apache.syncope.wa.starter.consent.WAConsentRepository
All Implemented Interfaces:
Serializable, org.apereo.cas.consent.ConsentRepository

public class WAConsentRepository extends Object implements org.apereo.cas.consent.ConsentRepository
See Also:
  • Field Details

    • LOG

      protected static final Logger LOG
    • waRestClient

      protected final WARestClient waRestClient
  • Constructor Details

    • WAConsentRepository

      public WAConsentRepository(WARestClient waRestClient)
  • Method Details

    • toWAConsentDecision

      protected static WAConsentDecision toWAConsentDecision(org.apereo.cas.consent.ConsentDecision decision)
    • toConsentDecision

      protected static org.apereo.cas.consent.ConsentDecision toConsentDecision(String tenant, WAConsentDecision waConsentDecision)
    • 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 Collection<? extends org.apereo.cas.consent.ConsentDecision> findConsentDecisions(String principal)
      Specified by:
      findConsentDecisions in interface org.apereo.cas.consent.ConsentRepository
    • findConsentDecisions

      public 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) throws Throwable
      Specified by:
      storeConsentDecision in interface org.apereo.cas.consent.ConsentRepository
      Throws:
      Throwable
    • deleteConsentDecision

      public boolean deleteConsentDecision(long id, String principal) throws Throwable
      Specified by:
      deleteConsentDecision in interface org.apereo.cas.consent.ConsentRepository
      Throws:
      Throwable
    • deleteConsentDecisions

      public boolean deleteConsentDecisions(String principal) throws Throwable
      Specified by:
      deleteConsentDecisions in interface org.apereo.cas.consent.ConsentRepository
      Throws:
      Throwable
    • deleteAll

      public void deleteAll() throws Throwable
      Specified by:
      deleteAll in interface org.apereo.cas.consent.ConsentRepository
      Throws:
      Throwable