@Component public class ScaffoldingImpl extends java.lang.Object implements Scaffolding
| Modifier and Type | Class and Description | 
|---|---|
class  | 
ScaffoldingImpl.ContentPlugin  | 
| Modifier and Type | Field and Description | 
|---|---|
protected org.slf4j.Logger | 
logger  | 
| Constructor and Description | 
|---|
ScaffoldingImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.String | 
buildFlowFromDefaultFlow(java.util.Map<java.lang.String,java.lang.String> customTokens,
                        boolean supportsEntityServicesMapping)  | 
void | 
createCustomModule(java.lang.String stepName,
                  java.lang.String stepType)
Creates a custom module given a string stepName 
 | 
void | 
createCustomModule(java.lang.String stepName,
                  java.lang.String stepType,
                  java.lang.String format)
Creates a custom module given a string stepName 
 | 
void | 
createDefaultFlow(java.lang.String flowName)
Create default flow with all the default steps 
 | 
void | 
createEntity(java.lang.String entityName)
Creates an entity given a string name 
 | 
void | 
createLegacyFlow(java.lang.String entityName,
                java.lang.String flowName,
                FlowType flowType,
                CodeFormat codeFormat,
                DataFormat dataFormat)
Creates a flow for an entity with Entity Services model as default 
 | 
void | 
createLegacyFlow(java.lang.String entityName,
                java.lang.String flowName,
                FlowType flowType,
                CodeFormat codeFormat,
                DataFormat dataFormat,
                boolean useEsModel)
Creates a flow for an entity with an additional option for using Entity Services 
 | 
void | 
createLegacyFlow(java.lang.String entityName,
                java.lang.String flowName,
                FlowType flowType,
                CodeFormat codeFormat,
                DataFormat dataFormat,
                boolean useEsModel,
                java.lang.String mappingNameWithVersion)
Creates a flow for an entity with an additional option for using Entity Services 
 | 
void | 
createLegacyMappingDir(java.lang.String mappingName)
Creates a legacy mapping given a string name 
 | 
void | 
createMappingDir(java.lang.String mappingName)
Creates a mapping given a string name 
 | 
void | 
createRestExtension(java.lang.String entityName,
                   java.lang.String extensionName,
                   FlowType flowType,
                   CodeFormat codeFormat)
Creates a rest extension on disk to be deployed to server 
 | 
void | 
createRestTransform(java.lang.String entityName,
                   java.lang.String transformName,
                   FlowType flowType,
                   CodeFormat codeFormat)
Creates a rest transform on disk to be deployed to server 
 | 
static java.lang.String | 
getAbsolutePath(java.lang.String first,
               java.lang.String... more)  | 
java.nio.file.Path | 
getLegacyFlowDir(java.lang.String entityName,
                java.lang.String flowName,
                FlowType flowType)
Returns the directory of the flow 
 | 
void | 
updateLegacyEntity(java.lang.String entityName)
Update a specific entity that's legacy 
 | 
public static java.lang.String getAbsolutePath(java.lang.String first,
                                               java.lang.String... more)
public java.nio.file.Path getLegacyFlowDir(java.lang.String entityName,
                                           java.lang.String flowName,
                                           FlowType flowType)
ScaffoldinggetLegacyFlowDir in interface ScaffoldingentityName - - the entity nameflowName - - the name of the flowflowType - - FlowType (sjs or xqy)public void createEntity(java.lang.String entityName)
ScaffoldingcreateEntity in interface ScaffoldingentityName - - the name of the entity as stringpublic void createLegacyMappingDir(java.lang.String mappingName)
ScaffoldingcreateLegacyMappingDir in interface ScaffoldingmappingName - - the name of the mapping as stringpublic void createMappingDir(java.lang.String mappingName)
ScaffoldingcreateMappingDir in interface ScaffoldingmappingName - - the name of the mapping as stringpublic void createCustomModule(java.lang.String stepName,
                               java.lang.String stepType)
ScaffoldingcreateCustomModule in interface ScaffoldingstepName - - the name of the step as stringstepType - - the type of the step as stringpublic void createCustomModule(java.lang.String stepName,
                               java.lang.String stepType,
                               java.lang.String format)
ScaffoldingcreateCustomModule in interface ScaffoldingstepName - - the name of the step as stringstepType - - the type of the step as stringformat - - the format of the custom module (allowed values are xqy, sjs)public void createDefaultFlow(java.lang.String flowName)
ScaffoldingcreateDefaultFlow in interface ScaffoldingflowName - - the name of the flowprotected java.lang.String buildFlowFromDefaultFlow(java.util.Map<java.lang.String,java.lang.String> customTokens,
                                                    boolean supportsEntityServicesMapping)
                                             throws java.io.IOException
java.io.IOExceptionpublic void createLegacyFlow(java.lang.String entityName,
                             java.lang.String flowName,
                             FlowType flowType,
                             CodeFormat codeFormat,
                             DataFormat dataFormat)
ScaffoldingcreateLegacyFlow in interface ScaffoldingentityName - - name of the entity to associate the flow withflowName - - the name of the flow as a stringflowType - - the type of flow as TypeFlow, eg: harmonize or ingestcodeFormat - - the format of the code as CodeFormat enumdataFormat - - the format of the data (json or xml)public void createLegacyFlow(java.lang.String entityName,
                             java.lang.String flowName,
                             FlowType flowType,
                             CodeFormat codeFormat,
                             DataFormat dataFormat,
                             boolean useEsModel)
ScaffoldingcreateLegacyFlow in interface ScaffoldingentityName - - name of the entity to associate the flow withflowName - - the name of the flow as a stringflowType - - the type of flow as TypeFlow, eg: harmonize or ingestcodeFormat - - the format of the code as CodeFormat enumdataFormat - - the format of the data (json or xml)useEsModel - - true to use Entity Services, false not topublic void createLegacyFlow(java.lang.String entityName,
                             java.lang.String flowName,
                             FlowType flowType,
                             CodeFormat codeFormat,
                             DataFormat dataFormat,
                             boolean useEsModel,
                             java.lang.String mappingNameWithVersion)
ScaffoldingcreateLegacyFlow in interface ScaffoldingentityName - - name of the entity to associate the flow withflowName - - the name of the flow as a stringflowType - - the type of flow as TypeFlow, eg: harmonize or ingestcodeFormat - - the format of the code as CodeFormat enumdataFormat - - the format of the data (json or xml)useEsModel - - true to use Entity Services, false not tomappingNameWithVersion - - the name of the mapping name and version together (name-version) you wish to use to generate the content pluginpublic void updateLegacyEntity(java.lang.String entityName)
ScaffoldingupdateLegacyEntity in interface ScaffoldingentityName - - name of the entitypublic void createRestExtension(java.lang.String entityName,
                                java.lang.String extensionName,
                                FlowType flowType,
                                CodeFormat codeFormat)
                         throws ScaffoldingValidationException
ScaffoldingcreateRestExtension in interface ScaffoldingentityName - - the entity which the flow is attachedextensionName - - the name of the extension as a stringflowType - - the type of flow as TypeFlow, eg: harmonize or ingestcodeFormat - - the format of the code as CodeFormat enumScaffoldingValidationException - - thrown if the extension fails to pass validationpublic void createRestTransform(java.lang.String entityName,
                                java.lang.String transformName,
                                FlowType flowType,
                                CodeFormat codeFormat)
                         throws ScaffoldingValidationException
ScaffoldingcreateRestTransform in interface ScaffoldingentityName - - the entity which the flow is attachedtransformName - - the name of the transform as a stringflowType - - the type of flow as TypeFlow, eg: harmonize or ingestcodeFormat - - the format of the code as CodeFormat enumScaffoldingValidationException - - thrown if the extension fails to pass validation