Class ConsentTokenKt
-
- All Implemented Interfaces:
public final class ConsentTokenKt
-
-
Method Summary
Modifier and Type Method Description final static Set<String>getEnabledPurposeIds(ConsentToken $self)Get enabled purpose IDs final static Set<String>getDisabledPurposeIds(ConsentToken $self)Get the list of disabled purpose IDs final static Set<String>getEnabledLegitimatePurposeIds(ConsentToken $self)Get the list of disabled legitimate interest purpose IDs final static Set<String>getDisabledLegitimatePurposeIds(ConsentToken $self)Get the list of disabled legitimate interest purpose IDs final static ConsentStatusgetPurposeStatus(ConsentToken $self, String id)Check if a purpose is enabled from a purpose ID final static ConsentStatusgetPurposeStatus(ConsentToken $self, InternalPurpose purpose)Check if a purpose is enabled from a purpose instance final static ConsentStatusgetPurposeLegitimateStatus(ConsentToken $self, String id)Check if a purpose legitimate interest is enabled from a purpose ID final static Set<String>getEnabledVendorIds(ConsentToken $self, String namespace)Get enabled vendor IDs for a specific namespace final static Set<String>getEnabledVendorIds(ConsentToken $self)Get enabled vendor IDs final static Set<String>getDisabledVendorIds(ConsentToken $self)Get the list of disabled vendor IDs final static Set<String>getEnabledLegitimateVendorIds(ConsentToken $self)Get the list of enabled legitimate interest vendor IDs final static Set<String>getDisabledLegitimateVendorIds(ConsentToken $self)Get the list of disabled legitimate interest vendor IDs final static ConsentStatusgetVendorConsentStatus(ConsentToken $self, String id)Check if a vendor is enabled from a vendor ID final static ConsentStatusgetVendorConsentStatus(ConsentToken $self, InternalVendor vendor)Check if a vendor is enabled from a vendor instance final static ConsentStatusgetVendorLegitimateStatus(ConsentToken $self, String id)Check if a vendor legitimate interest is enabled from a vendor ID final static ConsentStatusgetVendorLegitimateStatus(ConsentToken $self, InternalVendor vendor)Check if a vendor legitimate interest is enabled from a vendor instance final static BooleanisConsentDenied(ConsentToken $self)Check if consents are denied (purposes and vendors) final static BooleanhasAnyConsentOrLIDenied(ConsentToken $self)Check if any consent or LI choices are denied (purposes and vendors) final static BooleannoLegitimatePurposesDefined(ConsentToken $self)Check if not legitimate purposes has been defined final static BooleannoPersonalDataDefined(ConsentToken $self)Check if no personal data has been defined final static BooleanhasAnyStatus(ConsentToken $self)Check if User already expressed consent, ie if any purpose or LI choice is defined final static BooleansetUserConsentStatus(ConsentToken $self, Set<InternalPurpose> enabledPurposes, Set<InternalPurpose> disabledPurposes, Set<InternalPurpose> enabledLegitimatePurposes, Set<InternalPurpose> disabledLegitimatePurposes, Set<InternalVendor> enabledVendors, Set<InternalVendor> disabledVendors, Set<InternalVendor> enabledLegIntVendors, Set<InternalVendor> disabledLegIntVendors)Update the user consent status for purposes and vendors final static ConsentTokendeepCopy(ConsentToken $self)Create a copy of the ConsentToken making sure all the maps are copied and not just referenced. -
-
Method Detail
-
getEnabledPurposeIds
final static Set<String> getEnabledPurposeIds(ConsentToken $self)
Get enabled purpose IDs
-
getDisabledPurposeIds
final static Set<String> getDisabledPurposeIds(ConsentToken $self)
Get the list of disabled purpose IDs
-
getEnabledLegitimatePurposeIds
final static Set<String> getEnabledLegitimatePurposeIds(ConsentToken $self)
Get the list of disabled legitimate interest purpose IDs
-
getDisabledLegitimatePurposeIds
final static Set<String> getDisabledLegitimatePurposeIds(ConsentToken $self)
Get the list of disabled legitimate interest purpose IDs
-
getPurposeStatus
final static ConsentStatus getPurposeStatus(ConsentToken $self, String id)
Check if a purpose is enabled from a purpose ID
-
getPurposeStatus
final static ConsentStatus getPurposeStatus(ConsentToken $self, InternalPurpose purpose)
Check if a purpose is enabled from a purpose instance
-
getPurposeLegitimateStatus
final static ConsentStatus getPurposeLegitimateStatus(ConsentToken $self, String id)
Check if a purpose legitimate interest is enabled from a purpose ID
-
getEnabledVendorIds
final static Set<String> getEnabledVendorIds(ConsentToken $self, String namespace)
Get enabled vendor IDs for a specific namespace
-
getEnabledVendorIds
final static Set<String> getEnabledVendorIds(ConsentToken $self)
Get enabled vendor IDs
-
getDisabledVendorIds
final static Set<String> getDisabledVendorIds(ConsentToken $self)
Get the list of disabled vendor IDs
-
getEnabledLegitimateVendorIds
final static Set<String> getEnabledLegitimateVendorIds(ConsentToken $self)
Get the list of enabled legitimate interest vendor IDs
-
getDisabledLegitimateVendorIds
final static Set<String> getDisabledLegitimateVendorIds(ConsentToken $self)
Get the list of disabled legitimate interest vendor IDs
-
getVendorConsentStatus
final static ConsentStatus getVendorConsentStatus(ConsentToken $self, String id)
Check if a vendor is enabled from a vendor ID
-
getVendorConsentStatus
final static ConsentStatus getVendorConsentStatus(ConsentToken $self, InternalVendor vendor)
Check if a vendor is enabled from a vendor instance
-
getVendorLegitimateStatus
final static ConsentStatus getVendorLegitimateStatus(ConsentToken $self, String id)
Check if a vendor legitimate interest is enabled from a vendor ID
-
getVendorLegitimateStatus
final static ConsentStatus getVendorLegitimateStatus(ConsentToken $self, InternalVendor vendor)
Check if a vendor legitimate interest is enabled from a vendor instance
-
isConsentDenied
final static Boolean isConsentDenied(ConsentToken $self)
Check if consents are denied (purposes and vendors)
-
hasAnyConsentOrLIDenied
final static Boolean hasAnyConsentOrLIDenied(ConsentToken $self)
Check if any consent or LI choices are denied (purposes and vendors)
-
noLegitimatePurposesDefined
final static Boolean noLegitimatePurposesDefined(ConsentToken $self)
Check if not legitimate purposes has been defined
-
noPersonalDataDefined
final static Boolean noPersonalDataDefined(ConsentToken $self)
Check if no personal data has been defined
-
hasAnyStatus
final static Boolean hasAnyStatus(ConsentToken $self)
Check if User already expressed consent, ie if any purpose or LI choice is defined
-
setUserConsentStatus
final static Boolean setUserConsentStatus(ConsentToken $self, Set<InternalPurpose> enabledPurposes, Set<InternalPurpose> disabledPurposes, Set<InternalPurpose> enabledLegitimatePurposes, Set<InternalPurpose> disabledLegitimatePurposes, Set<InternalVendor> enabledVendors, Set<InternalVendor> disabledVendors, Set<InternalVendor> enabledLegIntVendors, Set<InternalVendor> disabledLegIntVendors)
Update the user consent status for purposes and vendors
-
deepCopy
final static ConsentToken deepCopy(ConsentToken $self)
Create a copy of the ConsentToken making sure all the maps are copied and not just referenced.
-
-
-
-