|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.util.fsm.State
com.ptc.windchill.upgrade.tool.AbstractState
com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
com.ptc.windchill.upgrade.tool.ConfirmVersionState
Nested Class Summary | |
static class |
ConfirmVersionState.UpgradePreviouslyCompleted
|
Field Summary | |
private static String |
CLASSNAME
|
private static String |
CMII
|
private UpgradeContext |
context_
|
private static boolean |
DEBUG
|
private static String |
DISABLE_SOURCE_VERSION_CHECK_PROPERTY
|
private static DebugWriter |
LOG
|
private UpgradePhase[] |
phasesExecuted_
|
private WrappingMultiLineTextMessage |
retrieving_
|
private boolean |
targetIncludesWadm_
|
private JComponent |
viewComponent_
|
private static String |
WADM
|
(package private) int |
wadmTargetIndex_
|
Fields inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork |
|
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State |
|
Constructor Summary | |
ConfirmVersionState(StateMachine sm,
StateDefinition def)
Creates a new ConfirmVersionState object. |
Method Summary | |
private String |
addSpaces(String release)
Add spaces to the release history information retrieved if it is longer than one. |
private ReleaseId[] |
findSourceReleaseIdsWhoseSourceConstraintsArentMet()
Checks that each target version is in the acceptable source version set. |
private ReleaseId[] |
findTargetReleaseIdsWhoseSourceConstraintsArentMet()
Checks that each source version is in the acceptable source version set for each target assembly id that cares. |
private ReleaseIdSet |
getAcceptableSourceReleaseIdSetFor(String assembly_id,
JAXPFactories jaxp_factory)
Attempts to located "com/ptc/windchill/upgrade/tool/"+lowercase( |
private UpgradeToolStateMachine |
getUpgradeToolStateMachine()
|
JComponent |
getView()
|
JComponent |
getViewComponent()
Creates and displays the view displayed to the user. |
private boolean |
isDbAtTargetVersion()
Checks if the database is at the TargetVersion Level. |
private void |
renderErrorForSourceVersionsUnacceptable(ReleaseId[] unsatisfied_target_versions)
|
private void |
renderErrorForTargetVersionsUnacceptable(ReleaseId[] unsatisfied_source_versions)
|
protected AbstractStateWithThreadedWork.Outcome |
runThreadedWork()
Executes other methods as the hour glass appears to the user, letting them know that it is working to display the source version of the database to be upgraded. |
private void |
updateConfirmVersionDisplay(int num_phases)
Updates the viewComponent_ after it has retrieves the target version and source version. |
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork |
activate, clearStatus, deactivate, getApplication, getCancellationMonitor, getCancelPromptMessage, getCancelPromptTitle, getTitle, onCancelRequested, setApplication, setStatus, shouldBeEnclosed, toString |
Methods inherited from class com.ptc.windchill.upgrade.util.fsm.State |
getStateMachine, getStateMachine, isStartState, isStopState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
private static final String DISABLE_SOURCE_VERSION_CHECK_PROPERTY
private static final String CMII
private static final String WADM
private JComponent viewComponent_
private WrappingMultiLineTextMessage retrieving_
private UpgradeContext context_
private UpgradePhase[] phasesExecuted_
private boolean targetIncludesWadm_
int wadmTargetIndex_
Constructor Detail |
public ConfirmVersionState(StateMachine sm, StateDefinition def)
sm
- StateMachinedef
- StateMachineDefinitionMethod Detail |
public JComponent getViewComponent()
getViewComponent
in class AbstractState
public JComponent getView()
protected AbstractStateWithThreadedWork.Outcome runThreadedWork() throws UpgradeContextException, IUHException, ReleaseIdException, WTException
runThreadedWork
in class AbstractStateWithThreadedWork
UpgradeContextException
IUHException
- This is thrown because of retrieving the InstallAndUpgradeHistory
ReleaseIdException
WTException
private ReleaseId[] findTargetReleaseIdsWhoseSourceConstraintsArentMet() throws WTException
com.ptc.windchill.upgrade.disableSourceVersionCheckis set to anything other than "false".
WTException
private ReleaseId[] findSourceReleaseIdsWhoseSourceConstraintsArentMet() throws WTException
com.ptc.windchill.upgrade.disableSourceVersionCheckis set to anything other than "false".
WTException
private ReleaseIdSet getAcceptableSourceReleaseIdSetFor(String assembly_id, JAXPFactories jaxp_factory) throws WTException
WTException
private void renderErrorForSourceVersionsUnacceptable(ReleaseId[] unsatisfied_target_versions)
private void renderErrorForTargetVersionsUnacceptable(ReleaseId[] unsatisfied_source_versions)
private void updateConfirmVersionDisplay(int num_phases) throws IUHException, ReleaseIdException
UpgradeContextException
IUHException
- This is thrown because of retrieving the InstallAndUpgradeHistory
ReleaseIdException
private UpgradeToolStateMachine getUpgradeToolStateMachine()
private boolean isDbAtTargetVersion() throws IUHException
IUHException
private String addSpaces(String release)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |