org.alfresco.web.bean.content
Class BaseContentWizard

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
All Implemented Interfaces:
java.io.Serializable, IDialogBean, IWizardBean
Direct Known Subclasses:
AddContentDialog, CreateContentWizard

public abstract class BaseContentWizard
extends BaseWizardBean

Base class for the content related wizards and dialogs

See Also:
Serialized Form

Field Summary
protected  java.lang.String author
           
protected  org.alfresco.service.cmr.repository.NodeRef createdNode
           
protected  java.lang.String description
           
protected  java.lang.String encoding
           
protected  java.lang.String fileName
           
protected  boolean inlineEdit
           
protected static org.apache.commons.logging.Log logger
           
protected  java.lang.String mimeType
           
protected static java.lang.String MSG_NODE_LOCKED
           
protected  java.lang.String objectType
           
protected  java.util.List objectTypes
           
protected  boolean otherPropertiesChoiceVisible
           
protected  boolean showOtherProperties
           
protected  java.lang.String title
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
BaseContentWizard()
           
 
Method Summary
 java.lang.String getAuthor()
           
protected  org.alfresco.service.cmr.repository.ContentService getContentService()
           
 java.lang.String getDescription()
           
 java.lang.String getEncoding()
           
 java.util.List getEncodings()
           
 java.lang.String getFileName()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getMimeType()
           
 java.lang.String getObjectType()
           
 java.util.List getObjectTypes()
           
 boolean getOtherPropertiesChoiceVisible()
           
 boolean getShowOtherProperties()
           
protected  java.lang.String getSummaryMimeType(java.lang.String mimeType)
          Returns the display label for the mime type currently chosen
protected  java.lang.String getSummaryObjectType()
          Returns the display label for the currently selected object type
 java.lang.String getTitle()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
protected  void initOtherProperties()
          Initialises the other properties flags from config
 boolean isInlineEdit()
           
protected  void saveContent(java.io.File fileContent, java.lang.String strContent)
          Save the specified content using the currently set wizard attributes
 void setAuthor(java.lang.String author)
           
 void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
           
 void setDescription(java.lang.String description)
           
 void setEncoding(java.lang.String encoding)
           
 void setFileName(java.lang.String fileName)
           
 void setInlineEdit(boolean inlineEdit)
           
 void setMimeType(java.lang.String mimeType)
           
 void setObjectType(java.lang.String objectType)
           
 void setShowOtherProperties(boolean showOthers)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, next
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, finishImpl, 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
 
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

fileName

protected java.lang.String fileName

author

protected java.lang.String author

title

protected java.lang.String title

description

protected java.lang.String description

mimeType

protected java.lang.String mimeType

encoding

protected java.lang.String encoding

objectType

protected java.lang.String objectType

inlineEdit

protected boolean inlineEdit

otherPropertiesChoiceVisible

protected boolean otherPropertiesChoiceVisible

showOtherProperties

protected boolean showOtherProperties

createdNode

protected org.alfresco.service.cmr.repository.NodeRef createdNode

objectTypes

protected java.util.List objectTypes

MSG_NODE_LOCKED

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

logger

protected static org.apache.commons.logging.Log logger
Constructor Detail

BaseContentWizard

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

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

getFileName

public java.lang.String getFileName()
Returns:
Returns the name of the file

setFileName

public void setFileName(java.lang.String fileName)
Parameters:
fileName - The name of the file

getAuthor

public java.lang.String getAuthor()
Returns:
Returns the author

setAuthor

public void setAuthor(java.lang.String author)
Parameters:
author - Sets the author

getMimeType

public java.lang.String getMimeType()
Returns:
Returns the mime type currenty selected

setMimeType

public void setMimeType(java.lang.String mimeType)
Parameters:
mimeType - Sets the currently selected mime type

getEncoding

public java.lang.String getEncoding()
Returns:
Returns the encoding currently selected

setEncoding

public void setEncoding(java.lang.String encoding)
Parameters:
encoding - the document's encoding

getObjectType

public java.lang.String getObjectType()
Returns:
Returns the object type currenty selected

setObjectType

public void setObjectType(java.lang.String objectType)
Parameters:
objectType - Sets the currently selected object type

getDescription

public java.lang.String getDescription()
Returns:
Returns the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - Sets the description

getTitle

public java.lang.String getTitle()
Returns:
Returns the title

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - Sets the title

isInlineEdit

public boolean isInlineEdit()
Returns:
Returns the inline edit flag.

setInlineEdit

public void setInlineEdit(boolean inlineEdit)
Parameters:
inlineEdit - The inline edit flag to set.

getOtherPropertiesChoiceVisible

public boolean getOtherPropertiesChoiceVisible()
Returns:
Determines whether the choice to modify all properties is shown

getShowOtherProperties

public boolean getShowOtherProperties()
Returns:
Determines whether the edit properties dialog should be shown when this one ends

setShowOtherProperties

public void setShowOtherProperties(boolean showOthers)
Parameters:
showOthers - Sets whether the edit properties dialog is shown

getEncodings

public java.util.List getEncodings()

getObjectTypes

public java.util.List getObjectTypes()
Returns:
Returns a list of object types to allow the user to select from

setContentService

public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
Parameters:
contentService - The contentService to set.

getContentService

protected org.alfresco.service.cmr.repository.ContentService getContentService()

saveContent

protected void saveContent(java.io.File fileContent,
                           java.lang.String strContent)
                    throws java.lang.Exception
Save the specified content using the currently set wizard attributes

Parameters:
fileContent - File content to save
strContent - String content to save
Throws:
java.lang.Exception

getSummaryMimeType

protected java.lang.String getSummaryMimeType(java.lang.String mimeType)
Returns the display label for the mime type currently chosen

Parameters:
mimeType - The mime type to get the display label of
Returns:
The human readable version of the content type

getSummaryObjectType

protected java.lang.String getSummaryObjectType()
Returns the display label for the currently selected object type

Returns:
The objevt type label

initOtherProperties

protected void initOtherProperties()
Initialises the other properties flags from config



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