org.alfresco.web.bean.ml
Class MultilingualManageDialog

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

public class MultilingualManageDialog
extends BaseDialogBean

See Also:
Serialized Form

Field Summary
protected  java.util.Map panels
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
MultilingualManageDialog()
           
 
Method Summary
 void expandPanel(javax.faces.event.ActionEvent event)
          Save the state of the panel that was expanded/collapsed
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
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
protected  org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()
           
 SingleEditionBean getCurrentSingleEditionBean()
          For the client side iteration on the edition hitories list, return the current edition history.
protected  java.lang.String getDefaultCancelOutcome()
          Returns the default cancel outcome
 Node getDocument()
          Returns the document this bean is currently representing
 Node getDocumentMlContainer()
          Returns the ml container of the document this bean is currently representing
protected  org.alfresco.service.cmr.ml.EditionService getEditionService()
           
 int getEditionSize()
          For the client side iteration on the edition hitories list, returns the number of editions.
 java.util.List getEmptyListAndInitEditions()
          Init the mlContainer histories and returns an empty list to fill a rich list value without content.
protected  org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
           
 SingleEditionBean getNextSingleEditionBean()
          For the client side iteration on the edition hitories list, return the next edition history.
 Node getNode()
          Returns the Node this bean is currently representing
 java.util.Map getPanels()
           
 java.util.List getTranslations()
          Returns a list of objects representing the translations of the current document
protected  org.alfresco.service.cmr.version.VersionService getVersionService()
           
 void removeTemplate(javax.faces.event.ActionEvent event)
          Action handler to remove a custom view template from the current node
 void resetMLDocument(javax.faces.event.ActionEvent event)
          Restore the translationf from which the ml container details dialog comes.
 void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
           
 void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
           
 void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
           
 void setTranslationDocument(Node node)
          Before opening the ml container details, remeber the translation from which the action comes.
 void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
          Sets the version service instance the bean should use
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, 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

panels

protected java.util.Map panels
Constructor Detail

MultilingualManageDialog

public MultilingualManageDialog()
Method Detail

getDocument

public Node getDocument()
Returns the document this bean is currently representing

Returns:
The document Node

getNode

public Node getNode()
Returns the Node this bean is currently representing

Returns:
The Node

setMultilingualContentService

public void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
Parameters:
multilingualContentService - the multilingual ContentService to set

getMultilingualContentService

protected org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
Returns:
multilingualContentService

setContentFilterLanguagesService

public void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
Parameters:
contentFilterLanguagesService - The Content Filter Languages Service to set.

getContentFilterLanguagesService

protected org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()
Returns:
contentFilterLanguagesService

setEditionService

public void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
Parameters:
EditionService - The Edition Service to set.

getEditionService

protected org.alfresco.service.cmr.ml.EditionService getEditionService()
Returns:
editionService

setVersionService

public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
Sets the version service instance the bean should use

Parameters:
versionService - The VersionService

getVersionService

protected org.alfresco.service.cmr.version.VersionService getVersionService()
Returns:
versionService

setTranslationDocument

public void setTranslationDocument(Node node)
Before opening the ml container details, remeber the translation from which the action comes.

Parameters:
node -

getPanels

public java.util.Map getPanels()
Returns:
Returns the panels expanded state map.

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

getContainerTitle

public java.lang.String getContainerTitle()
Description copied from interface: IDialogBean
Returns the title to be used for the dialog

If this returns null the DialogManager will lookup the title via the dialog configuration

Specified by:
getContainerTitle in interface IDialogBean
Overrides:
getContainerTitle in class BaseDialogBean
Returns:
The title or null if the title is to be acquired via configuration

getCancelButtonLabel

public java.lang.String getCancelButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the cancel button

Specified by:
getCancelButtonLabel in interface IDialogBean
Overrides:
getCancelButtonLabel in class BaseDialogBean
Returns:
The cancel button label

getTranslations

public java.util.List getTranslations()
Returns a list of objects representing the translations of the current document

Returns:
List of translations

getEmptyListAndInitEditions

public java.util.List getEmptyListAndInitEditions()
Init the mlContainer histories and returns an empty list to fill a rich list value without content.

Returns:
an empty list

getEditionSize

public int getEditionSize()
For the client side iteration on the edition hitories list, returns the number of editions.

Returns:
the number of edition of the current mlContainer

getNextSingleEditionBean

public SingleEditionBean getNextSingleEditionBean()
For the client side iteration on the edition hitories list, return the next edition history.

Returns:
a light weight representation of an edition history

getCurrentSingleEditionBean

public SingleEditionBean getCurrentSingleEditionBean()
For the client side iteration on the edition hitories list, return the current edition history.

Returns:
a light weight representation of an edition history

resetMLDocument

public void resetMLDocument(javax.faces.event.ActionEvent event)
Restore the translationf from which the ml container details dialog comes.


removeTemplate

public void removeTemplate(javax.faces.event.ActionEvent event)
Action handler to remove a custom view template from the current node


expandPanel

public void expandPanel(javax.faces.event.ActionEvent event)
Save the state of the panel that was expanded/collapsed


getDocumentMlContainer

public Node getDocumentMlContainer()
Returns the ml container of the document this bean is currently representing

Returns:
The document multilingual container NodeRef

getDefaultCancelOutcome

protected java.lang.String getDefaultCancelOutcome()
Description copied from class: BaseDialogBean
Returns the default cancel outcome

Overrides:
getDefaultCancelOutcome in class BaseDialogBean
Returns:
Default close outcome, dialog:close by default


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