-
- All Implemented Interfaces:
public final class VendorKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanhasEssentialPurposesOnly(Vendor $self)Check if a vendor has only essential purposes associated to it. final static BooleanhasNoConsentOrLIPurposes(Vendor $self)Check if a vendor has not any consent or LI purposes associated to it. final static BooleanhasAnyDataProcessing(Vendor $self)Check if specified vendor is associated to any data processing purpose, be it consent, legitimate interest, special purpose, feature or special feature. final static BooleanisLegitimateInterestOnly(Vendor $self)Whether the vendor has Legitimate Interest but not Consent purposes linked to it. final static UnitmergeWithDidomiVendor(Vendor $self, Vendor didomiVendor)Set info from Didomi to a IAB vendor final static UnitremoveUnavailablePurposesFromVendor(Vendor $self, Map<String, Purpose> availablePurposes)Modify the vendor purposes and LI purposes lists to remove purposes not available in configuration final static BooleanshouldDisplayCookieSection(Vendor $self)Whether the specified vendor should have a Cookie section final static BooleanshouldDisplayDeviceStorageSection(Vendor $self)Whether the specified vendor should have a Device storage section final static UnitupdateDeviceStorageDisclosures(Vendor $self, DeviceStorageDisclosures disclosures)Set Device Storage Disclosures for vendor final static Set<String>getIds(Collection<Vendor> $self)Get IDs from a list of Vendor final static BooleancontainsVendorWithIdOrIabId(Collection<Vendor> $self, String id)Check if a vendor with specified id or iab id is in the set final static BooleancontainsVendorWithIdOrIabId(Map<String, Vendor> $self, String id)Check if a vendor with specified id or iab id is in the map final static VendorgetVendorByIdOrIabId(Collection<Vendor> $self, String id)Retrieve a vendor with specified id as vendor id or iab id final static VendorgetVendorByIdOrIabId(Map<String, Vendor> $self, String id)Retrieve a vendor with specified id as vendor id or iab id final static Map<String, Vendor>mergeWithDidomiVendors(Map<String, Vendor> $self, Map<String, Purpose> availablePurposes, Collection<Vendor> didomiVendors)Merge the Didomi vendors with the vendors list, merging them with corresponding IAB vendors if they contain a IAB2 namespaces value -
-
Method Detail
-
hasEssentialPurposesOnly
final static Boolean hasEssentialPurposesOnly(Vendor $self)
Check if a vendor has only essential purposes associated to it.
-
hasNoConsentOrLIPurposes
final static Boolean hasNoConsentOrLIPurposes(Vendor $self)
Check if a vendor has not any consent or LI purposes associated to it.
-
hasAnyDataProcessing
final static Boolean hasAnyDataProcessing(Vendor $self)
Check if specified vendor is associated to any data processing purpose, be it consent, legitimate interest, special purpose, feature or special feature.
-
isLegitimateInterestOnly
final static Boolean isLegitimateInterestOnly(Vendor $self)
Whether the vendor has Legitimate Interest but not Consent purposes linked to it.
-
mergeWithDidomiVendor
final static Unit mergeWithDidomiVendor(Vendor $self, Vendor didomiVendor)
Set info from Didomi to a IAB vendor
- Parameters:
didomiVendor- Didomi vendor to merge
-
removeUnavailablePurposesFromVendor
final static Unit removeUnavailablePurposesFromVendor(Vendor $self, Map<String, Purpose> availablePurposes)
Modify the vendor purposes and LI purposes lists to remove purposes not available in configuration
- Parameters:
availablePurposes- all the available purposes in configuration
-
shouldDisplayCookieSection
final static Boolean shouldDisplayCookieSection(Vendor $self)
Whether the specified vendor should have a Cookie section
-
shouldDisplayDeviceStorageSection
final static Boolean shouldDisplayDeviceStorageSection(Vendor $self)
Whether the specified vendor should have a Device storage section
-
updateDeviceStorageDisclosures
final static Unit updateDeviceStorageDisclosures(Vendor $self, DeviceStorageDisclosures disclosures)
Set Device Storage Disclosures for vendor
- Parameters:
disclosures- DeviceStorageDisclosures to add
-
getIds
final static Set<String> getIds(Collection<Vendor> $self)
Get IDs from a list of Vendor
-
containsVendorWithIdOrIabId
final static Boolean containsVendorWithIdOrIabId(Collection<Vendor> $self, String id)
Check if a vendor with specified id or iab id is in the set
- Parameters:
id- requested id
-
containsVendorWithIdOrIabId
final static Boolean containsVendorWithIdOrIabId(Map<String, Vendor> $self, String id)
Check if a vendor with specified id or iab id is in the map
- Parameters:
id- requested id
-
getVendorByIdOrIabId
final static Vendor getVendorByIdOrIabId(Collection<Vendor> $self, String id)
Retrieve a vendor with specified id as vendor id or iab id
- Parameters:
id- requested id
-
getVendorByIdOrIabId
final static Vendor getVendorByIdOrIabId(Map<String, Vendor> $self, String id)
Retrieve a vendor with specified id as vendor id or iab id
- Parameters:
id- requested id
-
mergeWithDidomiVendors
final static Map<String, Vendor> mergeWithDidomiVendors(Map<String, Vendor> $self, Map<String, Purpose> availablePurposes, Collection<Vendor> didomiVendors)
Merge the Didomi vendors with the vendors list, merging them with corresponding IAB vendors if they contain a IAB2 namespaces value
- Parameters:
availablePurposes- list of available purposes to filter vendor purposesdidomiVendors- list of vendors to add to the list
-
-
-
-