public abstract class BaseContentWizard extends BaseWizardBean
Modifier and Type | Field and Description |
---|---|
protected String |
author |
protected org.alfresco.service.cmr.repository.NodeRef |
createdNode |
protected String |
description |
protected String |
encoding |
protected String |
fileName |
protected boolean |
inlineEdit |
protected static org.apache.commons.logging.Log |
logger |
protected String |
mimeType |
protected static String |
MSG_NODE_LOCKED |
protected String |
objectType |
protected List<SelectItem> |
objectTypes |
protected boolean |
otherPropertiesChoiceVisible |
protected boolean |
showOtherProperties |
protected String |
title |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
BaseContentWizard() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor() |
protected ContentService |
getContentService() |
String |
getDescription() |
String |
getEncoding() |
List<SelectItem> |
getEncodings() |
String |
getFileName() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getMimeType() |
String |
getObjectType() |
List<SelectItem> |
getObjectTypes() |
boolean |
getOtherPropertiesChoiceVisible() |
boolean |
getShowOtherProperties() |
protected String |
getSummaryMimeType(String mimeType)
Returns the display label for the mime type currently chosen
|
protected String |
getSummaryObjectType()
Returns the display label for the currently selected object type
|
String |
getTitle() |
protected TransactionService |
getTransactionService() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
protected void |
initOtherProperties()
Initialises the other properties flags from config
|
boolean |
isInlineEdit() |
protected void |
saveContent(File fileContent,
String strContent)
Save the specified content using the currently set wizard attributes
|
void |
setAuthor(String author) |
void |
setContentService(ContentService contentService) |
void |
setDescription(String description) |
void |
setEncoding(String encoding) |
void |
setFileName(String fileName) |
void |
setInlineEdit(boolean inlineEdit) |
void |
setMimeType(String mimeType) |
void |
setObjectType(String objectType) |
void |
setShowOtherProperties(boolean showOthers) |
void |
setTitle(String title) |
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, next
cancel, doPostCommitProcessing, finish, finishImpl, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
protected String fileName
protected String author
protected String title
protected String description
protected String mimeType
protected String encoding
protected String objectType
protected boolean inlineEdit
protected boolean otherPropertiesChoiceVisible
protected boolean showOtherProperties
protected org.alfresco.service.cmr.repository.NodeRef createdNode
protected List<SelectItem> objectTypes
protected static final String MSG_NODE_LOCKED
protected static org.apache.commons.logging.Log logger
public void init(Map<String,String> 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 String getFileName()
public void setFileName(String fileName)
fileName
- The name of the filepublic String getAuthor()
public void setAuthor(String author)
author
- Sets the authorpublic String getMimeType()
public void setMimeType(String mimeType)
mimeType
- Sets the currently selected mime typepublic String getEncoding()
public void setEncoding(String encoding)
encoding
- the document's encodingpublic String getObjectType()
public void setObjectType(String objectType)
objectType
- Sets the currently selected object typepublic String getDescription()
public void setDescription(String description)
description
- Sets the descriptionpublic String getTitle()
public void setTitle(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 List<SelectItem> getEncodings()
public List<SelectItem> getObjectTypes()
public void setContentService(ContentService contentService)
contentService
- The contentService to set.protected ContentService getContentService()
protected TransactionService getTransactionService()
getTransactionService
in class BaseDialogBean
protected void saveContent(File fileContent, String strContent) throws Exception
fileContent
- File content to savestrContent
- String content to saveException
protected String getSummaryMimeType(String mimeType)
mimeType
- The mime type to get the display label ofprotected String getSummaryObjectType()
protected void initOtherProperties()
Copyright © 2005–2017 Alfresco Software. All rights reserved.