public class CreateRuleWizard extends BaseActionWizard
BaseActionWizard.RecipientWrapper
Modifier and Type | Field and Description |
---|---|
protected DataModel |
allConditionsDataModel |
protected List<Map<String,Serializable>> |
allConditionsPropertiesList |
protected boolean |
applyToSubSpaces |
protected Map<String,IHandler> |
conditionHandlers |
protected Map<String,Serializable> |
currentConditionProperties |
protected String |
description |
protected boolean |
editingCondition |
protected static String |
PROP_CONDITION_NAME |
protected static String |
PROP_CONDITION_SUMMARY |
protected boolean |
ruleDisabled |
protected RulesDialog |
rulesDialog |
protected boolean |
runInBackground |
protected String |
selectedCondition |
protected String |
title |
protected String |
type |
action, actionHandlers, actions, addableAspects, allActionsDataModel, allActionsProperties, commonAspects, currentActionProperties, currentEmailRecipientsDataModel, editingAction, encodings, ERROR_ACTION_CANNOT_BE_EXECUTE_REPEATEDLY, imageTransformers, NO_PARAMS_MARKER, objectTypes, PROP_ACTION_EMAIL_RECIPIENTS, PROP_ACTION_NAME, PROP_ACTION_SUMMARY, removableAspects, returnViewId, testableAspects, transformers, users, usingTemplate
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
CreateRuleWizard() |
Modifier and Type | Method and Description |
---|---|
void |
addCondition()
Adds the condition just setup by the user to the list of conditions for the rule
|
void |
cancelAddCondition()
Cancels the addition of the condition
|
void |
editCondition()
Sets up the context for editing existing condition values
|
protected void |
editCondition(Map conditionToEdit) |
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
DataModel |
getAllConditionsDataModel()
Returns the properties for all the conditions as a JSF DataModel
|
boolean |
getApplyToSubSpaces() |
protected CompositeAction |
getCompositeAction(Rule rule) |
String |
getCondition() |
Map<String,Serializable> |
getConditionProperties() |
List<SelectItem> |
getConditions() |
String |
getDescription() |
protected String |
getErrorMessageId()
The default message id to use in error messages
|
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
List<SelectItem> |
getMimeTypes()
Returns a list of mime types in the system
|
List<SelectItem> |
getModelTypes()
Returns a list of the types available in the repository
|
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled
|
boolean |
getRuleDisabled() |
protected RuleService |
getRuleService()
Get the rule service
|
boolean |
getRuleTypeDisabled()
Determines whether the rule type drop down list should be enabled.
|
boolean |
getRunInBackground() |
String |
getSummary() |
String |
getTitle() |
String |
getType() |
List<SelectItem> |
getTypes() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
protected void |
initialiseConditionHandlers()
Initialises the condition handlers from the current configuration.
|
void |
promptForConditionValues()
Displays the settings page for the current condition being added (if required)
|
void |
removeCondition()
Removes the requested condition from the list
|
void |
setApplyToSubSpaces(boolean applyToSubSpaces) |
void |
setCondition(String condition) |
void |
setDescription(String description) |
void |
setRuleDisabled(boolean ruleDisabled) |
void |
setRulesDialog(RulesDialog RulesDialog)
Sets the rulesDialog instance to be used by the wizard in edit mode
|
void |
setRuleService(RuleService ruleService) |
void |
setRunInBackground(boolean runInBackground) |
void |
setTitle(String title) |
void |
setType(String type) |
protected String |
setupRule(FacesContext context,
Rule rule,
String outcome)
Sets up the given rule using the current state of the wizard
|
addAction, addRecipient, cancelAddAction, discardTemplate, displayLabelForAuthority, editAction, getAction, getActionProperties, getActions, getActionService, getAddableAspects, getAllActionsDataModel, getAuthorityService, getCommonAspects, getEmailRecipients, getEmailRecipientsDataModel, getImageTransformers, getMimetypeService, getObjectTypes, getPersonService, getRemovableAspects, getTestableAspects, getTransformers, getUsers, getUsingTemplate, goToPage, initialiseActionHandlers, insertTemplate, isActionPresent, isFinishButtonDisabled, promptForActionValues, readAspectsConfig, removeAction, removeRecipient, setAction, setActionService, setAuthorityService, setMimetypeService, setPersonService, setUsingTemplate
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, next
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
protected static final String PROP_CONDITION_NAME
protected static final String PROP_CONDITION_SUMMARY
protected RulesDialog rulesDialog
protected Map<String,Serializable> currentConditionProperties
protected transient DataModel allConditionsDataModel
protected List<Map<String,Serializable>> allConditionsPropertiesList
protected String title
protected String description
protected String type
protected String selectedCondition
protected boolean runInBackground
protected boolean applyToSubSpaces
protected boolean editingCondition
protected boolean ruleDisabled
public void init(Map<String,String> parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseActionWizard
parameters
- Map of parameters for the dialogprotected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled
in interface IWizardBean
getNextButtonDisabled
in class BaseWizardBean
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public String getSummary()
protected String getErrorMessageId()
BaseDialogBean
getErrorMessageId
in class BaseDialogBean
protected CompositeAction getCompositeAction(Rule rule)
public boolean getRuleTypeDisabled()
public DataModel getAllConditionsDataModel()
public List<SelectItem> getModelTypes()
public List<SelectItem> getMimeTypes()
public List<SelectItem> getConditions()
public List<SelectItem> getTypes()
public Map<String,Serializable> getConditionProperties()
public String getDescription()
public void setDescription(String description)
description
- The description to set.public String getTitle()
public void setTitle(String title)
title
- The title to set.public boolean getRunInBackground()
public void setRunInBackground(boolean runInBackground)
runInBackground
- Sets whether the rule should run in the backgroundpublic boolean getApplyToSubSpaces()
public void setApplyToSubSpaces(boolean applyToSubSpaces)
applyToSubSpaces
- Sets whether the rule will get applied to sub spacespublic boolean getRuleDisabled()
public void setRuleDisabled(boolean ruleDisabled)
ruleDisabled
- Sets whether the rule is disabled or notpublic String getType()
public void setType(String type)
type
- The type to setpublic String getCondition()
public void setCondition(String condition)
condition
- Sets the selected conditionpublic void promptForConditionValues()
public void editCondition()
protected void editCondition(Map conditionToEdit)
public void addCondition()
public void removeCondition()
public void cancelAddCondition()
public void setRuleService(RuleService ruleService)
ruleService
- Sets the rule service to useprotected RuleService getRuleService()
BaseDialogBean
getRuleService
in class BaseDialogBean
public void setRulesDialog(RulesDialog RulesDialog)
RulesDialog
- The rulesDialogprotected String setupRule(FacesContext context, Rule rule, String outcome)
context
- FacesContextrule
- The rule to setupoutcome
- The default outcomeprotected void initialiseConditionHandlers()
Copyright © 2005–2017 Alfresco Software. All rights reserved.