Class PublisherRestriction
-
- All Implemented Interfaces:
public final class PublisherRestrictionModel for a publisher restriction
-
-
Field Summary
Fields Modifier and Type Field Description private final StringpurposeIdprivate final IntegerpurposeIabIdprivate final BooleanspecialFeatureprivate final RestrictionTyperestrictionTypeprivate Set<String>vendorIdsprivate Set<Integer>tcStringVendorIds
-
Method Summary
Modifier and Type Method Description final StringgetPurposeId()final IntegergetPurposeIabId()final BooleangetSpecialFeature()final RestrictionTypegetRestrictionType()final Set<String>getVendorIds()final UnitsetVendorIds(Set<String> vendorIds)final Set<Integer>getTcStringVendorIds()final UnitsetTcStringVendorIds(Set<Integer> tcStringVendorIds)-
-
Constructor Detail
-
PublisherRestriction
PublisherRestriction(String purposeId, Integer purposeIabId, Boolean specialFeature, RestrictionType restrictionType, Set<String> vendorIds, Set<Integer> tcStringVendorIds)
- Parameters:
purposeId- Id of the purpose used internally by DidomipurposeIabId- IAB id of the purpose, to be stored in the consent stringspecialFeature- Whether restriction target is a purpose of a special feature.restrictionType- Type of the restrictionvendorIds- Vendor ids to which restriction should be appliedtcStringVendorIds- Vendor ids to store in the consent string, which may differ from the vendor ids
-
-
Method Detail
-
getPurposeId
final String getPurposeId()
-
getPurposeIabId
final Integer getPurposeIabId()
-
getSpecialFeature
final Boolean getSpecialFeature()
-
getRestrictionType
final RestrictionType getRestrictionType()
-
getVendorIds
final Set<String> getVendorIds()
-
setVendorIds
final Unit setVendorIds(Set<String> vendorIds)
- Parameters:
vendorIds- Vendor ids to which restriction should be applied
-
getTcStringVendorIds
final Set<Integer> getTcStringVendorIds()
-
setTcStringVendorIds
final Unit setTcStringVendorIds(Set<Integer> tcStringVendorIds)
- Parameters:
tcStringVendorIds- Vendor ids to store in the consent string, which may differ from the vendor ids
-
-
-
-