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<javax.faces.model.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 org.alfresco.service.cmr.repository.ContentService |
getContentService() |
String |
getDescription() |
String |
getEncoding() |
List<javax.faces.model.SelectItem> |
getEncodings() |
String |
getFileName() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getMimeType() |
String |
getObjectType() |
List<javax.faces.model.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 org.alfresco.service.transaction.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(org.alfresco.service.cmr.repository.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, nextcancel, 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, setSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restoredprotected 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<javax.faces.model.SelectItem> objectTypes
protected static final String MSG_NODE_LOCKED
protected static org.apache.commons.logging.Log logger
public void init(Map<String,String> parameters)
IDialogBeaninit in interface IDialogBeaninit in class BaseDialogBeanparameters - Map of parameters for the dialogpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanpublic 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<javax.faces.model.SelectItem> getEncodings()
public List<javax.faces.model.SelectItem> 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 org.alfresco.service.transaction.TransactionService getTransactionService()
getTransactionService in class BaseDialogBeanprotected void saveContent(File fileContent, String strContent) throws Exception
fileContent - File content to savestrContent - String content to saveExceptionprotected String getSummaryMimeType(String mimeType)
mimeType - The mime type to get the display label ofprotected String getSummaryObjectType()
protected void initOtherProperties()
Copyright © 2005–2018 Alfresco Software. All rights reserved.