Enum Class SubscribersDAO.UnsubscribeOrigin
java.lang.Object
java.lang.Enum<SubscribersDAO.UnsubscribeOrigin>
org.ametys.plugins.newsletter.daos.SubscribersDAO.UnsubscribeOrigin
- All Implemented Interfaces:
Serializable
,Comparable<SubscribersDAO.UnsubscribeOrigin>
,java.lang.constant.Constable
- Enclosing class:
SubscribersDAO
Origin of the unsubscription
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionan administrator of the newsletter unsubscribed the subscribera data policy removed the subscriptionthe subscriber to action to unsubscribe -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SubscribersDAO.UnsubscribeOrigin[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBSCRIBER
the subscriber to action to unsubscribe -
ADMINISTRATOR
an administrator of the newsletter unsubscribed the subscriber -
DATAPOLICY
a data policy removed the subscription
-
-
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
-