|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.wizard.BaseWizardBean
org.alfresco.web.bean.actions.BaseActionWizard
org.alfresco.web.bean.rules.CreateRuleWizard
public class CreateRuleWizard
Bean implementation for the "Create Rule" wizard
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.alfresco.web.bean.actions.BaseActionWizard |
---|
BaseActionWizard.RecipientWrapper |
Field Summary | |
---|---|
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
|
Fields inherited from class org.alfresco.web.bean.actions.BaseActionWizard |
---|
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 |
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
CreateRuleWizard()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean |
---|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, next |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean |
---|
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public CreateRuleWizard()
Method Detail |
---|
public void init(java.util.Map parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseActionWizard
parameters
- Map of parameters for the dialogprotected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
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 java.lang.String getSummary()
protected java.lang.String getErrorMessageId()
BaseDialogBean
getErrorMessageId
in class BaseDialogBean
protected 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()
BaseDialogBean
getRuleService
in class BaseDialogBean
public 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 outcome
protected void initialiseConditionHandlers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |