Class WorkFlowOptions
java.lang.Object
com.redhat.parodos.workflow.option.WorkFlowOptions
This consumed by a @see BaseAssessmentTask, updated by that task and then consumed by
the UI layer for the user to choose which Workflow they wish to execute
- currentVersion: The tool chain the application is currently using (it might be none -
meaning tooling must be created)
- upgradeOptions: Any available upgrade options for the existing tool chain
- migrationOptions: Existing tooling/environments that the user can to move their
workload over too (ie: moving from VMs to k8)
- newOptions: New tool chains/environments that can be created for the application
- continuationOptions: if a workflow has started and not been completed due to missing
information from the user. Selecting one of these options allows them to continue
- otherOptions: Workflows that are specific to the team (ie: adding/removing a
developer from a project)
- Author:
- Luke Shannon (Github: lshannon)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to build a reference for an WorkFlowOptions -
Method Summary
Modifier and TypeMethodDescriptionaddContinuationOption(WorkFlowOption continuationOption) addMigrationOption(WorkFlowOption migrationOption) Add a Migration option to the migration option listaddNewInfrastrutureOption(WorkFlowOption newOption) Add an Infrastructure option to the new Infrastructure options listaddOtherOption(WorkFlowOption otherOption) addUpgradeOption(WorkFlowOption upgradeOption) Add a Continuation OptionsAdd an Other option to the existing other OptionsAdd an Upgrade option to the existing upgrade OptionsbooleanbooleanbooleanvoidsetContinuationOptions(List<WorkFlowOption> continuationOptions) voidsetCurrentVersion(WorkFlowOption currentVersion) voidsetMigrationOptions(List<WorkFlowOption> migrationOptions) voidsetNewOptions(List<WorkFlowOption> newOptions) voidsetOtherOptions(List<WorkFlowOption> otherOptions) voidsetUpgradeOptions(List<WorkFlowOption> upgradeOptions)
-
Method Details
-
isOptionsAvailable
public boolean isOptionsAvailable() -
hasInfrastructure
public boolean hasInfrastructure() -
hasIncompleteWorkFlow
public boolean hasIncompleteWorkFlow() -
getCurrentVersion
-
setCurrentVersion
-
getContinuationOptions
Add a Continuation Options -
addContinuationOption
-
setContinuationOptions
-
getOtherOptions
Add an Other option to the existing other Options- Parameters:
otherOption- new Workflow Option to add to the other options list- Returns:
- the updated reference
-
addOtherOption
-
setOtherOptions
-
getUpgradeOptions
Add an Upgrade option to the existing upgrade Options- Parameters:
upgradeOption- new InfrastructureOption to add to the upgrade option list- Returns:
- the updated reference
-
addUpgradeOption
-
setUpgradeOptions
-
addMigrationOption
Add a Migration option to the migration option list- Parameters:
migrationOption- new migration option to add the migration option list- Returns:
- the updated reference
-
getMigrationOptions
-
setMigrationOptions
-
addNewInfrastrutureOption
Add an Infrastructure option to the new Infrastructure options list- Parameters:
newOption- the new option to add- Returns:
- the updated reference
-
setNewOptions
-
getNewOptions
-