public class CreateRuleWizard extends BaseActionWizard
BaseActionWizard.RecipientWrapper| Modifier and Type | Field and Description |
|---|---|
protected javax.faces.model.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, 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(Map conditionToEdit) |
protected String |
finishImpl(javax.faces.context.FacesContext context,
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) |
String |
getCondition() |
Map<String,Serializable> |
getConditionProperties() |
List<javax.faces.model.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<javax.faces.model.SelectItem> |
getMimeTypes()
Returns a list of mime types in the system
|
List<javax.faces.model.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 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() |
String |
getSummary() |
String |
getTitle() |
String |
getType() |
List<javax.faces.model.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(org.alfresco.service.cmr.rule.RuleService ruleService) |
void |
setRunInBackground(boolean runInBackground) |
void |
setTitle(String title) |
void |
setType(String type) |
protected String |
setupRule(javax.faces.context.FacesContext context,
org.alfresco.service.cmr.rule.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, 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 String PROP_CONDITION_NAME
protected static final String PROP_CONDITION_SUMMARY
protected RulesDialog rulesDialog
protected Map<String,Serializable> currentConditionProperties
protected transient javax.faces.model.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)
IDialogBeaninit in interface IDialogBeaninit in class BaseActionWizardparameters - Map of parameters for the dialogprotected String finishImpl(javax.faces.context.FacesContext context, String outcome) throws Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeExceptionpublic boolean getNextButtonDisabled()
IWizardBeangetNextButtonDisabled in interface IWizardBeangetNextButtonDisabled in class BaseWizardBeanpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanpublic String getSummary()
protected 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 List<javax.faces.model.SelectItem> getModelTypes()
public List<javax.faces.model.SelectItem> getMimeTypes()
public List<javax.faces.model.SelectItem> getConditions()
public List<javax.faces.model.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(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 String setupRule(javax.faces.context.FacesContext context, org.alfresco.service.cmr.rule.Rule rule, String outcome)
context - FacesContextrule - The rule to setupoutcome - The default outcomeprotected void initialiseConditionHandlers()
Copyright © 2005–2018 Alfresco Software. All rights reserved.