public class VersionCopyRules
extends java.lang.Object
Constructor and Description |
---|
VersionCopyRules(VersionAssociation versionAssoc)
Construct the copy rule management.
|
Modifier and Type | Method and Description |
---|---|
VersionCopyMode |
getSourceMode(java.lang.String assocID)
Get the copy mode of the source association.
|
VersionCopyMode |
getTargetMode(java.lang.String assocID)
Get the copy mode of the target association.
|
void |
overwrite(CopyRule copyRule)
Overwrite a copy rule with the values given.
|
void |
overwrite(java.lang.String assocID,
VersionCopyMode source,
VersionCopyMode target)
Overwrite a copy rule with the values given.
|
public VersionCopyRules(VersionAssociation versionAssoc)
versionAssoc
- a prepared VersionAssociation instancepublic void overwrite(java.lang.String assocID, VersionCopyMode source, VersionCopyMode target)
assocID
- association ID (Constants.ASSOC...)source
- the source association ruletarget
- the target association rulepublic void overwrite(CopyRule copyRule)
copyRule
- the prepared copy rulepublic VersionCopyMode getSourceMode(java.lang.String assocID)
assocID
- association ID (Constants.ASSOC...)public VersionCopyMode getTargetMode(java.lang.String assocID)
assocID
- association ID (Constants.ASSOC...)