org.alfresco.web.bean.ml
Class NewEditionWizard

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

public class NewEditionWizard
extends BaseWizardBean

Wizard bean to create a new edition from an existing MLContainer.

See Also:
Serialized Form

Nested Class Summary
static class NewEditionWizard.TranslationWrapper
          Simple wrapper class to represent a translation in the data table
 
Field Summary
static java.lang.String ID_MESSAGE_MAJOR_CHANGE
           
static java.lang.String ID_MESSAGE_MINOR_CHANGE
           
protected  org.alfresco.service.cmr.repository.NodeRef mlContainerToVersion
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
NewEditionWizard()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getAuthor()
           
 javax.faces.model.DataModel getAvailableTranslationsDataModel()
          Returns the properties for available translations JSF DataModel
protected  org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()
           
 java.lang.String getEditionNotes()
           
protected  org.alfresco.service.cmr.ml.EditionService getEditionService()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 boolean getHasTranslationCheckedOut()
          Determines whether there are any translation checked out.
 java.lang.String getLanguage()
           
protected  org.alfresco.service.cmr.lock.LockService getLockService()
           
protected  org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
           
 boolean getNextButtonDisabled()
          Determines whether the next button on the wizard should be disabled
 java.lang.String getSelectedTranslationLanguage()
           
 java.lang.String getTitle()
           
 javax.faces.model.DataModel getTranslationsCheckedOutDataModel()
          Returns the properties for checked out translations JSF DataModel
 java.lang.String getVersionLabel()
           
protected  org.alfresco.service.cmr.version.VersionService getVersionService()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 boolean isMinorChange()
           
 boolean isOtherProperties()
           
 void setAuthor(java.lang.String author)
           
 void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
           
 void setEditionNotes(java.lang.String editionNotes)
           
 void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
           
 void setLanguage(java.util.Locale locale)
           
 void setLanguage(java.lang.String language)
           
 void setLockService(org.alfresco.service.cmr.lock.LockService lockService)
           
 void setMinorChange(boolean minorChange)
           
 void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
           
 void setOtherProperties(boolean otherProperties)
           
 void setSelectedTranslationLanguage(java.lang.String language)
           
 void setTitle(java.lang.String title)
           
 void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
           
 void skipFirstStep(javax.faces.event.ActionEvent event)
          Force the the lang of the new pivot translation for the new edition and skip the first step
 
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, next
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, 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
 
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
 

Field Detail

ID_MESSAGE_MINOR_CHANGE

public static final java.lang.String ID_MESSAGE_MINOR_CHANGE
See Also:
Constant Field Values

ID_MESSAGE_MAJOR_CHANGE

public static final java.lang.String ID_MESSAGE_MAJOR_CHANGE
See Also:
Constant Field Values

mlContainerToVersion

protected org.alfresco.service.cmr.repository.NodeRef mlContainerToVersion
Constructor Detail

NewEditionWizard

public NewEditionWizard()
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

skipFirstStep

public void skipFirstStep(javax.faces.event.ActionEvent event)
Force the the lang of the new pivot translation for the new edition and skip the first step


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

getTranslationsCheckedOutDataModel

public javax.faces.model.DataModel getTranslationsCheckedOutDataModel()
Returns the properties for checked out translations JSF DataModel

Returns:
JSF DataModel representing the translations checked out

getAvailableTranslationsDataModel

public javax.faces.model.DataModel getAvailableTranslationsDataModel()
Returns the properties for available translations JSF DataModel

Returns:
JSF DataModel representing the available translation for a new edition

getHasTranslationCheckedOut

public boolean getHasTranslationCheckedOut()
Determines whether there are any translation checked out.

Returns:
true if there are translation checked out

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

getNextButtonDisabled

public boolean getNextButtonDisabled()
Description copied from interface: IWizardBean
Determines whether the next button on the wizard should be disabled

Specified by:
getNextButtonDisabled in interface IWizardBean
Overrides:
getNextButtonDisabled in class BaseWizardBean
Returns:
true if the button should be disabled

getEditionNotes

public java.lang.String getEditionNotes()
Returns:
the edition notes

setEditionNotes

public void setEditionNotes(java.lang.String editionNotes)
Parameters:
editionNotes - the edition notes to set

isMinorChange

public boolean isMinorChange()
Returns:
the minorChange get if the new edition is minor or not.

setMinorChange

public void setMinorChange(boolean minorChange)
Parameters:
minorChange - set if the new edition is minor or not.

isOtherProperties

public boolean isOtherProperties()
Returns:
the otherProperties, get if the edit details dialog must be set at the end of the wizard

setOtherProperties

public void setOtherProperties(boolean otherProperties)
Parameters:
otherProperties - set as true, the edit details dialog must be set at the end of the wizard

getAuthor

public java.lang.String getAuthor()
Returns:
the author

getLanguage

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

setLanguage

public void setLanguage(java.lang.String language)
Parameters:
language - the language to set

setLanguage

public void setLanguage(java.util.Locale locale)
Parameters:
language - the language to set

getTitle

public java.lang.String getTitle()
Returns:
the title

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - the title to set

setAuthor

public void setAuthor(java.lang.String author)
Parameters:
author - the author to set

getVersionLabel

public java.lang.String getVersionLabel()
Returns:
the versionLabel

getSelectedTranslationLanguage

public java.lang.String getSelectedTranslationLanguage()
Returns:
the selectedTranslationLanguage

setSelectedTranslationLanguage

public void setSelectedTranslationLanguage(java.lang.String language)
Parameters:
selectedTranslationLanguage - the selectedTranslationLanguage to set

setMultilingualContentService

public void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
Parameters:
multilingualContentService - the Multilingual Content Service to set

getMultilingualContentService

protected org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()

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()

setLockService

public void setLockService(org.alfresco.service.cmr.lock.LockService lockService)
Parameters:
lockService - the Lock Service to set

getLockService

protected org.alfresco.service.cmr.lock.LockService getLockService()

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()

setVersionService

public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
Parameters:
versionService - the version Service to set

getVersionService

protected org.alfresco.service.cmr.version.VersionService getVersionService()


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