Class VendorRepository
-
- All Implemented Interfaces:
public final class VendorRepositoryPurposes and vendors repository This class manages the purposes and vendors loaded by the SDK
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description VendorRepository(ConfigurationRepository configurationRepository, LanguagesHelper languagesHelper, PurposesTranslationsRepository purposesTranslationsRepository)
-
Method Summary
-
-
Constructor Detail
-
VendorRepository
VendorRepository(ConfigurationRepository configurationRepository, LanguagesHelper languagesHelper, PurposesTranslationsRepository purposesTranslationsRepository)
-
-
Method Detail
-
getPurposes
final Map<String, InternalPurpose> getPurposes()
All purposes defined in the config
-
getVendors
final Map<String, InternalVendor> getVendors()
All vendors defined in the config
-
getPublisherRestrictions
final List<PublisherRestriction> getPublisherRestrictions()
The list of publisher restrictions
-
getRequiredVendors
final Set<InternalVendor> getRequiredVendors()
Filtered vendors list to keep only vendors with associated data processing
-
getRequiredPurposes
final Set<InternalPurpose> getRequiredPurposes()
The required purposes from the config
-
getRequiredFeatures
final Set<Feature> getRequiredFeatures()
-
getRequiredSpecialPurposes
final Set<SpecialPurpose> getRequiredSpecialPurposes()
-
getRequiredAdditionalDataProcessing
final Set<DataProcessing> getRequiredAdditionalDataProcessing()
-
getSpiCategories
final List<PurposeCategory> getSpiCategories()
-
getRequiredPurposeIds
final Set<String> getRequiredPurposeIds()
-
getRequiredPurposesConsent
final Set<InternalPurpose> getRequiredPurposesConsent()
-
getRequiredPurposesConsentIds
final Set<String> getRequiredPurposesConsentIds()
-
getRequiredPurposesLegInt
final Set<InternalPurpose> getRequiredPurposesLegInt()
-
getRequiredPurposeLegIntIds
final Set<String> getRequiredPurposeLegIntIds()
-
getPurposeCategories
final List<PurposeCategory> getPurposeCategories()
-
getRequiredVendorsIds
final Set<String> getRequiredVendorsIds()
-
getRequiredVendorsConsent
final Set<InternalVendor> getRequiredVendorsConsent()
-
getRequiredVendorConsentIds
final Set<String> getRequiredVendorConsentIds()
-
getRequiredVendorsLegInt
final Set<InternalVendor> getRequiredVendorsLegInt()
-
getRequiredVendorLegIntIds
final Set<String> getRequiredVendorLegIntIds()
-
getVendorIDsWithEssentialPurposesOnly
final Set<String> getVendorIDsWithEssentialPurposesOnly()
-
getVendorIDsWithNoConsentNorLIPurposes
final Set<String> getVendorIDsWithNoConsentNorLIPurposes()
-
getRequiredIds
final RequiredIds getRequiredIds()
Required vendor and purpose Ids.
-
getTotalVendorCount
final Integer getTotalVendorCount()
The count of all vendors
-
getIabVendorCount
final Integer getIabVendorCount()
The count of IAB vendors
-
getNonIabVendorCount
final Integer getNonIabVendorCount()
The count of non-IAB vendors
-
getFeature
final Feature getFeature(String id)
Get a required feature by ID
- Parameters:
id- of search feature as String
-
getPurpose
final InternalPurpose getPurpose(String id)
Get a purpose by ID
-
getPurposeByIabId
final InternalPurpose getPurposeByIabId(String iabId)
Get purpose with specified IAB id
- Parameters:
iabId- requested IAB id as String
-
getPurposesByID
final Set<InternalPurpose> getPurposesByID(Set<String> purposeIds)
Get purposes from a set of purpose IDs
- Parameters:
purposeIds- as Set of String
-
getEssentialPurposes
final Set<InternalPurpose> getEssentialPurposes(InternalVendor vendor)
Get the essential purposes for a vendor
- Parameters:
vendor- the selected InternalVendor
-
getSpecialPurpose
final SpecialPurpose getSpecialPurpose(String id)
Get a required special purpose by ID
-
getVendor
final InternalVendor getVendor(String id)
Get a vendor by ID
- Parameters:
id- vendor id or corresponding IAB vendor id
-
getVendorsByID
final Set<InternalVendor> getVendorsByID(Set<String> vendorIds)
Get vendors from a set of vendor IDs
- Parameters:
vendorIds- as Set of String
-
getRequiredAdditionalDataProcessing
final Set<DataProcessing> getRequiredAdditionalDataProcessing(InternalVendor vendor)
Get the required additional data processing (special purposes and features) for a vendor
- Parameters:
vendor- the selected InternalVendor
-
getDataCategories
final Set<DataCategory> getDataCategories(InternalVendor vendor)
Get Data Categories for selected Vendor
- Parameters:
vendor- as InternalVendor
-
getDataCategory
final DataCategory getDataCategory(String id)
Get Data Category with specified id
- Parameters:
id- the requested data category id
-
updateEssentialPurposes
final Unit updateEssentialPurposes(Set<InternalPurpose> essentialPurposes)
Perform changes to handle essential purposes list. Purposes will be flagged as essential, and vendors using these purposes as consent or LI will be updated.
- Parameters:
essentialPurposes- List of essential purposes
-
updateTranslations
final Unit updateTranslations()
Update translations, for example after language was changed. Updates custom purposes and IAB purposes, special purposes, features, special features
-
-
-
-