public final class OdiScenarioGeneratorImpl extends java.lang.Object implements IOdiScenarioGenerator
IOdiScenarioGenerator implementation.| Constructor and Description | 
|---|
OdiScenarioGeneratorImpl(OdiInstance pOdiInstance)
Construct an  
IOdiScenarioGenerator for generating a scenario. | 
| Modifier and Type | Method and Description | 
|---|---|
OdiScenario[] | 
generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer,
                    GenerationOptions pScenGenerationDetails)
Generates and persists all the  scenarii for the scenario sources present in the given scenario source container. 
 | 
OdiScenario[] | 
generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer,
                    GenerationOptions pScenGenerationDetails,
                    boolean pMaterialized)
Generates and persists all the  scenarii for the scenario sources present in the given scenario source container. 
 | 
OdiScenario | 
generateScenario(IOdiScenarioSource pSourceObject,
                java.lang.String pScenarioName,
                java.lang.String pScenarioVersion)
Generates and persists in repository a scenario from a given scenario source object. 
 | 
OdiScenario | 
generateScenario(IOdiScenarioSource pSourceObject,
                java.lang.String pScenarioName,
                java.lang.String pScenarioVersion,
                boolean pMaterialized)
Generates and persists in repository a scenario from a given scenario source object. 
 | 
OdiScenario | 
generateScenario(IOdiScenarioSource pSourceObject,
                java.lang.String pScenarioName,
                java.lang.String pScenarioVersion,
                boolean pMaterialized,
                java.util.List pIssues)
Generates and persists in repository a scenario from a given scenario source object. 
 | 
OdiScenario | 
generateScenario(IOdiScenarioSource pSourceObject,
                java.lang.String pScenarioName,
                java.lang.String pScenarioVersion,
                java.util.List pIssues)
Generates and persists in repository a scenario from a given scenario source object. 
 | 
void | 
regenerateLatestScenario(java.lang.String pScenarioName)
Regenerates the latest version of a scenario from its name 
 | 
void | 
regenerateLatestScenario(java.lang.String pScenarioName,
                        boolean pMaterialized)
Regenerates the latest version of a scenario from its name 
 | 
void | 
regenerateScenario(OdiScenario pSourceScenario)
Regenerates a given scenario. 
 | 
void | 
regenerateScenario(OdiScenario pSourceScenario,
                  boolean pMaterialized)
Regenerates a given scenario. 
 | 
void | 
regenerateScenario(OdiScenario pSourceScenario,
                  boolean pMaterialized,
                  java.util.List pIssues)
Regenerates a given scenario. 
 | 
void | 
regenerateScenario(Tag pSourceScenarioTag)
Regenerates a given scenario from its tag. 
 | 
void | 
regenerateScenario(Tag pSourceScenarioTag,
                  boolean pMaterialized)
Regenerates a given scenario from its tag. 
 | 
public OdiScenarioGeneratorImpl(OdiInstance pOdiInstance)
IOdiScenarioGenerator for generating a scenario.pOdiInstance - OdiInstance to be used.public OdiScenario[] generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer, GenerationOptions pScenGenerationDetails) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
generateAllScenarios in interface IOdiScenarioGeneratorpScenarioSourceContainer - the given scenario source container.pScenGenerationDetails - details about the generation.OdiScenarioGeneratorExceptionpublic OdiScenario[] generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer, GenerationOptions pScenGenerationDetails, boolean pMaterialized) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
generateAllScenarios in interface IOdiScenarioGeneratorpScenarioSourceContainer - the given scenario source container.pScenGenerationDetails - details about the generation.pMaterialized - True if generating the scenarii based on the materialized objects of the shortcuts.OdiScenarioGeneratorExceptionpublic OdiScenario generateScenario(IOdiScenarioSource pSourceObject, java.lang.String pScenarioName, java.lang.String pScenarioVersion) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
generateScenario in interface IOdiScenarioGeneratorpSourceObject - The object on which the scenario will be based.pScenarioName - The name of the scenario.pScenarioVersion - The version of the scenario.OdiScenarioGeneratorException - for errors in the scenario generation including if pScenarioName contains invalid java characters or is longer than 400 chraracters.public OdiScenario generateScenario(IOdiScenarioSource pSourceObject, java.lang.String pScenarioName, java.lang.String pScenarioVersion, java.util.List pIssues) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
generateScenario in interface IOdiScenarioGeneratorpSourceObject - The object on which the scenario will be based.pScenarioName - The name of the scenario.pScenarioVersion - The version of the scenario.pIssues - The list to contain issues flagged during code generationOdiScenarioGeneratorException - for errors in the scenario generation including if pScenarioName contains invalid java characters or is longer than 400 chraracters.public OdiScenario generateScenario(IOdiScenarioSource pSourceObject, java.lang.String pScenarioName, java.lang.String pScenarioVersion, boolean pMaterialized) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
generateScenario in interface IOdiScenarioGeneratorpSourceObject - The object on which the scenario will be based.pScenarioName - The name of the scenario.pScenarioVersion - The version of the scenario.pMaterialized - True if generating the scenario based on the materialized object of the shortcut.OdiScenarioGeneratorException - for errors in the scenario generation including if pScenarioName contains invalid java characters or is longer than 400 chraracters.public OdiScenario generateScenario(IOdiScenarioSource pSourceObject, java.lang.String pScenarioName, java.lang.String pScenarioVersion, boolean pMaterialized, java.util.List pIssues) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
generateScenario in interface IOdiScenarioGeneratorpSourceObject - The object on which the scenario will be based.pScenarioName - The name of the scenario.pScenarioVersion - The version of the scenario.pMaterialized - True if generating the scenario based on the materialized object of the shortcut.pIssues - The list to contain issues flagged during code generationOdiScenarioGeneratorException - for errors in the scenario generation including if pScenarioName contains invalid java characters or is longer than 400 chraracters.public void regenerateScenario(Tag pSourceScenarioTag) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateScenario in interface IOdiScenarioGeneratorpSourceScenarioTag - tag identifying the scenario to regenerate.OdiScenarioGeneratorExceptionOdiScenarioNotFoundException - in case no scenario have been found from given tagpublic void regenerateScenario(Tag pSourceScenarioTag, boolean pMaterialized) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateScenario in interface IOdiScenarioGeneratorpSourceScenarioTag - tag identifying the scenario to regenerate.pMaterialized - True if regenerating the scenario based on the materialized object of the shortcut.OdiScenarioGeneratorExceptionOdiScenarioNotFoundException - in case no scenario have been found from given tagpublic void regenerateLatestScenario(java.lang.String pScenarioName)
                              throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateLatestScenario in interface IOdiScenarioGeneratorpScenarioName - name of the scenarioOdiScenarioGeneratorExceptionOdiScenarioNotFoundException - in case no scenario is found from the given namepublic void regenerateLatestScenario(java.lang.String pScenarioName,
                                     boolean pMaterialized)
                              throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateLatestScenario in interface IOdiScenarioGeneratorpScenarioName - name of the scenariopMaterialized - True if regenerating the scenario based on the materialized object of the shortcutOdiScenarioGeneratorExceptionOdiScenarioNotFoundException - in case no scenario is found from the given namepublic void regenerateScenario(OdiScenario pSourceScenario) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateScenario in interface IOdiScenarioGeneratorpSourceScenario - the scenario to regenerate.OdiScenarioGeneratorExceptionpublic void regenerateScenario(OdiScenario pSourceScenario, boolean pMaterialized) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateScenario in interface IOdiScenarioGeneratorpSourceScenario - the scenario to regenerate.pMaterialized - True if regenerating the scenario based on the materialized object of the shortcut.OdiScenarioGeneratorExceptionpublic void regenerateScenario(OdiScenario pSourceScenario, boolean pMaterialized, java.util.List pIssues) throws OdiScenarioGeneratorException
IOdiScenarioGeneratorThis method will execute in the surrounding transaction and all pending persisted changes will be flushed.
regenerateScenario in interface IOdiScenarioGeneratorpSourceScenario - the scenario to regenerate.pMaterialized - True if regenerating the scenario based on the materialized object of the shortcut.pIssues - The list to contain issues flagged during code generationOdiScenarioGeneratorException