Package com.day.cq.replication
Enum ReplicationActionType
- java.lang.Object
-
- java.lang.Enum<ReplicationActionType>
-
- com.day.cq.replication.ReplicationActionType
-
- All Implemented Interfaces:
Serializable
,Comparable<ReplicationActionType>
public enum ReplicationActionType extends Enum<ReplicationActionType>
The type of the replication action.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVATE
Content is activatedDEACTIVATE
Content is deactivatedDELETE
Content is deletedINTERNAL_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(String n)
Creates an action type for the given name.String
getName()
Returns the human readable type name of this type.static ReplicationActionType
valueOf(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.
-
-
-
Enum Constant Detail
-
ACTIVATE
public static final ReplicationActionType ACTIVATE
Content is activated
-
DEACTIVATE
public static final ReplicationActionType DEACTIVATE
Content is deactivated
-
DELETE
public static final ReplicationActionType DELETE
Content is deleted
-
TEST
public static final ReplicationActionType TEST
Test replication
-
REVERSE
@Deprecated public static final ReplicationActionType REVERSE
Deprecated.since 5.5. useINTERNAL_POLL
instead.Content is polled by reverse replication. Only used internally.
-
INTERNAL_POLL
public static final ReplicationActionType INTERNAL_POLL
Content is polled by reverse replication. Only used internally.- Since:
- 5.5
-
-
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(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
-
getName
public String getName()
Returns the human readable type name of this type.- Returns:
- the name
-
fromName
public static ReplicationActionType fromName(String n)
Creates an action type for the given name. if the name cannot be mapped to a enum type or if it'snull
,null
is returned.- Parameters:
n
- the name- Returns:
- the type or
null
-
-