Class WorkFlowOptions

java.lang.Object
com.redhat.parodos.workflow.option.WorkFlowOptions

public class WorkFlowOptions extends Object
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)
  • Method Details

    • isOptionsAvailable

      public boolean isOptionsAvailable()
    • hasInfrastructure

      public boolean hasInfrastructure()
    • hasIncompleteWorkFlow

      public boolean hasIncompleteWorkFlow()
    • getCurrentVersion

      public WorkFlowOption getCurrentVersion()
    • setCurrentVersion

      public void setCurrentVersion(WorkFlowOption currentVersion)
    • getContinuationOptions

      public List<WorkFlowOption> getContinuationOptions()
      Add a Continuation Options
    • addContinuationOption

      public List<WorkFlowOption> addContinuationOption(WorkFlowOption continuationOption)
    • setContinuationOptions

      public void setContinuationOptions(List<WorkFlowOption> continuationOptions)
    • getOtherOptions

      public List<WorkFlowOption> 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

      public List<WorkFlowOption> addOtherOption(WorkFlowOption otherOption)
    • setOtherOptions

      public void setOtherOptions(List<WorkFlowOption> otherOptions)
    • getUpgradeOptions

      public List<WorkFlowOption> 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

      public List<WorkFlowOption> addUpgradeOption(WorkFlowOption upgradeOption)
    • setUpgradeOptions

      public void setUpgradeOptions(List<WorkFlowOption> upgradeOptions)
    • addMigrationOption

      public List<WorkFlowOption> addMigrationOption(WorkFlowOption migrationOption)
      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

      public List<WorkFlowOption> getMigrationOptions()
    • setMigrationOptions

      public void setMigrationOptions(List<WorkFlowOption> migrationOptions)
    • addNewInfrastrutureOption

      public List<WorkFlowOption> addNewInfrastrutureOption(WorkFlowOption newOption)
      Add an Infrastructure option to the new Infrastructure options list
      Parameters:
      newOption - the new option to add
      Returns:
      the updated reference
    • setNewOptions

      public void setNewOptions(List<WorkFlowOption> newOptions)
    • getNewOptions

      public List<WorkFlowOption> getNewOptions()