Enum ReplicationActionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ReplicationActionType>

    public enum ReplicationActionType
    extends java.lang.Enum<ReplicationActionType>
    The type of the replication action.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACTIVATE
      Content is activated
      DEACTIVATE
      Content is deactivated
      DELETE
      Content is deleted
      INTERNAL_POLL
      Content is polled by reverse replication.
      REVERSE
      Deprecated.
      since 5.5.
      TEST
      Test replication
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ReplicationActionType fromName​(java.lang.String n)
      Creates an action type for the given name.
      java.lang.String getName()
      Returns the human readable type name of this type.
      static ReplicationActionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ReplicationActionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static ReplicationActionType[] 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 (ReplicationActionType c : ReplicationActionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReplicationActionType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Returns the human readable type name of this type.
        Returns:
        the name
      • fromName

        public static ReplicationActionType fromName​(java.lang.String n)
        Creates an action type for the given name. if the name cannot be mapped to a enum type or if it's null, null is returned.
        Parameters:
        n - the name
        Returns:
        the type or null