Class InternalVendorKt
-
- All Implemented Interfaces:
public final class InternalVendorKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanhasEssentialPurposesOnly(InternalVendor $self)Check if a vendor has only essential purposes associated to it. final static BooleanhasNoConsentOrLIPurposes(InternalVendor $self)Check if a vendor has not any consent or LI purposes associated to it. final static BooleanhasAnyDataProcessing(InternalVendor $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(InternalVendor $self)Whether the vendor has Legitimate Interest but not Consent purposes linked to it. final static BooleanisDidomiVendor(InternalVendor $self)Whether the vendor is defined by Didomi final static BooleanisLegitimateInterest(InternalVendor $self)Whether the vendor has Legitimate Interest purposes linked to it final static BooleanisConsent(InternalVendor $self)Whether the vendor has Consent purposes linked to it final static UnitmergeWithDidomiVendor(InternalVendor $self, InternalVendor didomiVendor)Set info from Didomi to a IAB vendor final static UnitremoveUnavailablePurposesFromVendor(InternalVendor $self, Map<String, InternalPurpose> availablePurposes)Modify the vendor purposes and LI purposes lists to remove purposes not available in configuration final static BooleanshouldDisplayCookieSection(InternalVendor $self)Whether the specified vendor should have a Cookie section final static BooleanshouldDisplayDeviceStorageSection(InternalVendor $self)Whether the specified vendor should have a Device storage section final static UnitupdateDeviceStorageDisclosures(InternalVendor $self, DeviceStorageDisclosures disclosures)Set Device Storage Disclosures for vendor final static BooleanhasPurpose(InternalVendor $self, String purposeId)Check if Vendor uses a Purpose final static BooleanhasSpecialFeature(InternalVendor $self, String purposeIabId)Vendor contains Purpose as Special Feature final static Vendor.UrlgetUrls(InternalVendor $self, String languages)Find matching Url from languages list final static VendortoVendor(InternalVendor $self)Create Vendor object to return in public io.didomi.sdk.Didomi methods final static Set<String>getVendorIds(Collection<InternalVendor> $self)Get IDs from a list of Vendor final static InternalVendorgetVendorByIdOrIabId(Collection<InternalVendor> $self, String id)Retrieve a vendor with specified id as vendor id or iab id final static InternalVendorgetVendorByIdOrIabId(Map<String, InternalVendor> $self, String id)Retrieve a vendor with specified id as vendor id or iab id final static List<InternalVendor>sortedByName(Collection<InternalVendor> $self)Sort Vendor collection by name ASC final static BooleancontainsVendorWithIdOrIabId(Map<String, InternalVendor> $self, String id)Check if a vendor with specified id or iab id is in the map final static Map<String, InternalVendor>mergeWithDidomiVendors(Map<String, InternalVendor> $self, Map<String, InternalPurpose> availablePurposes, Collection<InternalVendor> 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(InternalVendor $self)
Check if a vendor has only essential purposes associated to it.
-
hasNoConsentOrLIPurposes
final static Boolean hasNoConsentOrLIPurposes(InternalVendor $self)
Check if a vendor has not any consent or LI purposes associated to it.
-
hasAnyDataProcessing
final static Boolean hasAnyDataProcessing(InternalVendor $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(InternalVendor $self)
Whether the vendor has Legitimate Interest but not Consent purposes linked to it.
-
isDidomiVendor
final static Boolean isDidomiVendor(InternalVendor $self)
Whether the vendor is defined by Didomi
-
isLegitimateInterest
final static Boolean isLegitimateInterest(InternalVendor $self)
Whether the vendor has Legitimate Interest purposes linked to it
-
isConsent
final static Boolean isConsent(InternalVendor $self)
Whether the vendor has Consent purposes linked to it
-
mergeWithDidomiVendor
final static Unit mergeWithDidomiVendor(InternalVendor $self, InternalVendor didomiVendor)
Set info from Didomi to a IAB vendor
- Parameters:
didomiVendor- Didomi vendor to merge
-
removeUnavailablePurposesFromVendor
final static Unit removeUnavailablePurposesFromVendor(InternalVendor $self, Map<String, InternalPurpose> 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(InternalVendor $self)
Whether the specified vendor should have a Cookie section
-
shouldDisplayDeviceStorageSection
final static Boolean shouldDisplayDeviceStorageSection(InternalVendor $self)
Whether the specified vendor should have a Device storage section
-
updateDeviceStorageDisclosures
final static Unit updateDeviceStorageDisclosures(InternalVendor $self, DeviceStorageDisclosures disclosures)
Set Device Storage Disclosures for vendor
- Parameters:
disclosures- DeviceStorageDisclosures to add
-
hasPurpose
final static Boolean hasPurpose(InternalVendor $self, String purposeId)
Check if Vendor uses a Purpose
- Parameters:
purposeId- the Purpose id as String
-
hasSpecialFeature
final static Boolean hasSpecialFeature(InternalVendor $self, String purposeIabId)
Vendor contains Purpose as Special Feature
- Parameters:
purposeIabId- the selected Purpose IAB ID as String
-
getUrls
final static Vendor.Url getUrls(InternalVendor $self, String languages)
Find matching Url from languages list
- Parameters:
languages- the languages list to search
-
toVendor
final static Vendor toVendor(InternalVendor $self)
Create Vendor object to return in public io.didomi.sdk.Didomi methods
-
getVendorIds
final static Set<String> getVendorIds(Collection<InternalVendor> $self)
Get IDs from a list of Vendor
-
getVendorByIdOrIabId
final static InternalVendor getVendorByIdOrIabId(Collection<InternalVendor> $self, String id)
Retrieve a vendor with specified id as vendor id or iab id
- Parameters:
id- requested id
-
getVendorByIdOrIabId
final static InternalVendor getVendorByIdOrIabId(Map<String, InternalVendor> $self, String id)
Retrieve a vendor with specified id as vendor id or iab id
- Parameters:
id- requested id
-
sortedByName
final static List<InternalVendor> sortedByName(Collection<InternalVendor> $self)
Sort Vendor collection by name ASC
-
containsVendorWithIdOrIabId
final static Boolean containsVendorWithIdOrIabId(Map<String, InternalVendor> $self, String id)
Check if a vendor with specified id or iab id is in the map
- Parameters:
id- requested id
-
mergeWithDidomiVendors
final static Map<String, InternalVendor> mergeWithDidomiVendors(Map<String, InternalVendor> $self, Map<String, InternalPurpose> availablePurposes, Collection<InternalVendor> 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
-
-
-
-