com.ptc.windchill.upgrade.gmm
Class R40OrEarlierPrepToolVersionVerifier

java.lang.Object
  extended bycom.ptc.windchill.upgrade.gmm.R40OrEarlierPrepToolVersionVerifier
All Implemented Interfaces:
PrepToolVersionVerifier

public class R40OrEarlierPrepToolVersionVerifier
extends Object
implements PrepToolVersionVerifier


Constructor Summary
R40OrEarlierPrepToolVersionVerifier()
           
 
Method Summary
private  void confirmWindchillVersionNotPresent()
          Confirms that the WindchillVersion.class does not exist.
 ReleaseId[] getReleaseIdentifiers()
          Calls a method to check for the WindchillVersion class.
private  ReleaseId requestVersion()
          Requests the version the user is creating the Introspections reports at.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

R40OrEarlierPrepToolVersionVerifier

public R40OrEarlierPrepToolVersionVerifier()
Method Detail

getReleaseIdentifiers

public ReleaseId[] getReleaseIdentifiers()
                                  throws ReleaseIdException
Calls a method to check for the WindchillVersion class. If it exists, cancel out. Otherwise, prompt the user for numeric version of the Source Version. After, the user has entered the value the first portion of the value entered will be checked to see if it is 4 or less.

Specified by:
getReleaseIdentifiers in interface PrepToolVersionVerifier
Throws:
ReleaseIdException

confirmWindchillVersionNotPresent

private void confirmWindchillVersionNotPresent()
Confirms that the WindchillVersion.class does not exist. If it does exist a message will be displayed and exited. If it does not exist it returns to the getVersion() method. An error is not displayed because that is what we wanted to happen.


requestVersion

private ReleaseId requestVersion()
Requests the version the user is creating the Introspections reports at. And then check if they have entered a version value of 4.0 or earlier. If the value they enter is greater than 4.0 it might mean something has changed because WindchillVersion did not exist before 5.0.