public abstract class AbstractRuleUndeployFromModuleComposer<I> extends AbstractRuleCompilePublishComposer
| Constructor and Description |
|---|
AbstractRuleUndeployFromModuleComposer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCompilerErrorMessages(RuleCompilerPublisherResult ruleResults)
the method to build the compiler error messages (called from within
AbstractRuleCompilePublishComposer.onCompilingError(RuleCompilerPublisherResult) ). |
protected void |
buildCompilerProblems(RuleCompilerPublisherResult ruleResults)
the method to build the compiler problems (called from within
AbstractRuleCompilePublishComposer.onCompilingError(RuleCompilerPublisherResult)). |
protected void |
buildPublisherErrorMessages()
the method to build the publishing error messages (called from within
onPublishingError(String, Collection)). |
void |
changeEnv() |
void |
closeDialog() |
protected Comboitem |
createComboitem(java.lang.String name)
Creates comboitem using name as key and value
|
protected <any> |
getContext() |
protected Combobox |
getEnvInput() |
protected CockpitEventQueue |
getEventQueue() |
protected InteractiveAction |
getInteractiveAction()
returns reference to the action instance.
|
protected ObjectFacade |
getObjectFacade() |
protected Button |
getOkBtn() |
protected RuleMaintenanceService |
getRuleMaintenanceService() |
protected RuleService |
getRuleService() |
protected java.util.List<SourceRuleModel> |
getRulesToProcess() |
protected java.util.List<SourceRuleModel> |
getRulesToUndeploy()
Returns the rule to be compiled by this action.
|
protected Window |
getWindow() |
protected boolean |
hasErrors(java.util.Optional<RuleCompilerPublisherResult> result)
Check if rule undeploy finished successfully
|
protected boolean |
hasPublisherErrors(RuleCompilerPublisherResult result)
Check if undeployment rules result has failed
|
protected void |
initEnvironmentOptionsCombo()
creates the combo boxes for the dialog box.
|
void |
onCreate(CreateEvent event) |
protected void |
onException(java.lang.Exception exception)
the method invoked upon exceptions (called from within
perform()). |
protected void |
onPublishingError(java.lang.String failureReason,
java.util.Collection<ResultItem> results)
the method invoked upon publishing errors
|
protected void |
onSuccess(java.lang.String moduleName,
java.lang.String previousModuleVersion,
java.lang.String moduleVersion)
the method invoked upon success
|
void |
perform()
called upon on click event of the corresponding OK button.
|
protected abstract void |
refreshWidget()
Takes care of refreshing widget, if required
|
protected <T> java.util.List<T> |
reload(java.util.List<T> list) |
protected void |
undeployRules(java.lang.String moduleName)
Undeploys rule from a module with given name and executes action based on undeployment results by invoking
AbstractRuleCompilePublishComposer.onCompilingError(RuleCompilerPublisherResult) method in case of failure |
doAfterCompose, getAffectedRules, handleRuleEngineModuleSwapCompletedEvent, onCompilingErrorpublic AbstractRuleUndeployFromModuleComposer()
protected void initEnvironmentOptionsCombo()
protected void onSuccess(java.lang.String moduleName,
java.lang.String previousModuleVersion,
java.lang.String moduleVersion)
onSuccess in class AbstractRuleCompilePublishComposermoduleName - name of the published modulepreviousModuleVersion - previous version of the modulemoduleVersion - current version of the moduleprotected abstract void refreshWidget()
public void perform()
protected void undeployRules(java.lang.String moduleName)
AbstractRuleCompilePublishComposer.onCompilingError(RuleCompilerPublisherResult) method in case of failuremoduleName - protected void onPublishingError(java.lang.String failureReason,
java.util.Collection<ResultItem> results)
AbstractRuleCompilePublishComposeronPublishingError in class AbstractRuleCompilePublishComposerfailureReason - failure reason messageresults - collection of publishing resultsprotected void buildCompilerErrorMessages(RuleCompilerPublisherResult ruleResults)
AbstractRuleCompilePublishComposerAbstractRuleCompilePublishComposer.onCompilingError(RuleCompilerPublisherResult) ).buildCompilerErrorMessages in class AbstractRuleCompilePublishComposerruleResults - the compiling/publishing resultsprotected void buildCompilerProblems(RuleCompilerPublisherResult ruleResults)
AbstractRuleCompilePublishComposerAbstractRuleCompilePublishComposer.onCompilingError(RuleCompilerPublisherResult)).buildCompilerProblems in class AbstractRuleCompilePublishComposerruleResults - the compiling/publishing resultsprotected boolean hasErrors(java.util.Optional<RuleCompilerPublisherResult> result)
result - protected boolean hasPublisherErrors(RuleCompilerPublisherResult result)
result - protected void onException(java.lang.Exception exception)
perform()).exception - the exception encountered during performprotected void buildPublisherErrorMessages()
onPublishingError(String, Collection)).protected java.util.List<SourceRuleModel> getRulesToUndeploy()
protected <T> java.util.List<T> reload(java.util.List<T> list)
throws ObjectNotFoundException
ObjectNotFoundExceptionprotected InteractiveAction getInteractiveAction()
public void onCreate(CreateEvent event)
event - not used in this callprotected Comboitem createComboitem(java.lang.String name)
name - public void closeDialog()
public void changeEnv()
protected RuleMaintenanceService getRuleMaintenanceService()
protected CockpitEventQueue getEventQueue()
protected RuleService getRuleService()
protected <any> getContext()
protected Combobox getEnvInput()
protected Window getWindow()
protected Button getOkBtn()
protected ObjectFacade getObjectFacade()
protected java.util.List<SourceRuleModel> getRulesToProcess()
Copyright © 2017 SAP SE. All Rights Reserved.