public class ImportDialog extends BaseDialogBean
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
ImportDialog() |
Modifier and Type | Method and Description |
---|---|
String |
cancel()
Action called when the dialog is cancelled, just resets the bean's state
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected ActionService |
getActionService() |
String |
getContainerTitle()
Returns the title to be used for the dialog
|
protected ContentService |
getContentService() |
String |
getEncoding() |
List<SelectItem> |
getEncodings() |
String |
getFileName() |
String |
getFileUploadSuccessMsg() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
boolean |
getHighByteZip() |
protected org.alfresco.service.cmr.repository.MimetypeService |
getMimetypeService() |
boolean |
getRunInBackground()
Determines whether the import should run in the background
|
String |
performImport(FacesContext context,
String outcome)
Performs the import operation using the current state of the bean
|
void |
reset()
Resets the dialog state back to the default
|
void |
setActionService(ActionService actionService)
Sets the action service
|
void |
setContentService(ContentService contentService)
Sets the content service
|
void |
setEncoding(String encoding) |
void |
setFileName(String fileName) |
void |
setHighByteZip(boolean highByteZip) |
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the mimetype sevice
|
void |
setRunInBackground(boolean runInBackground)
Determines whether the import will run in the background
|
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
public String performImport(FacesContext context, String outcome)
public String cancel()
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
public void reset()
public String getFileUploadSuccessMsg()
public String getFileName()
public void setFileName(String fileName)
fileName
- The name of the filepublic boolean getRunInBackground()
public void setRunInBackground(boolean runInBackground)
runInBackground
- true to run the import in the backgroundpublic boolean getHighByteZip()
public void setHighByteZip(boolean highByteZip)
highByteZip
- the encoding switch for high-byte ZIP filenames to setpublic void setActionService(ActionService actionService)
actionService
- the action serviceprotected ActionService getActionService()
public void setContentService(ContentService contentService)
contentService
- the content serviceprotected ContentService getContentService()
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
mimetypeService
- the mimetype serviceprotected org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseDialogBean
public String getContainerTitle()
IDialogBean
If this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle
in interface IDialogBean
getContainerTitle
in class BaseDialogBean
public String getEncoding()
public void setEncoding(String encoding)
encoding
- the document's encodingpublic List<SelectItem> getEncodings()
Copyright © 2005–2017 Alfresco Software. All rights reserved.