org.alfresco.web.bean.admin
Class ImportDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.admin.ImportDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class ImportDialog
extends BaseDialogBean

Backing bean implementation for the Import dialog.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
ImportDialog()
           
 
Method Summary
 java.lang.String cancel()
          Action called when the dialog is cancelled, just resets the bean's state
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
protected  org.alfresco.service.cmr.action.ActionService getActionService()
           
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
protected  org.alfresco.service.cmr.repository.ContentService getContentService()
           
 java.lang.String getEncoding()
          Returns the encoding to use for the export
 java.lang.String getFileName()
           
 java.lang.String getFileUploadSuccessMsg()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getFinishButtonLabel()
          Returns the label to use for the finish button
protected  org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
           
 boolean getRunInBackground()
          Determines whether the import should run in the background
 java.lang.String performImport(javax.faces.context.FacesContext context, java.lang.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(org.alfresco.service.cmr.action.ActionService actionService)
          Sets the action service
 void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
          Sets the content service
 void setEncoding(java.lang.String encoding)
          Sets the encoding to use for the export package
 void setFileName(java.lang.String fileName)
           
 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
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportDialog

public ImportDialog()
Method Detail

performImport

public java.lang.String performImport(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
Performs the import operation using the current state of the bean

Returns:
The outcome

cancel

public java.lang.String cancel()
Action called when the dialog is cancelled, just resets the bean's state

Specified by:
cancel in interface IDialogBean
Overrides:
cancel in class BaseDialogBean
Returns:
The outcome

reset

public void reset()
Resets the dialog state back to the default


getFileUploadSuccessMsg

public java.lang.String getFileUploadSuccessMsg()
Returns:
Returns the message to display when a file has been uploaded

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

getEncoding

public java.lang.String getEncoding()
Returns the encoding to use for the export

Returns:
The encoding

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding to use for the export package

Parameters:
encoding - The encoding

getRunInBackground

public boolean getRunInBackground()
Determines whether the import should run in the background

Returns:
true means the import will run in the background

setRunInBackground

public void setRunInBackground(boolean runInBackground)
Determines whether the import will run in the background

Parameters:
runInBackground - true to run the import in the background

setActionService

public void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
Sets the action service

Parameters:
actionService - the action service

getActionService

protected org.alfresco.service.cmr.action.ActionService getActionService()

setContentService

public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
Sets the content service

Parameters:
contentService - the content service

getContentService

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

setMimetypeService

public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Sets the mimetype sevice

Parameters:
mimetypeService - the mimetype service

getMimetypeService

protected org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()

finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

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

getFinishButtonLabel

public java.lang.String getFinishButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the finish button

Specified by:
getFinishButtonLabel in interface IDialogBean
Overrides:
getFinishButtonLabel in class BaseDialogBean
Returns:
The finish button label

getContainerTitle

public java.lang.String getContainerTitle()
Description copied from interface: IDialogBean
Returns the title to be used for the dialog

If this returns null the DialogManager will lookup the title via the dialog configuration

Specified by:
getContainerTitle in interface IDialogBean
Overrides:
getContainerTitle in class BaseDialogBean
Returns:
The title or null if the title is to be acquired via configuration


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