public class RulesDialog extends BaseDialogBean implements IContextListener, FilterViewSupport
Modifier and Type | Class and Description |
---|---|
static class |
RulesDialog.WrappedRule
Inner class to wrap the Rule objects so we can expose a flag to indicate whether
the rule is a local or inherited rule
|
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
RulesDialog()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
areaChanged()
Method called by UIContextService.areaChanged() to inform all registered beans that
the user has changed area i.e.
|
void |
contextUpdated()
Method called by UIContextService.notifyBeans() to inform all registered beans that
all UI Beans should refresh dump all cached data and settings.
|
void |
filterModeChanged(ActionEvent event) |
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
Rule |
getCurrentRule()
Returns the current rule
|
List<UIListItem> |
getFilterItems() |
String |
getFilterMode() |
boolean |
getIgnoreInheritedRules() |
String |
getIgnoreInheritedRulesLabelId()
Gets the label id from the ignore inhertied action
|
UIRichList |
getRichList()
Returns the UIRichList component being used by this backing bean
|
List<RulesDialog.WrappedRule> |
getRules()
Returns the list of rules to display
|
protected RuleService |
getRuleService()
Get the rule service
|
Node |
getSpace() |
void |
ignoreInheritedRules(ActionEvent event)
Action listener to ignore (or include) inherited rules.
|
void |
reapplyRules(ActionEvent event)
Reapply the currently defines rules to the
|
void |
restored()
Called when the dialog is restored after a nested dialog is closed
|
void |
setActionService(ActionService actionService)
Set the action service to use
|
void |
setFilterMode(String filterMode) |
void |
setRichList(UIRichList richList)
Sets the UIRichList component being used by this backing bean
|
void |
setRuleService(RuleService ruleService) |
void |
setupRuleAction(ActionEvent event)
Handles a rule being clicked ready for an action i.e.
|
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getSearchService, getTransactionService, init, isFinished, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
public Node getSpace()
public Rule getCurrentRule()
public List<RulesDialog.WrappedRule> getRules()
public void setupRuleAction(ActionEvent event)
event
- The event representing the clickpublic void reapplyRules(ActionEvent event)
event
- ActionEventpublic String getIgnoreInheritedRulesLabelId()
public boolean getIgnoreInheritedRules()
public void ignoreInheritedRules(ActionEvent event)
event
- the action event objectprotected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public void restored()
IDialogBean
restored
in interface IDialogBean
restored
in class BaseDialogBean
public String getCancelButtonLabel()
IDialogBean
getCancelButtonLabel
in interface IDialogBean
getCancelButtonLabel
in class BaseDialogBean
public void setRichList(UIRichList richList)
richList
- UIRichList componentpublic UIRichList getRichList()
public void setRuleService(RuleService ruleService)
ruleService
- Sets the rule service to useprotected RuleService getRuleService()
BaseDialogBean
getRuleService
in class BaseDialogBean
public void setActionService(ActionService actionService)
actionService
- the action servicepublic void contextUpdated()
IContextListener
contextUpdated
in interface IContextListener
IContextListener.contextUpdated()
public void areaChanged()
IContextListener
areaChanged
in interface IContextListener
IContextListener.areaChanged()
public void spaceChanged()
IContextListener
spaceChanged
in interface IContextListener
IContextListener.spaceChanged()
public void filterModeChanged(ActionEvent event)
filterModeChanged
in interface FilterViewSupport
public List<UIListItem> getFilterItems()
getFilterItems
in interface FilterViewSupport
public String getFilterMode()
getFilterMode
in interface FilterViewSupport
public void setFilterMode(String filterMode)
setFilterMode
in interface FilterViewSupport
Copyright © 2005–2017 Alfresco Software. All rights reserved.