Package org.alfresco.repo.copy
Enum Class CopyBehaviourCallback.AssocCopySourceAction
java.lang.Object
java.lang.Enum<CopyBehaviourCallback.AssocCopySourceAction>
org.alfresco.repo.copy.CopyBehaviourCallback.AssocCopySourceAction
- All Implemented Interfaces:
Serializable,Comparable<CopyBehaviourCallback.AssocCopySourceAction>,Constable
- Enclosing interface:
- CopyBehaviourCallback
public static enum CopyBehaviourCallback.AssocCopySourceAction
extends Enum<CopyBehaviourCallback.AssocCopySourceAction>
implements Comparable<CopyBehaviourCallback.AssocCopySourceAction>
Description of how the copy process should handle multiplicity of peer associations
at the source end of the association.
The order of this enum denotes the priority when mixing behaviour as well; that is to say that a 'ignore' behaviour will occur even if an 'copy' is also provided by the registered behaviour callbacks.
The order of this enum denotes the priority when mixing behaviour as well; that is to say that a 'ignore' behaviour will occur even if an 'copy' is also provided by the registered behaviour callbacks.
- Since:
- 3.3SP3
- Author:
- Derek Hulley
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways copy the association.Always copy the association but remove the copy-target's matching associations when copying over an existing node.Ignore the association -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.lang.Comparable
compareTo
-
Enum Constant Details
-
COPY
Always copy the association.
Note that this can cause duplicate associations when copying overexisting target nodes. -
COPY_REMOVE_EXISTING
Always copy the association but remove the copy-target's matching associations when copying over an existing node.
This is akin to the original CopyService behaviour (see ALF-958). -
IGNORE
Ignore the association
-
-
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
-