Enum OperatorNotificationPropagation
- java.lang.Object
-
- java.lang.Enum<OperatorNotificationPropagation>
-
- org.cyclos.model.messaging.notifications.OperatorNotificationPropagation
-
- All Implemented Interfaces:
Serializable,Comparable<OperatorNotificationPropagation>
public enum OperatorNotificationPropagation extends Enum<OperatorNotificationPropagation>
The possible cases on how a notification is sent to a member and his operators
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_OPERATORSNotify to all operators and the memberCUSTOMA custom propagation.DESTINATION_ONLYNotify only the destination operator or memberOPERATOR_AND_OWNERNotify both the destination operator, the member and alias operators.OWNER_ONLYNotify only the member and alias operators, even if the destination is an operator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPropagateToRestricted()static OperatorNotificationPropagationvalueOf(String name)Returns the enum constant of this type with the specified name.static OperatorNotificationPropagation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OWNER_ONLY
public static final OperatorNotificationPropagation OWNER_ONLY
Notify only the member and alias operators, even if the destination is an operator
-
DESTINATION_ONLY
public static final OperatorNotificationPropagation DESTINATION_ONLY
Notify only the destination operator or member
-
OPERATOR_AND_OWNER
public static final OperatorNotificationPropagation OPERATOR_AND_OWNER
Notify both the destination operator, the member and alias operators. If the notification destination is the member, the alias operators are also notified.
-
ALL_OPERATORS
public static final OperatorNotificationPropagation ALL_OPERATORS
Notify to all operators and the member
-
CUSTOM
public static final OperatorNotificationPropagation CUSTOM
A custom propagation. Each notification type with this propagation must have a custom implementation registered.
-
-
Method Detail
-
values
public static OperatorNotificationPropagation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OperatorNotificationPropagation c : OperatorNotificationPropagation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorNotificationPropagation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
isPropagateToRestricted
public boolean isPropagateToRestricted()
-
-