com.centrasite.registry.versionmanagementservices
Class VersionCopyRules

java.lang.Object
  extended by com.centrasite.registry.versionmanagementservices.VersionCopyRules

public class VersionCopyRules
extends java.lang.Object

Holds the copy rules if DEEP copy of registry object should be performed. The rules will determined from the CentraSiteVersioninig classifications with the various associations. But they could be modified with the 'overwrite' methods.


Constructor Summary
VersionCopyRules(VersionAssociation versionAssoc)
          Construct the copy rule management.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionCopyRules

public VersionCopyRules(VersionAssociation versionAssoc)
Construct the copy rule management.

Parameters:
versionAssoc - a prepared VersionAssociation instance
Method Detail

overwrite

public void overwrite(java.lang.String assocID,
                      VersionCopyMode source,
                      VersionCopyMode target)
Overwrite a copy rule with the values given.

Parameters:
assocID - association ID (Constants.ASSOC...)
source - the source association rule
target - the target association rule

overwrite

public void overwrite(CopyRule copyRule)
Overwrite a copy rule with the values given.

Parameters:
copyRule - the prepared copy rule

getSourceMode

public VersionCopyMode getSourceMode(java.lang.String assocID)
Get the copy mode of the source association. The hierarchy is
  1. look in user specified rule table
  2. look in table with the association rules
  3. determine the rules from association and save

Parameters:
assocID - association ID (Constants.ASSOC...)
Returns:
the VersionCopyMode

getTargetMode

public VersionCopyMode getTargetMode(java.lang.String assocID)
Get the copy mode of the target association. The hierarchy is
  1. look in user specified rule table
  2. look in table with the association rules
  3. determine the rules from association and save

Parameters:
assocID - association ID (Constants.ASSOC...)
Returns:
the VersionCopyMode