-
- All Implemented Interfaces:
public final class PurposeKt
-
-
Method Summary
Modifier and Type Method Description final static Set<String>getIds(Collection<Purpose> $self)Get IDs from a list of purposes final static BooleancontainsById(Collection<Purpose> $self, Purpose purpose)Check if list contains a purpose with given id final static BooleanremoveById(Collection<Purpose> $self, Purpose purpose)Remove purpose with a specific id final static UnitsortByName(List<Purpose> $self)Sort a purpose list by translated name final static Set<Purpose>injectRequiredSpecialFeatures(Collection<Purpose> $self, Map<String, Purpose> availablePurposes, Vendor vendor)Inject required Special Features as if they were purposes. final static Map<String, Purpose>injectSpecialFeatures(Map<String, Purpose> $self, Collection<SpecialFeature> specialFeatures)Inject special features into dictionary of purposes. -
-
Method Detail
-
getIds
final static Set<String> getIds(Collection<Purpose> $self)
Get IDs from a list of purposes
-
containsById
final static Boolean containsById(Collection<Purpose> $self, Purpose purpose)
Check if list contains a purpose with given id
-
removeById
final static Boolean removeById(Collection<Purpose> $self, Purpose purpose)
Remove purpose with a specific id
-
sortByName
final static Unit sortByName(List<Purpose> $self)
Sort a purpose list by translated name
-
injectRequiredSpecialFeatures
final static Set<Purpose> injectRequiredSpecialFeatures(Collection<Purpose> $self, Map<String, Purpose> availablePurposes, Vendor vendor)
Inject required Special Features as if they were purposes. We mark special features as Consent - they are considered as purposes on our side (except when displayed) but everything else should work as if they were a purpose with legal absis consent.
- Parameters:
availablePurposes- available purposesvendor- vendor being mapped.
-
injectSpecialFeatures
final static Map<String, Purpose> injectSpecialFeatures(Map<String, Purpose> $self, Collection<SpecialFeature> specialFeatures)
Inject special features into dictionary of purposes.
- Parameters:
specialFeatures- to be injected
-
-
-
-