org.alfresco.web.bean.admin
Class ExportDialog

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

public class ExportDialog
extends BaseDialogBean

Backing bean implementation for the Export dialog.

See Also:
Serialized Form

Field Summary
protected  BrowseBean browseBean
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
isFinished, navigator, parameters
 
Constructor Summary
ExportDialog()
           
 
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
 org.alfresco.service.cmr.repository.NodeRef getDestination()
          The destination for the export as a NodeRef
 java.lang.String getEncoding()
          Returns the encoding to use for the export
 boolean getIncludeChildren()
          Determines whether the export will include child spaces
 boolean getIncludeSelf()
          Determines whether the export will include the space itself
 java.lang.String getMode()
          Determines whether to export only the current space or all spaces
 java.lang.String getPackageName()
          Returns the package name for the export
 boolean getRunInBackground()
          Determines whether the import should run in the background
 void reset()
          Resets the dialog state back to the default
 void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
          Sets the action service
 void setBrowseBean(BrowseBean browseBean)
          Sets the BrowseBean instance to use to retrieve the current document
 void setDestination(org.alfresco.service.cmr.repository.NodeRef destination)
          Sets the destination for the export
 void setEncoding(java.lang.String encoding)
          Sets the encoding to use for the export package
 void setIncludeChildren(boolean includeChildren)
          Sets whether child spaces are included in the export
 void setIncludeSelf(boolean includeSelf)
          Sets whether the space itself is included in the export
 void setMode(java.lang.String mode)
          Sets whether to export the current space or all spaces
 void setPackageName(java.lang.String packageName)
          Sets the package name for the export
 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, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

browseBean

protected BrowseBean browseBean
Constructor Detail

ExportDialog

public ExportDialog()
Method Detail

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

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

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


getPackageName

public java.lang.String getPackageName()
Returns the package name for the export

Returns:
The export package name

setPackageName

public void setPackageName(java.lang.String packageName)
Sets the package name for the export

Parameters:
packageName - The export package name

getDestination

public org.alfresco.service.cmr.repository.NodeRef getDestination()
The destination for the export as a NodeRef

Returns:
The destination

setDestination

public void setDestination(org.alfresco.service.cmr.repository.NodeRef destination)
Sets the destination for the export

Parameters:
destination - The destination for the export

getIncludeChildren

public boolean getIncludeChildren()
Determines whether the export will include child spaces

Returns:
true includes children

setIncludeChildren

public void setIncludeChildren(boolean includeChildren)
Sets whether child spaces are included in the export

Parameters:
includeChildren - true to include the child spaces

getIncludeSelf

public boolean getIncludeSelf()
Determines whether the export will include the space itself

Returns:
true includes the space being exported from

setIncludeSelf

public void setIncludeSelf(boolean includeSelf)
Sets whether the space itself is included in the export

Parameters:
includeSelf - true to include the space itself

getMode

public java.lang.String getMode()
Determines whether to export only the current space or all spaces

Returns:
"all" to export all space and "current" to export the current space

setMode

public void setMode(java.lang.String mode)
Sets whether to export the current space or all spaces

Parameters:
mode - "all" to export all space and "current" to export the current space

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

setBrowseBean

public void setBrowseBean(BrowseBean browseBean)
Sets the BrowseBean instance to use to retrieve the current document

Overrides:
setBrowseBean in class BaseDialogBean
Parameters:
browseBean - BrowseBean instance

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()


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