org.alfresco.web.bean.ml
Class MakeMultilingualDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.ml.MakeMultilingualDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class MakeMultilingualDialog
extends BaseDialogBean

Dialog bean to make a node multilingual

See Also:
Serialized Form

Field Summary
protected  Node editableNode
           
static java.lang.String OPT_ADD_WITH_CONTENT
          if needed, add a new translation with content after this dialog closed
static java.lang.String OPT_ADD_WITHOUT_CONTENT
          if needed, add a new translation without content after this dialog closed
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
MakeMultilingualDialog()
           
 
Method Summary
protected  java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs any post commit processing subclasses may want to provide
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getAddingMode()
           
 java.lang.String getAuthor()
           
 Node getEditableNode()
          Returns the node being edited
 javax.faces.model.SelectItem[] getFilterLanguages()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getLanguage()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
protected  Node initEditableNode()
          Init the editable Node
 boolean isAddTranslationAfter()
           
 void setAddingMode(java.lang.String addingMode)
           
 void setAddTranslationAfter(boolean addTranslationAfter)
           
 void setAuthor(java.lang.String author)
           
 void setEditableNode(Node editableNode)
           
 void setLanguage(java.lang.String language)
           
 void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
           
 void setUserPreferencesBean(UserPreferencesBean userPreferencesBean)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_ADD_WITH_CONTENT

public static final java.lang.String OPT_ADD_WITH_CONTENT
if needed, add a new translation with content after this dialog closed

See Also:
Constant Field Values

OPT_ADD_WITHOUT_CONTENT

public static final java.lang.String OPT_ADD_WITHOUT_CONTENT
if needed, add a new translation without content after this dialog closed

See Also:
Constant Field Values

editableNode

protected Node editableNode
Constructor Detail

MakeMultilingualDialog

public MakeMultilingualDialog()
Method Detail

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class BaseDialogBean
Parameters:
parameters - Map of parameters for the dialog

initEditableNode

protected Node initEditableNode()
Init the editable Node


finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

doPostCommitProcessing

protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
                                                  java.lang.String outcome)
Description copied from class: BaseDialogBean
Performs any post commit processing subclasses may want to provide

Overrides:
doPostCommitProcessing in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome

getFinishButtonDisabled

public boolean getFinishButtonDisabled()
Description copied from interface: IDialogBean
Determines whether the finish button on the dialog should be disabled

Specified by:
getFinishButtonDisabled in interface IDialogBean
Overrides:
getFinishButtonDisabled in class BaseDialogBean
Returns:
true if the button should be disabled

getEditableNode

public Node getEditableNode()
Returns the node being edited

Returns:
The node being edited

getAuthor

public java.lang.String getAuthor()
Returns:
the author of the new created MLContainer

setAuthor

public void setAuthor(java.lang.String author)
Parameters:
author - the author of new created MLContainer

isAddTranslationAfter

public boolean isAddTranslationAfter()
Returns:
if a new translation must be added after this dialog closes

setAddTranslationAfter

public void setAddTranslationAfter(boolean addTranslationAfter)
Parameters:
addTranslationAfter - set to true, a new translation will be added after this dialog closes

getLanguage

public java.lang.String getLanguage()
Returns:
the language of the translation

setLanguage

public void setLanguage(java.lang.String language)
Parameters:
language - the language of the translation

setEditableNode

public void setEditableNode(Node editableNode)
Parameters:
editableNode - the node will become a multilingual

getAddingMode

public java.lang.String getAddingMode()
Returns:
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 not

setAddingMode

public void setAddingMode(java.lang.String addingMode)
Parameters:
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 not

getFilterLanguages

public javax.faces.model.SelectItem[] getFilterLanguages()
Returns:
the complete list of available languages for the multilinguism

setMultilingualContentService

public void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)

setUserPreferencesBean

public void setUserPreferencesBean(UserPreferencesBean userPreferencesBean)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.