Package org.alfresco.repo.copy
Enum CopyBehaviourCallback.ChildAssocCopyAction
- java.lang.Object
-
- java.lang.Enum<CopyBehaviourCallback.ChildAssocCopyAction>
-
- org.alfresco.repo.copy.CopyBehaviourCallback.ChildAssocCopyAction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CopyBehaviourCallback.ChildAssocCopyAction>
- Enclosing interface:
- CopyBehaviourCallback
public static enum CopyBehaviourCallback.ChildAssocCopyAction extends java.lang.Enum<CopyBehaviourCallback.ChildAssocCopyAction> implements java.lang.Comparable<CopyBehaviourCallback.ChildAssocCopyAction>
Description of how the copy process should traverse a child association. The order of this enum denotes the priority when mixing behaviour as well; that is to say that a 'forced recursion' will occur even if an 'ignore' is also provided by the registered behaviour callbacks.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COPY_ASSOCCopy the association only, keeping the existing child nodeCOPY_CHILDTraverse the child association and copy the child nodeIGNOREIgnore the child association
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CopyBehaviourCallback.ChildAssocCopyActionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CopyBehaviourCallback.ChildAssocCopyAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final CopyBehaviourCallback.ChildAssocCopyAction IGNORE
Ignore the child association
-
COPY_ASSOC
public static final CopyBehaviourCallback.ChildAssocCopyAction COPY_ASSOC
Copy the association only, keeping the existing child node
-
COPY_CHILD
public static final CopyBehaviourCallback.ChildAssocCopyAction COPY_CHILD
Traverse the child association and copy the child node
-
-
Method Detail
-
values
public static CopyBehaviourCallback.ChildAssocCopyAction[] 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 (CopyBehaviourCallback.ChildAssocCopyAction c : CopyBehaviourCallback.ChildAssocCopyAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CopyBehaviourCallback.ChildAssocCopyAction 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 namejava.lang.NullPointerException- if the argument is null
-
-