Class TemplateParamsFormPresenter
- java.lang.Object
-
- org.guvnor.ala.ui.client.util.AbstractHasContentChangeHandlers
-
- org.guvnor.ala.ui.openshift.client.pipeline.template.TemplateParamsFormPresenter
-
- All Implemented Interfaces:
org.guvnor.ala.ui.client.util.HasContentChangeHandlers,org.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
@ApplicationScoped public class TemplateParamsFormPresenter extends org.guvnor.ala.ui.client.util.AbstractHasContentChangeHandlers implements org.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTemplateParamsFormPresenter.View
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_NAMEstatic StringAPPLICATION_NAME_TEMPLATE_PARAMstatic StringCONTAINER_DELIMITERstatic StringHORNETQ_CLUSTER_PASSWORDstatic StringHORNETQ_QUEUESstatic StringHORNETQ_TOPICSstatic StringIMAGE_STREAM_NAMESPACE_TEMPLATE_PARAMThe IMAGE_STREAM_NAMESPACE must be defaulted to the project name.static StringKIE_SERVER_CONTAINER_DEPLOYMENTstatic StringPARAM_ASSIGNERstatic StringPARAM_DELIMITERstatic StringPROJECT_NAMEstatic StringRESOURCE_SECRETS_URIstatic StringRESOURCE_STREAMS_URIstatic StringRESOURCE_TEMPLATE_PARAM_VALUESstatic StringRESOURCE_TEMPLATE_URIstatic StringSERVICE_NAMEstatic StringSERVICE_NAME_SUFFIX
-
Constructor Summary
Constructors Constructor Description TemplateParamsFormPresenter(TemplateParamsFormPresenter.View view, TemplateParamsTablePresenter paramsEditorPresenter, org.jboss.errai.ui.client.local.spi.TranslationService translationService, org.guvnor.ala.ui.client.util.PopupHelper popupHelper, org.jboss.errai.common.client.api.Caller<org.guvnor.ala.ui.openshift.service.OpenShiftClientService> openShiftClientService, OpenShiftClientValidationService openShiftClientValidationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildContainerDeploymentParamValue(List<org.guvnor.ala.ui.client.wizard.container.ContainerConfig> containerConfigs)protected StringbuildContainerParamValue(org.guvnor.ala.ui.client.wizard.container.ContainerConfig containerConfig)Map<String,String>buildParams()voidclear()TemplateParamsFormPresenter.ViewgetView()StringgetWizardTitle()voidinit()voidinitialise()voidisComplete(org.uberfire.client.callbacks.Callback<Boolean> callback)protected voidonContainerConfigurationsChange(org.guvnor.ala.ui.client.wizard.container.ContainerConfigParamsChangeEvent event)protected voidonContentChange()protected voidonImageStreamsURLChange()protected voidonParamChange()protected voidonRuntimeNameChange()protected voidonSecretsFileURLChange()protected voidonTemplateURLChange()voidprepareView()-
Methods inherited from class org.guvnor.ala.ui.client.util.AbstractHasContentChangeHandlers
addContentChangeHandler, fireChangeHandlers, removeContentChangeHandler
-
-
-
-
Field Detail
-
PARAM_DELIMITER
public static final String PARAM_DELIMITER
- See Also:
- Constant Field Values
-
PARAM_ASSIGNER
public static final String PARAM_ASSIGNER
- See Also:
- Constant Field Values
-
CONTAINER_DELIMITER
public static final String CONTAINER_DELIMITER
- See Also:
- Constant Field Values
-
RESOURCE_TEMPLATE_PARAM_VALUES
public static final String RESOURCE_TEMPLATE_PARAM_VALUES
- See Also:
- Constant Field Values
-
RESOURCE_TEMPLATE_URI
public static final String RESOURCE_TEMPLATE_URI
- See Also:
- Constant Field Values
-
RESOURCE_SECRETS_URI
public static final String RESOURCE_SECRETS_URI
- See Also:
- Constant Field Values
-
RESOURCE_STREAMS_URI
public static final String RESOURCE_STREAMS_URI
- See Also:
- Constant Field Values
-
APPLICATION_NAME
public static final String APPLICATION_NAME
- See Also:
- Constant Field Values
-
PROJECT_NAME
public static final String PROJECT_NAME
- See Also:
- Constant Field Values
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
KIE_SERVER_CONTAINER_DEPLOYMENT
public static final String KIE_SERVER_CONTAINER_DEPLOYMENT
- See Also:
- Constant Field Values
-
IMAGE_STREAM_NAMESPACE_TEMPLATE_PARAM
public static final String IMAGE_STREAM_NAMESPACE_TEMPLATE_PARAM
The IMAGE_STREAM_NAMESPACE must be defaulted to the project name.- See Also:
- Constant Field Values
-
APPLICATION_NAME_TEMPLATE_PARAM
public static final String APPLICATION_NAME_TEMPLATE_PARAM
- See Also:
- Constant Field Values
-
SERVICE_NAME_SUFFIX
public static final String SERVICE_NAME_SUFFIX
- See Also:
- Constant Field Values
-
HORNETQ_QUEUES
public static final String HORNETQ_QUEUES
- See Also:
- Constant Field Values
-
HORNETQ_TOPICS
public static final String HORNETQ_TOPICS
- See Also:
- Constant Field Values
-
HORNETQ_CLUSTER_PASSWORD
public static final String HORNETQ_CLUSTER_PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TemplateParamsFormPresenter
@Inject public TemplateParamsFormPresenter(TemplateParamsFormPresenter.View view, TemplateParamsTablePresenter paramsEditorPresenter, org.jboss.errai.ui.client.local.spi.TranslationService translationService, org.guvnor.ala.ui.client.util.PopupHelper popupHelper, org.jboss.errai.common.client.api.Caller<org.guvnor.ala.ui.openshift.service.OpenShiftClientService> openShiftClientService, OpenShiftClientValidationService openShiftClientValidationService)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getWizardTitle
public String getWizardTitle()
- Specified by:
getWizardTitlein interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
getView
public TemplateParamsFormPresenter.View getView()
- Specified by:
getViewin interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
buildParams
public Map<String,String> buildParams()
- Specified by:
buildParamsin interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
initialise
public void initialise()
- Specified by:
initialisein interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
prepareView
public void prepareView()
- Specified by:
prepareViewin interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
isComplete
public void isComplete(org.uberfire.client.callbacks.Callback<Boolean> callback)
- Specified by:
isCompletein interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
clear
public void clear()
- Specified by:
clearin interfaceorg.guvnor.ala.ui.client.wizard.pipeline.params.PipelineParamsForm
-
onRuntimeNameChange
protected void onRuntimeNameChange()
-
onTemplateURLChange
protected void onTemplateURLChange()
-
onImageStreamsURLChange
protected void onImageStreamsURLChange()
-
onSecretsFileURLChange
protected void onSecretsFileURLChange()
-
onContainerConfigurationsChange
protected void onContainerConfigurationsChange(@Observes org.guvnor.ala.ui.client.wizard.container.ContainerConfigParamsChangeEvent event)
-
onParamChange
protected void onParamChange()
-
onContentChange
protected void onContentChange()
-
buildContainerDeploymentParamValue
protected String buildContainerDeploymentParamValue(List<org.guvnor.ala.ui.client.wizard.container.ContainerConfig> containerConfigs)
-
buildContainerParamValue
protected String buildContainerParamValue(org.guvnor.ala.ui.client.wizard.container.ContainerConfig containerConfig)
-
-