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(javax.faces.event.ActionEvent event) |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
java.lang.String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
org.alfresco.service.cmr.rule.Rule |
getCurrentRule()
Returns the current rule
|
java.util.List |
getFilterItems() |
java.lang.String |
getFilterMode() |
boolean |
getIgnoreInheritedRules() |
java.lang.String |
getIgnoreInheritedRulesLabelId()
Gets the label id from the ignore inhertied action
|
UIRichList |
getRichList()
Returns the UIRichList component being used by this backing bean
|
java.util.List |
getRules()
Returns the list of rules to display
|
protected org.alfresco.service.cmr.rule.RuleService |
getRuleService()
Get the rule service
|
Node |
getSpace() |
void |
ignoreInheritedRules(javax.faces.event.ActionEvent event)
Action listener to ignore (or include) inherited rules.
|
void |
reapplyRules(javax.faces.event.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(org.alfresco.service.cmr.action.ActionService actionService)
Set the action service to use
|
void |
setFilterMode(java.lang.String filterMode) |
void |
setRichList(UIRichList richList)
Sets the UIRichList component being used by this backing bean
|
void |
setRuleService(org.alfresco.service.cmr.rule.RuleService ruleService) |
void |
setupRuleAction(javax.faces.event.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, setSearchServicepublic Node getSpace()
public org.alfresco.service.cmr.rule.Rule getCurrentRule()
public java.util.List getRules()
public void setupRuleAction(javax.faces.event.ActionEvent event)
event - The event representing the clickpublic void reapplyRules(javax.faces.event.ActionEvent event)
event - public java.lang.String getIgnoreInheritedRulesLabelId()
public boolean getIgnoreInheritedRules()
public void ignoreInheritedRules(javax.faces.event.ActionEvent event)
event - the action event objectprotected 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 void restored()
IDialogBeanrestored in interface IDialogBeanrestored in class BaseDialogBeanpublic java.lang.String getCancelButtonLabel()
IDialogBeangetCancelButtonLabel in interface IDialogBeangetCancelButtonLabel in class BaseDialogBeanpublic void setRichList(UIRichList richList)
richList - UIRichList componentpublic UIRichList getRichList()
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 setActionService(org.alfresco.service.cmr.action.ActionService actionService)
actionService - the action servicepublic void contextUpdated()
IContextListenercontextUpdated in interface IContextListenerIContextListener.contextUpdated()public void areaChanged()
IContextListenerareaChanged in interface IContextListenerIContextListener.areaChanged()public void spaceChanged()
IContextListenerspaceChanged in interface IContextListenerIContextListener.spaceChanged()public void filterModeChanged(javax.faces.event.ActionEvent event)
filterModeChanged in interface FilterViewSupportpublic java.util.List getFilterItems()
getFilterItems in interface FilterViewSupportpublic java.lang.String getFilterMode()
getFilterMode in interface FilterViewSupportpublic void setFilterMode(java.lang.String filterMode)
setFilterMode in interface FilterViewSupportCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.