org.alfresco.web.bean.wcm
Class PromptForWebFormDialog

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

public class PromptForWebFormDialog
extends BaseDialogBean

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
          AVM Browse Bean reference
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
PromptForWebFormDialog()
           
 
Method Summary
 java.lang.String cancel()
          Method handler called when the cancel button of the dialog is pressed
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 AVMNode getAvmNode()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
protected  java.lang.String getDefaultCancelOutcome()
          Returns the default cancel outcome
protected  java.lang.String getDefaultFinishOutcome()
          Returns the default finish outcome
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.util.List getFormChoices()
           
 java.lang.String getFormName()
           
protected  FormsService getFormsService()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setFormName(java.lang.String formName)
           
 void setFormsService(FormsService formsService)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, 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
 

Field Detail

avmBrowseBean

protected AVMBrowseBean avmBrowseBean
AVM Browse Bean reference

Constructor Detail

PromptForWebFormDialog

public PromptForWebFormDialog()
Method Detail

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The avmService to set.

getAvmService

protected org.alfresco.service.cmr.avm.AVMService getAvmService()

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Parameters:
avmBrowseBean - The AVMBrowseBean to set.

setFormsService

public void setFormsService(FormsService formsService)
Parameters:
formsService - The FormsService to set.

getFormsService

protected FormsService getFormsService()

getAvmNode

public AVMNode getAvmNode()
Returns:
Returns the current AVM node context.

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

cancel

public java.lang.String cancel()
Description copied from interface: IDialogBean
Method handler called when the cancel button of the dialog is pressed

Specified by:
cancel in interface IDialogBean
Overrides:
cancel in class BaseDialogBean
Returns:
The outcome to return

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

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

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

getDefaultFinishOutcome

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

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

getFormChoices

public java.util.List getFormChoices()
Returns:
the available forms from this web project that can be created.

getFormName

public java.lang.String getFormName()
Returns:
the currently selected form

setFormName

public void setFormName(java.lang.String formName)
Parameters:
form - Sets the currently selected form


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