public abstract class BaseDialogBean extends java.lang.Object implements IDialogBean, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected BrowseBean |
browseBean |
protected boolean |
isFinished |
protected NavigationBean |
navigator |
protected java.util.Map |
parameters |
| Constructor and Description |
|---|
BaseDialogBean() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
cancel()
Method handler called when the cancel button of the dialog is pressed
|
protected java.lang.String |
doPostCommitProcessing(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs any post commit processing subclasses may want to provide
|
java.lang.String |
finish()
Method handler called when the finish button of the dialog is pressed
|
protected abstract java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
protected java.lang.String |
formatErrorMessage(java.lang.Throwable exception)
Returns a formatted exception string for the given exception
|
java.lang.String |
getActionsConfigId()
Returns the id of an action group to use for the main actions
|
java.lang.Object |
getActionsContext()
Returns the object to use as the context for the main and more
actions that may be configured by the dialog
|
java.util.List |
getAdditionalButtons()
Returns a list of additional buttons to display in the dialog.
|
java.lang.String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
protected org.alfresco.service.cmr.coci.CheckOutCheckInService |
getCheckOutCheckInService() |
java.lang.String |
getContainerDescription()
Returns the description to be used for the dialog
|
java.lang.String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog
|
java.lang.String |
getContainerTitle()
Returns the title to be used for the dialog
|
protected java.lang.String |
getDefaultCancelOutcome()
Returns the default cancel outcome
|
protected java.lang.String |
getDefaultFinishOutcome()
Returns the default finish outcome
|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService() |
protected java.lang.String |
getErrorMessageId()
The default message id to use in error messages
|
protected java.lang.String |
getErrorOutcome(java.lang.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
|
java.lang.String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
java.lang.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(java.util.Map 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 java.util.Map parameters
protected boolean isFinished
protected BrowseBean browseBean
protected NavigationBean navigator
public void init(java.util.Map parameters)
IDialogBeaninit in interface IDialogBeanparameters - Map of parameters for the dialogpublic void restored()
IDialogBeanrestored in interface IDialogBeanpublic java.lang.String cancel()
IDialogBeancancel in interface IDialogBeanpublic java.lang.String finish()
IDialogBeanfinish in interface IDialogBeanpublic boolean isFinished()
IDialogBeanisFinished in interface IDialogBeanpublic java.util.List getAdditionalButtons()
IDialogBeangetAdditionalButtons in interface IDialogBeanpublic java.lang.String getCancelButtonLabel()
IDialogBeangetCancelButtonLabel in interface IDialogBeanpublic java.lang.String getFinishButtonLabel()
IDialogBeangetFinishButtonLabel in interface IDialogBeanpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeanpublic java.lang.String getContainerTitle()
IDialogBeanIf this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle in interface IDialogBeanpublic java.lang.String getContainerSubTitle()
IDialogBeanIf this returns null the DialogManager will lookup the subtitle via the dialog configuration
getContainerSubTitle in interface IDialogBeanpublic java.lang.String getContainerDescription()
IDialogBeanIf this returns null the DialogManager will lookup the description via the dialog configuration
getContainerDescription in interface IDialogBeanpublic java.lang.Object getActionsContext()
IDialogBeangetActionsContext in interface IDialogBeanpublic java.lang.String getActionsConfigId()
IDialogBeangetActionsConfigId in interface IDialogBeanpublic java.lang.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 java.lang.String getDefaultCancelOutcome()
protected java.lang.String getDefaultFinishOutcome()
protected abstract java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Throwable
context - FacesContextoutcome - The default outcomejava.lang.Throwableprotected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
java.lang.String outcome)
context - FacesContextoutcome - The default outcomeprotected java.lang.String getErrorMessageId()
protected java.lang.String getErrorOutcome(java.lang.Throwable exception)
exception - The exception that got thrownprotected java.lang.String formatErrorMessage(java.lang.Throwable exception)
exception - The exception that got thrownCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.