org.alfresco.web.bean.content
Class EditContentPropertiesDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.content.EditContentPropertiesDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean
Direct Known Subclasses:
EditFilePropertiesDialog, SetContentPropertiesDialog

public class EditContentPropertiesDialog
extends BaseDialogBean

Bean implementation of the "Edit Content Properties" dialog.

See Also:
Serialized Form

Field Summary
protected  Node editableNode
           
protected static java.lang.String TEMP_PROP_ENCODING
           
protected static java.lang.String TEMP_PROP_MIMETYPE
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
EditContentPropertiesDialog()
           
 
Method Summary
protected  java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs any post commit processing subclasses may want to provide
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
protected  java.lang.String formatErrorMessage(java.lang.Throwable exception)
          Formats the error message to display if an error occurs during finish processing
 Node getEditableNode()
          Returns the node being edited
protected  java.lang.String getErrorOutcome(java.lang.Throwable exception)
          The outcome to return if the given exception occurs
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 void init(java.util.Map parameters)
          Initialises the dialog bean
protected  Node initEditableNode()
          Init the editable Node
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, 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

TEMP_PROP_MIMETYPE

protected static final java.lang.String TEMP_PROP_MIMETYPE
See Also:
Constant Field Values

TEMP_PROP_ENCODING

protected static final java.lang.String TEMP_PROP_ENCODING
See Also:
Constant Field Values

editableNode

protected Node editableNode
Constructor Detail

EditContentPropertiesDialog

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

initEditableNode

protected Node initEditableNode()
Init the editable Node


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

doPostCommitProcessing

protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
                                                  java.lang.String outcome)
Description copied from class: BaseDialogBean
Performs any post commit processing subclasses may want to provide

Overrides:
doPostCommitProcessing in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome

formatErrorMessage

protected java.lang.String formatErrorMessage(java.lang.Throwable exception)
Formats the error message to display if an error occurs during finish processing

Overrides:
formatErrorMessage in class BaseDialogBean
Parameters:
exception - The exception
Returns:
The formatted message

getErrorOutcome

protected java.lang.String getErrorOutcome(java.lang.Throwable exception)
Description copied from class: BaseDialogBean
The outcome to return if the given exception occurs

Overrides:
getErrorOutcome in class BaseDialogBean
Parameters:
exception - The exception that got thrown
Returns:
The error outcome, null by default

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

getEditableNode

public Node getEditableNode()
Returns the node being edited

Returns:
The node being edited


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