public abstract class BaseDialogBean extends Object implements IDialogBean, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected BrowseBean |
browseBean |
protected boolean |
isFinished |
protected NavigationBean |
navigator |
protected Map<String,String> |
parameters |
| Constructor and Description |
|---|
BaseDialogBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
cancel()
Method handler called when the cancel button of the dialog is pressed
|
protected String |
doPostCommitProcessing(javax.faces.context.FacesContext context,
String outcome)
Performs any post commit processing subclasses may want to provide
|
String |
finish()
Method handler called when the finish button of the dialog is pressed
|
protected abstract String |
finishImpl(javax.faces.context.FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected String |
formatErrorMessage(Throwable exception)
Returns a formatted exception string for the given exception
|
String |
getActionsConfigId()
Returns the id of an action group to use for the main actions
|
Object |
getActionsContext()
Returns the object to use as the context for the main and more
actions that may be configured by the dialog
|
List<DialogsConfigElement.DialogButtonConfig> |
getAdditionalButtons()
Returns a list of additional buttons to display in the dialog.
|
String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
protected org.alfresco.service.cmr.coci.CheckOutCheckInService |
getCheckOutCheckInService() |
String |
getContainerDescription()
Returns the description to be used for the dialog
|
String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog
|
String |
getContainerTitle()
Returns the title to be used for the dialog
|
protected String |
getDefaultCancelOutcome()
Returns the default cancel outcome
|
protected String |
getDefaultFinishOutcome()
Returns the default finish outcome
|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService() |
protected String |
getErrorMessageId()
The default message id to use in error messages
|
protected String |
getErrorOutcome(Throwable exception)
The outcome to return if the given exception occurs
|
protected org.alfresco.service.cmr.model.FileFolderService |
getFileFolderService() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
String |
getMoreActionsConfigId()
Returns the id of an action group to use for the more actions
|
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService() |
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
protected org.alfresco.service.cmr.rule.RuleService |
getRuleService()
Get the rule service
|
protected org.alfresco.service.cmr.search.SearchService |
getSearchService() |
protected org.alfresco.service.transaction.TransactionService |
getTransactionService() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
boolean |
isFinished()
Determines whether the has finished
|
void |
restored()
Called when the dialog is restored after a nested dialog is closed
|
void |
setBrowseBean(BrowseBean browseBean) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the dictionary service
|
void |
setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNavigator(NavigationBean navigator) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
protected boolean isFinished
protected BrowseBean browseBean
protected NavigationBean navigator
public void init(Map<String,String> parameters)
IDialogBeaninit in interface IDialogBeanparameters - Map of parameters for the dialogpublic void restored()
IDialogBeanrestored in interface IDialogBeanpublic String cancel()
IDialogBeancancel in interface IDialogBeanpublic String finish()
IDialogBeanfinish in interface IDialogBeanpublic boolean isFinished()
IDialogBeanisFinished in interface IDialogBeanpublic List<DialogsConfigElement.DialogButtonConfig> getAdditionalButtons()
IDialogBeangetAdditionalButtons in interface IDialogBeanpublic String getCancelButtonLabel()
IDialogBeangetCancelButtonLabel in interface IDialogBeanpublic String getFinishButtonLabel()
IDialogBeangetFinishButtonLabel in interface IDialogBeanpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeanpublic String getContainerTitle()
IDialogBeanIf this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle in interface IDialogBeanpublic String getContainerSubTitle()
IDialogBeanIf this returns null the DialogManager will lookup the subtitle via the dialog configuration
getContainerSubTitle in interface IDialogBeanpublic String getContainerDescription()
IDialogBeanIf this returns null the DialogManager will lookup the description via the dialog configuration
getContainerDescription in interface IDialogBeanpublic Object getActionsContext()
IDialogBeangetActionsContext in interface IDialogBeanpublic String getActionsConfigId()
IDialogBeangetActionsConfigId in interface IDialogBeanpublic String getMoreActionsConfigId()
IDialogBeangetMoreActionsConfigId in interface IDialogBeanpublic void setBrowseBean(BrowseBean browseBean)
browseBean - The BrowseBean to set.public void setNavigator(NavigationBean navigator)
navigator - The NavigationBean to set.protected org.alfresco.service.transaction.TransactionService getTransactionService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - The nodeService to set.protected org.alfresco.service.cmr.repository.NodeService getNodeService()
protected org.alfresco.service.cmr.coci.CheckOutCheckInService getCheckOutCheckInService()
protected org.alfresco.service.cmr.rule.RuleService getRuleService()
public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
fileFolderService - used to manipulate folder/folder model nodesprotected org.alfresco.service.cmr.model.FileFolderService getFileFolderService()
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService - the service used to find nodesprotected org.alfresco.service.cmr.search.SearchService getSearchService()
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionary serviceprotected org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - The NamespaceServiceprotected org.alfresco.service.namespace.NamespaceService getNamespaceService()
protected String getDefaultCancelOutcome()
protected String getDefaultFinishOutcome()
protected abstract String finishImpl(javax.faces.context.FacesContext context, String outcome) throws Throwable
context - FacesContextoutcome - The default outcomeThrowableprotected String doPostCommitProcessing(javax.faces.context.FacesContext context, String outcome)
context - FacesContextoutcome - The default outcomeprotected String getErrorMessageId()
protected String getErrorOutcome(Throwable exception)
exception - The exception that got thrownCopyright © 2005–2018 Alfresco Software. All rights reserved.