public class GenerateModels
extends java.lang.Object
The class that generates entities based on the metadata from the given ALM
Octane server This class generates models based on the
TypedEntityModel, entity lists based on
TypedEntityList and Lists & Phases
objects which represents those entities on the server and turns them into
typed enums.
The user that calls the generation must have the workspace member of the given workspace.
UDFs are generated if they are part of the metadata for that workspace. That means that the generated entities should be able to be reused over different workspaces within the same shared space. However some business rules could cause different behaviour in different Workspaces. See the ALM Octane documentation for more information
| Constructor and Description |
|---|
GenerateModels(java.io.File outputDirectory)
Initialise the class with the output directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String server,
long sharedSpace,
long workSpace,
boolean doNotValidateCertificate,
boolean techPreview)
Run the actual generation
|
public GenerateModels(java.io.File outputDirectory)
outputDirectory - Where all the generated files will be placedpublic void generate(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String server,
long sharedSpace,
long workSpace,
boolean doNotValidateCertificate,
boolean techPreview)
throws java.io.IOException,
java.security.GeneralSecurityException
clientId - The client idclientSecret - The client secretserver - The server including the protocol and portsharedSpace - The SS idworkSpace - The WS iddoNotValidateCertificate - Disables validating server SSL certificatestechPreview - API Modejava.io.IOException - A problem with the generation of the entitiesjava.security.GeneralSecurityException - A problem with the generation of the entities