public class CreateRuleWizard extends BaseActionWizard
BaseActionWizard.RecipientWrapper| Modifier and Type | Field and Description |
|---|---|
protected javax.faces.model.DataModel |
allConditionsDataModel |
protected java.util.List |
allConditionsPropertiesList |
protected boolean |
applyToSubSpaces |
protected java.util.Map |
conditionHandlers |
protected java.util.Map |
currentConditionProperties |
protected java.lang.String |
description |
protected boolean |
editingCondition |
protected static java.lang.String |
PROP_CONDITION_NAME |
protected static java.lang.String |
PROP_CONDITION_SUMMARY |
protected boolean |
ruleDisabled |
protected RulesDialog |
rulesDialog |
protected boolean |
runInBackground |
protected java.lang.String |
selectedCondition |
protected java.lang.String |
title |
protected java.lang.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, usingTemplatebrowseBean, 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(java.util.Map conditionToEdit) |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
javax.faces.model.DataModel |
getAllConditionsDataModel()
Returns the properties for all the conditions as a JSF DataModel
|
boolean |
getApplyToSubSpaces() |
protected org.alfresco.service.cmr.action.CompositeAction |
getCompositeAction(org.alfresco.service.cmr.rule.Rule rule) |
java.lang.String |
getCondition() |
java.util.Map |
getConditionProperties() |
java.util.List |
getConditions() |
java.lang.String |
getDescription() |
protected java.lang.String |
getErrorMessageId()
The default message id to use in error messages
|
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
java.util.List |
getMimeTypes()
Returns a list of mime types in the system
|
java.util.List |
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 org.alfresco.service.cmr.rule.RuleService |
getRuleService()
Get the rule service
|
boolean |
getRuleTypeDisabled()
Determines whether the rule type drop down list should be enabled.
|
boolean |
getRunInBackground() |
java.lang.String |
getSummary() |
java.lang.String |
getTitle() |
java.lang.String |
getType() |
java.util.List |
getTypes() |
void |
init(java.util.Map 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(java.lang.String condition) |
void |
setDescription(java.lang.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(org.alfresco.service.cmr.rule.RuleService ruleService) |
void |
setRunInBackground(boolean runInBackground) |
void |
setTitle(java.lang.String title) |
void |
setType(java.lang.String type) |
protected java.lang.String |
setupRule(javax.faces.context.FacesContext context,
org.alfresco.service.cmr.rule.Rule rule,
java.lang.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, setUsingTemplateback, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, nextcancel, 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, setSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restoredprotected static final java.lang.String PROP_CONDITION_NAME
protected static final java.lang.String PROP_CONDITION_SUMMARY
protected RulesDialog rulesDialog
protected java.util.Map conditionHandlers
protected java.util.Map currentConditionProperties
protected transient javax.faces.model.DataModel allConditionsDataModel
protected java.util.List allConditionsPropertiesList
protected java.lang.String title
protected java.lang.String description
protected java.lang.String type
protected java.lang.String selectedCondition
protected boolean runInBackground
protected boolean applyToSubSpaces
protected boolean editingCondition
protected boolean ruleDisabled
public void init(java.util.Map parameters)
IDialogBeaninit in interface IDialogBeaninit in class BaseActionWizardparameters - Map of parameters for the dialogprotected java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomejava.lang.Exceptionpublic boolean getNextButtonDisabled()
IWizardBeangetNextButtonDisabled in interface IWizardBeangetNextButtonDisabled in class BaseWizardBeanpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanpublic java.lang.String getSummary()
protected java.lang.String getErrorMessageId()
BaseDialogBeangetErrorMessageId in class BaseDialogBeanprotected org.alfresco.service.cmr.action.CompositeAction getCompositeAction(org.alfresco.service.cmr.rule.Rule rule)
public boolean getRuleTypeDisabled()
public javax.faces.model.DataModel getAllConditionsDataModel()
public java.util.List getModelTypes()
public java.util.List getMimeTypes()
public java.util.List getConditions()
public java.util.List getTypes()
public java.util.Map getConditionProperties()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description to set.public java.lang.String getTitle()
public void setTitle(java.lang.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 java.lang.String getType()
public void setType(java.lang.String type)
type - The type to setpublic java.lang.String getCondition()
public void setCondition(java.lang.String condition)
condition - Sets the selected conditionpublic void promptForConditionValues()
public void editCondition()
protected void editCondition(java.util.Map conditionToEdit)
public void addCondition()
public void removeCondition()
public void cancelAddCondition()
public void setRuleService(org.alfresco.service.cmr.rule.RuleService ruleService)
ruleService - Sets the rule service to useprotected org.alfresco.service.cmr.rule.RuleService getRuleService()
BaseDialogBeangetRuleService in class BaseDialogBeanpublic void setRulesDialog(RulesDialog RulesDialog)
rulesDialog - The rulesDialogprotected java.lang.String setupRule(javax.faces.context.FacesContext context,
org.alfresco.service.cmr.rule.Rule rule,
java.lang.String outcome)
context - FacesContextrule - The rule to setupoutcome - The default outcomeprotected void initialiseConditionHandlers()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.