public class NewEditionWizard extends BaseWizardBean
Modifier and Type | Class and Description |
---|---|
static class |
NewEditionWizard.TranslationWrapper
Simple wrapper class to represent a translation in the data table
|
Modifier and Type | Field and Description |
---|---|
static String |
ID_MESSAGE_MAJOR_CHANGE |
static String |
ID_MESSAGE_MINOR_CHANGE |
protected org.alfresco.service.cmr.repository.NodeRef |
mlContainerToVersion |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
NewEditionWizard() |
Modifier and Type | Method and Description |
---|---|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
String |
getAuthor() |
DataModel |
getAvailableTranslationsDataModel()
Returns the properties for available translations JSF DataModel
|
protected ContentFilterLanguagesService |
getContentFilterLanguagesService() |
String |
getEditionNotes() |
protected 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.
|
String |
getLanguage() |
protected LockService |
getLockService() |
protected MultilingualContentService |
getMultilingualContentService() |
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled
|
String |
getSelectedTranslationLanguage() |
String |
getTitle() |
DataModel |
getTranslationsCheckedOutDataModel()
Returns the properties for checked out translations JSF DataModel
|
String |
getVersionLabel() |
protected VersionService |
getVersionService() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
boolean |
isMinorChange() |
boolean |
isOtherProperties() |
void |
setAuthor(String author) |
void |
setContentFilterLanguagesService(ContentFilterLanguagesService contentFilterLanguagesService) |
void |
setEditionNotes(String editionNotes) |
void |
setEditionService(EditionService editionService) |
void |
setLanguage(Locale locale) |
void |
setLanguage(String language) |
void |
setLockService(LockService lockService) |
void |
setMinorChange(boolean minorChange) |
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setOtherProperties(boolean otherProperties) |
void |
setSelectedTranslationLanguage(String language) |
void |
setTitle(String title) |
void |
setVersionService(VersionService versionService) |
void |
skipFirstStep(ActionEvent event)
Force the the lang of the new pivot translation for the new edition and skip the first step
|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, next
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
public static final String ID_MESSAGE_MINOR_CHANGE
public static final String ID_MESSAGE_MAJOR_CHANGE
protected org.alfresco.service.cmr.repository.NodeRef mlContainerToVersion
public void init(Map<String,String> parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic void skipFirstStep(ActionEvent event)
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public DataModel getTranslationsCheckedOutDataModel()
public DataModel getAvailableTranslationsDataModel()
public boolean getHasTranslationCheckedOut()
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled
in interface IWizardBean
getNextButtonDisabled
in class BaseWizardBean
public String getEditionNotes()
public void setEditionNotes(String editionNotes)
editionNotes
- the edition notes to setpublic boolean isMinorChange()
public void setMinorChange(boolean minorChange)
minorChange
- set if the new edition is minor or not.public boolean isOtherProperties()
public void setOtherProperties(boolean otherProperties)
otherProperties
- set as true, the edit details dialog must be set at the end of the wizardpublic String getAuthor()
public String getLanguage()
public void setLanguage(String language)
language
- the language to setpublic void setLanguage(Locale locale)
locale
- the language to setpublic String getTitle()
public void setTitle(String title)
title
- the title to setpublic void setAuthor(String author)
author
- the author to setpublic String getVersionLabel()
public String getSelectedTranslationLanguage()
public void setSelectedTranslationLanguage(String language)
language
- the selectedTranslationLanguage to setpublic void setMultilingualContentService(MultilingualContentService multilingualContentService)
multilingualContentService
- the Multilingual Content Service to setprotected MultilingualContentService getMultilingualContentService()
public void setContentFilterLanguagesService(ContentFilterLanguagesService contentFilterLanguagesService)
contentFilterLanguagesService
- the Content Filter Languages Service to setprotected ContentFilterLanguagesService getContentFilterLanguagesService()
public void setLockService(LockService lockService)
lockService
- the Lock Service to setprotected LockService getLockService()
public void setEditionService(EditionService editionService)
editionService
- the Edition Service to setprotected EditionService getEditionService()
public void setVersionService(VersionService versionService)
versionService
- the version Service to setprotected VersionService getVersionService()
Copyright © 2005–2017 Alfresco Software. All rights reserved.