Package org.ametys.core.user.status
Enum Class PersonalDataPolicy.AnonymizationResult
java.lang.Object
java.lang.Enum<PersonalDataPolicy.AnonymizationResult>
org.ametys.core.user.status.PersonalDataPolicy.AnonymizationResult
- All Implemented Interfaces:
Serializable
,Comparable<PersonalDataPolicy.AnonymizationResult>
,java.lang.constant.Constable
- Enclosing interface:
PersonalDataPolicy
public static enum PersonalDataPolicy.AnonymizationResult
extends Enum<PersonalDataPolicy.AnonymizationResult>
The result of a policy processing
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo data related to the user are stored according to this policyData are present for the user, and some were removed, but there are still data regarding this identity that needs to be stored according to the policyAll remaining data related to the user have been removed according to the policy.Data are present for the user but its too early to be removed according to the policy -
Method Summary
Modifier and TypeMethodDescriptionMerge several anonymization results to keep only the most importantmerge
(PersonalDataPolicy.AnonymizationResult... results) Merge several anonymization results to keep only the most importantReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOO_EARLY
Data are present for the user but its too early to be removed according to the policy -
PARTIALLY_PROCESSED
Data are present for the user, and some were removed, but there are still data regarding this identity that needs to be stored according to the policy -
PROCESSED
All remaining data related to the user have been removed according to the policy. All future processing of this policy should now returnNO_DATA
. -
NO_DATA
No data related to the user are stored according to this policy
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
merge
public static PersonalDataPolicy.AnonymizationResult merge(Collection<PersonalDataPolicy.AnonymizationResult> results) Merge several anonymization results to keep only the most important- Parameters:
results
- The anonymization results to merge. Cannot be null but can be empty.- Returns:
- The most important anonymization result
-
merge
public static PersonalDataPolicy.AnonymizationResult merge(PersonalDataPolicy.AnonymizationResult... results) Merge several anonymization results to keep only the most important- Parameters:
results
- The anonymization results to merge. Cannot be null but can be empty.- Returns:
- The most important anonymization result
-