|
|||||||||
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.content.BaseContentWizard
public abstract class BaseContentWizard
Base class for the content related wizards and dialogs
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 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 |
---|
protected java.lang.String fileName
protected java.lang.String author
protected java.lang.String title
protected java.lang.String description
protected java.lang.String mimeType
protected java.lang.String encoding
protected java.lang.String objectType
protected boolean inlineEdit
protected boolean otherPropertiesChoiceVisible
protected boolean showOtherProperties
protected org.alfresco.service.cmr.repository.NodeRef createdNode
protected java.util.List objectTypes
protected static final java.lang.String MSG_NODE_LOCKED
protected static org.apache.commons.logging.Log logger
Constructor Detail |
---|
public BaseContentWizard()
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 boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- The name of the filepublic java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- Sets the authorpublic java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType
- Sets the currently selected mime typepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- the document's encodingpublic java.lang.String getObjectType()
public void setObjectType(java.lang.String objectType)
objectType
- Sets the currently selected object typepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- Sets the descriptionpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- Sets the titlepublic boolean isInlineEdit()
public void setInlineEdit(boolean inlineEdit)
inlineEdit
- The inline edit flag to set.public boolean getOtherPropertiesChoiceVisible()
public boolean getShowOtherProperties()
public void setShowOtherProperties(boolean showOthers)
showOthers
- Sets whether the edit properties dialog is shownpublic java.util.List getEncodings()
public java.util.List getObjectTypes()
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
contentService
- The contentService to set.protected org.alfresco.service.cmr.repository.ContentService getContentService()
protected void saveContent(java.io.File fileContent, java.lang.String strContent) throws java.lang.Exception
fileContent
- File content to savestrContent
- String content to save
java.lang.Exception
protected java.lang.String getSummaryMimeType(java.lang.String mimeType)
mimeType
- The mime type to get the display label of
protected java.lang.String getSummaryObjectType()
protected void initOtherProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |