Class InternalPurpose
-
- All Implemented Interfaces:
-
android.os.Parcelable,io.didomi.sdk.models.DataProcessing,io.didomi.sdk.models.Namespaceable
public final class InternalPurpose implements DataProcessing, Namespaceable
Model class for purposes
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringPERSONAL_DATA_TYPEprivate transient PurposeCategorycategoryprivate final Stringidprivate final StringiabIdprivate Stringnameprivate Stringdescriptionprivate StringdescriptionLegalprivate List<String>illustrationsprivate transient BooleanisConsentprivate transient BooleanisEssentialprivate transient BooleanisLegitimateInterestprivate transient BooleanisSpecialFeatureprivate final DataProcessingNamespacesnamespaces
-
Constructor Summary
Constructors Constructor Description InternalPurpose(String id, String iabId, String name, String description, String descriptionLegal, List<String> illustrations, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest, Boolean isSpecialFeature, String type, DataProcessingNamespaces namespaces, Boolean iabConsentRequired, Boolean iabLiRequired, Boolean isFirstPartyConsent, Boolean isFirstPartyLi)
-
Method Summary
Modifier and Type Method Description final PurposeCategorygetCategory()final UnitsetCategory(PurposeCategory category)StringgetId()Purpose id used internally by Didomi. StringgetIabId()Purpose id as defined by IAB. StringgetName()Purpose human-readable name or translation key. UnitsetName(@SerializedName(value = "name") String name)Purpose human-readable name or translation key. StringgetDescription()Purpose description. UnitsetDescription(@SerializedName(value = "description") String description)Purpose description. StringgetDescriptionLegal()Purpose legal description. UnitsetDescriptionLegal(@SerializedName(value = "descriptionLegal") String descriptionLegal)Purpose legal description. List<String>getIllustrations()Purpose illustrations. UnitsetIllustrations(@SerializedName(value = "illustrations") List<String> illustrations)Purpose illustrations. final BooleanisConsent()Whether the purpose is used as a consent based data processing. final UnitsetConsent(Boolean isConsent)Whether the purpose is used as a consent based data processing. final BooleanisEssential()Whether this is an essential purpose. final UnitsetEssential(Boolean isEssential)Whether this is an essential purpose. final BooleanisLegitimateInterest()Whether the purpose is used as a legitimate interest based data processing. final UnitsetLegitimateInterest(Boolean isLegitimateInterest)Whether the purpose is used as a legitimate interest based data processing. final BooleanisSpecialFeature()Whether this is a special feature displayed as a purpose. final UnitsetSpecialFeature(Boolean isSpecialFeature)Whether this is a special feature displayed as a purpose. DataProcessingNamespacesgetNamespaces()final BooleanisConsentNotEssential()Whether the purpose is used as a consent based data processing final BooleanisLegitimateInterestNotEssential()Whether the purpose is used as a legitimate interest based data processing final BooleanisLegitimateInterestOnly()Whether the purpose is used as legitimate interest legal base only. -
-
Constructor Detail
-
InternalPurpose
InternalPurpose(String id, String iabId, String name, String description, String descriptionLegal, List<String> illustrations, Boolean isConsent, Boolean isEssential, Boolean isLegitimateInterest, Boolean isSpecialFeature, String type, DataProcessingNamespaces namespaces, Boolean iabConsentRequired, Boolean iabLiRequired, Boolean isFirstPartyConsent, Boolean isFirstPartyLi)
-
-
Method Detail
-
getCategory
final PurposeCategory getCategory()
-
setCategory
final Unit setCategory(PurposeCategory category)
-
setName
Unit setName(@SerializedName(value = "name") String name)
Purpose human-readable name or translation key.
-
getDescription
String getDescription()
Purpose description.
-
setDescription
Unit setDescription(@SerializedName(value = "description") String description)
Purpose description.
-
getDescriptionLegal
String getDescriptionLegal()
Purpose legal description.
-
setDescriptionLegal
Unit setDescriptionLegal(@SerializedName(value = "descriptionLegal") String descriptionLegal)
Purpose legal description.
-
getIllustrations
List<String> getIllustrations()
Purpose illustrations.
-
setIllustrations
Unit setIllustrations(@SerializedName(value = "illustrations") List<String> illustrations)
Purpose illustrations.
-
setConsent
final Unit setConsent(Boolean isConsent)
Whether the purpose is used as a consent based data processing.
-
isEssential
final Boolean isEssential()
Whether this is an essential purpose.
-
setEssential
final Unit setEssential(Boolean isEssential)
Whether this is an essential purpose.
-
isLegitimateInterest
final Boolean isLegitimateInterest()
Whether the purpose is used as a legitimate interest based data processing.
-
setLegitimateInterest
final Unit setLegitimateInterest(Boolean isLegitimateInterest)
Whether the purpose is used as a legitimate interest based data processing.
-
isSpecialFeature
final Boolean isSpecialFeature()
Whether this is a special feature displayed as a purpose.
-
setSpecialFeature
final Unit setSpecialFeature(Boolean isSpecialFeature)
Whether this is a special feature displayed as a purpose.
-
getNamespaces
DataProcessingNamespaces getNamespaces()
-
isConsentNotEssential
final Boolean isConsentNotEssential()
Whether the purpose is used as a consent based data processing
- Returns:
true if is not essential and at least one required vendor requires this purpose for consent based data processing
-
isLegitimateInterestNotEssential
final Boolean isLegitimateInterestNotEssential()
Whether the purpose is used as a legitimate interest based data processing
- Returns:
true if is not essential and at least one required vendor requires this purpose for LI based data processing
-
isLegitimateInterestOnly
final Boolean isLegitimateInterestOnly()
Whether the purpose is used as legitimate interest legal base only.
- Returns:
true if is not essential and at least one required vendor requires this purpose for LI legal base and no required vendor requires this purpose for consent legal base.
-
-
-
-