Package org.apereo.cas.consent
Interface ConsentRepository
-
- All Superinterfaces:
java.io.Serializable
public interface ConsentRepository extends java.io.SerializableThis isConsentRepository.- Since:
- 5.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeleteConsentDecision(long id, java.lang.String principal)Delete consent decision.ConsentDecisionfindConsentDecision(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication)Gets consent decision.java.util.Collection<? extends ConsentDecision>findConsentDecisions()Gets consent decisions.java.util.Collection<? extends ConsentDecision>findConsentDecisions(java.lang.String principal)Gets consent decision for a user.booleanstoreConsentDecision(ConsentDecision decision)Store consent decision.
-
-
-
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 serviceregisteredService- the registered serviceauthentication- 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 idprincipal- the principal- Returns:
- true / false
-
-