org.alfresco.web.bean.forums
Class CreatePostDialog

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.content.BaseContentWizard
              extended by org.alfresco.web.bean.content.CreateContentWizard
                  extended by org.alfresco.web.bean.forums.CreatePostDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean, IWizardBean
Direct Known Subclasses:
CreateReplyDialog, EditPostDialog

public class CreatePostDialog
extends CreateContentWizard

Bean implementation of the "New Post Dialog".

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.content.CreateContentWizard
content, createMimeTypes, formName, formProcessorSession, formsService, instanceDataDocument
 
Fields inherited from class org.alfresco.web.bean.content.BaseContentWizard
author, createdNode, description, encoding, fileName, inlineEdit, mimeType, MSG_NODE_LOCKED, objectType, objectTypes, otherPropertiesChoiceVisible, showOtherProperties, title
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
CreatePostDialog()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getFinishButtonLabel()
          Returns the label to use for the finish button
 void init(java.util.Map parameters)
          Initialises the dialog bean
 
Methods inherited from class org.alfresco.web.bean.content.CreateContentWizard
createContentChanged, doPostCommitProcessing, finish, formatErrorMessage, getContent, getCreateMimeTypes, getFileName, getForm, getFormName, getFormProcessorSession, getFormsList, getInstanceDataDocument, getNextButtonDisabled, getSummary, setContent, setFormName, setFormProcessorSession, setFormsService
 
Methods inherited from class org.alfresco.web.bean.content.BaseContentWizard
getAuthor, getContentService, getDescription, getEncoding, getEncodings, getMimeType, getObjectType, getObjectTypes, getOtherPropertiesChoiceVisible, getShowOtherProperties, getSummaryMimeType, getSummaryObjectType, getTitle, initOtherProperties, isInlineEdit, saveContent, setAuthor, setContentService, setDescription, setEncoding, setFileName, setInlineEdit, setMimeType, setObjectType, setShowOtherProperties, setTitle
 
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getNextButtonLabel, getStepDescription, getStepTitle, next
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, 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, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
 

Constructor Detail

CreatePostDialog

public CreatePostDialog()
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 CreateContentWizard
Parameters:
parameters - Map of parameters for the dialog

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

Overrides:
finishImpl in class CreateContentWizard
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

getFinishButtonLabel

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

Specified by:
getFinishButtonLabel in interface IDialogBean
Overrides:
getFinishButtonLabel in class BaseWizardBean
Returns:
The finish button label

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 CreateContentWizard
Returns:
true if the button should be disabled


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