public class MakeMultilingualDialog extends BaseDialogBean
Modifier and Type | Field and Description |
---|---|
protected Node |
editableNode |
static String |
OPT_ADD_WITH_CONTENT
if needed, add a new translation with content after this dialog closed
|
static String |
OPT_ADD_WITHOUT_CONTENT
if needed, add a new translation without content after this dialog closed
|
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
MakeMultilingualDialog() |
Modifier and Type | Method and Description |
---|---|
protected String |
doPostCommitProcessing(FacesContext context,
String outcome)
Performs any post commit processing subclasses may want to provide
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
String |
getAddingMode() |
String |
getAuthor() |
Node |
getEditableNode()
Returns the node being edited
|
SelectItem[] |
getFilterLanguages() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getLanguage() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
protected Node |
initEditableNode()
Init the editable Node
|
boolean |
isAddTranslationAfter() |
void |
setAddingMode(String addingMode) |
void |
setAddTranslationAfter(boolean addTranslationAfter) |
void |
setAuthor(String author) |
void |
setEditableNode(Node editableNode) |
void |
setLanguage(String language) |
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setUserPreferencesBean(UserPreferencesBean userPreferencesBean) |
cancel, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
public static final String OPT_ADD_WITH_CONTENT
public static final String OPT_ADD_WITHOUT_CONTENT
protected Node editableNode
public void init(Map<String,String> parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogprotected Node initEditableNode()
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
protected String doPostCommitProcessing(FacesContext context, String outcome)
BaseDialogBean
doPostCommitProcessing
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomepublic boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public Node getEditableNode()
public String getAuthor()
public void setAuthor(String author)
author
- the author of new created MLContainerpublic boolean isAddTranslationAfter()
public void setAddTranslationAfter(boolean addTranslationAfter)
addTranslationAfter
- set to true, a new translation will be added after this dialog closespublic String getLanguage()
public void setLanguage(String language)
language
- the language of the translationpublic void setEditableNode(Node editableNode)
editableNode
- the node will become a multilingualpublic String getAddingMode()
public void setAddingMode(String addingMode)
addingMode
- if the new translation must be added at the end of this dialog,
this mode defines if the translation will be an empty document or notpublic SelectItem[] getFilterLanguages()
public void setMultilingualContentService(MultilingualContentService multilingualContentService)
public void setUserPreferencesBean(UserPreferencesBean userPreferencesBean)
Copyright © 2005–2017 Alfresco Software. All rights reserved.