|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.wizard.BaseWizardBean
org.alfresco.web.bean.ml.NewEditionWizard
public class NewEditionWizard
Wizard bean to create a new edition from an existing MLContainer.
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 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 |
---|
public static final java.lang.String ID_MESSAGE_MINOR_CHANGE
public static final java.lang.String ID_MESSAGE_MAJOR_CHANGE
protected org.alfresco.service.cmr.repository.NodeRef mlContainerToVersion
Constructor Detail |
---|
public NewEditionWizard()
Method Detail |
---|
public void init(java.util.Map parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic void skipFirstStep(javax.faces.event.ActionEvent event)
protected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
public javax.faces.model.DataModel getTranslationsCheckedOutDataModel()
public javax.faces.model.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 java.lang.String getEditionNotes()
public void setEditionNotes(java.lang.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 java.lang.String getAuthor()
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- the language to setpublic void setLanguage(java.util.Locale locale)
language
- the language to setpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to setpublic void setAuthor(java.lang.String author)
author
- the author to setpublic java.lang.String getVersionLabel()
public java.lang.String getSelectedTranslationLanguage()
public void setSelectedTranslationLanguage(java.lang.String language)
selectedTranslationLanguage
- the selectedTranslationLanguage to setpublic void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
multilingualContentService
- the Multilingual Content Service to setprotected org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
public void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
contentFilterLanguagesService
- the Content Filter Languages Service to setprotected org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()
public void setLockService(org.alfresco.service.cmr.lock.LockService lockService)
lockService
- the Lock Service to setprotected org.alfresco.service.cmr.lock.LockService getLockService()
public void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
editionService
- the Edition Service to setprotected org.alfresco.service.cmr.ml.EditionService getEditionService()
public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
versionService
- the version Service to setprotected org.alfresco.service.cmr.version.VersionService getVersionService()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |