org.alfresco.web.bean.spaces
Class CreateSpaceWizard

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wizard.BaseWizardBean
          extended by org.alfresco.web.bean.spaces.CreateSpaceWizard
All Implemented Interfaces:
java.io.Serializable, IDialogBean, IWizardBean
Direct Known Subclasses:
CreateSpaceDialog

public class CreateSpaceWizard
extends BaseWizardBean

Bean responsible for the create space wizard

See Also:
Serialized Form

Field Summary
protected  java.lang.String copyPolicy
           
protected  org.alfresco.service.cmr.repository.NodeRef createdNode
           
protected  java.lang.String createFrom
           
protected static java.lang.String CREATEFROM_EXISTING
           
protected static java.lang.String CREATEFROM_SCRATCH
           
protected static java.lang.String CREATEFROM_TEMPLATE
           
static java.lang.String DEFAULT_SPACE_ICON_NAME
           
static java.lang.String DEFAULT_SPACE_ICON_PATH
           
static java.lang.String DEFAULT_SPACE_TYPE_ICON_PATH
           
protected  java.lang.String description
           
protected  org.alfresco.service.cmr.repository.NodeRef existingSpaceId
           
protected  java.util.List folderTypeDescriptions
           
protected  java.util.List folderTypes
           
protected  java.lang.String icon
           
protected  java.lang.String name
           
protected  boolean saveAsTemplate
           
protected  java.lang.String spaceType
           
protected  java.lang.String templateName
           
protected  java.util.List templates
           
protected  java.lang.String templateSpaceId
           
protected  java.lang.String title
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
CreateSpaceWizard()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
protected  java.lang.String formatErrorMessage(java.lang.Throwable exception)
          Formats the error message to display if an error occurs during finish processing
 java.lang.String getCopyPolicy()
           
 java.lang.String getCreateFrom()
           
 java.lang.String getDescription()
           
 org.alfresco.service.cmr.repository.NodeRef getExistingSpaceId()
           
 java.util.List getFolderTypeDescriptions()
          Returns a list of UIDescription objects for the folder types
 java.util.List getFolderTypes()
          Returns a list of UIListItem objects representing the folder types and also constructs the list of descriptions for each type
 java.lang.String getIcon()
           
 java.util.List getIcons()
          Returns a list of icons to allow the user to select from.
 java.lang.String getName()
           
 java.lang.String getSpaceType()
           
 java.lang.String getSummary()
           
 java.lang.String getTemplateName()
           
 java.lang.String getTemplateSpaceId()
           
 java.util.List getTemplateSpaces()
           
 java.lang.String getTitle()
           
 void init(java.util.Map parameters)
          Initialises the wizard
 boolean isSaveAsTemplate()
           
 java.lang.String next()
          Called when the next button is pressed by the user
 void setCopyPolicy(java.lang.String copyPolicy)
           
 void setCreateFrom(java.lang.String createFrom)
           
 void setDescription(java.lang.String description)
           
 void setExistingSpaceId(org.alfresco.service.cmr.repository.NodeRef existingSpaceId)
           
 void setIcon(java.lang.String icon)
           
 void setName(java.lang.String name)
           
 void setSaveAsTemplate(boolean saveAsTemplate)
           
 void setSpaceType(java.lang.String spaceType)
           
 void setTemplateName(java.lang.String templateName)
           
 void setTemplateSpaceId(java.lang.String templateSpaceId)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, 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
 
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinished, restored
 

Field Detail

DEFAULT_SPACE_ICON_NAME

public static final java.lang.String DEFAULT_SPACE_ICON_NAME
See Also:
Constant Field Values

DEFAULT_SPACE_ICON_PATH

public static final java.lang.String DEFAULT_SPACE_ICON_PATH
See Also:
Constant Field Values

DEFAULT_SPACE_TYPE_ICON_PATH

public static final java.lang.String DEFAULT_SPACE_TYPE_ICON_PATH
See Also:
Constant Field Values

CREATEFROM_TEMPLATE

protected static final java.lang.String CREATEFROM_TEMPLATE
See Also:
Constant Field Values

CREATEFROM_EXISTING

protected static final java.lang.String CREATEFROM_EXISTING
See Also:
Constant Field Values

CREATEFROM_SCRATCH

protected static final java.lang.String CREATEFROM_SCRATCH
See Also:
Constant Field Values

spaceType

protected java.lang.String spaceType

icon

protected java.lang.String icon

createFrom

protected java.lang.String createFrom

existingSpaceId

protected org.alfresco.service.cmr.repository.NodeRef existingSpaceId

templateSpaceId

protected java.lang.String templateSpaceId

copyPolicy

protected java.lang.String copyPolicy

name

protected java.lang.String name

title

protected java.lang.String title

description

protected java.lang.String description

templateName

protected java.lang.String templateName

saveAsTemplate

protected boolean saveAsTemplate

templates

protected java.util.List templates

folderTypes

protected java.util.List folderTypes

folderTypeDescriptions

protected java.util.List folderTypeDescriptions

createdNode

protected org.alfresco.service.cmr.repository.NodeRef createdNode
Constructor Detail

CreateSpaceWizard

public CreateSpaceWizard()
Method Detail

init

public void init(java.util.Map parameters)
Initialises the wizard

Specified by:
init in interface IDialogBean
Overrides:
init in class BaseDialogBean
Parameters:
parameters - Map of parameters for the dialog

next

public java.lang.String next()
Description copied from interface: IWizardBean
Called when the next button is pressed by the user

Specified by:
next in interface IWizardBean
Overrides:
next in class BaseWizardBean
Returns:
Reserved for future use

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

getCopyPolicy

public java.lang.String getCopyPolicy()
Returns:
Returns the copyPolicy.

setCopyPolicy

public void setCopyPolicy(java.lang.String copyPolicy)
Parameters:
copyPolicy - The copyPolicy to set.

getCreateFrom

public java.lang.String getCreateFrom()
Returns:
Returns the createFrom.

setCreateFrom

public void setCreateFrom(java.lang.String createFrom)
Parameters:
createFrom - The createFrom to set.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getExistingSpaceId

public org.alfresco.service.cmr.repository.NodeRef getExistingSpaceId()
Returns:
Returns the existingSpaceId.

setExistingSpaceId

public void setExistingSpaceId(org.alfresco.service.cmr.repository.NodeRef existingSpaceId)
Parameters:
existingSpaceId - The existingSpaceId to set.

getIcon

public java.lang.String getIcon()
Returns:
Returns the icon.

setIcon

public void setIcon(java.lang.String icon)
Parameters:
icon - The icon to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getTitle

public java.lang.String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - The title to set.

isSaveAsTemplate

public boolean isSaveAsTemplate()
Returns:
Returns the saveAsTemplate.

setSaveAsTemplate

public void setSaveAsTemplate(boolean saveAsTemplate)
Parameters:
saveAsTemplate - The saveAsTemplate to set.

getSpaceType

public java.lang.String getSpaceType()
Returns:
Returns the spaceType.

setSpaceType

public void setSpaceType(java.lang.String spaceType)
Parameters:
spaceType - The spaceType to set.

getTemplateName

public java.lang.String getTemplateName()
Returns:
Returns the templateName.

setTemplateName

public void setTemplateName(java.lang.String templateName)
Parameters:
templateName - The templateName to set.

getTemplateSpaceId

public java.lang.String getTemplateSpaceId()
Returns:
Returns the templateSpaceId.

setTemplateSpaceId

public void setTemplateSpaceId(java.lang.String templateSpaceId)
Parameters:
templateSpaceId - The templateSpaceId to set.

getSummary

public java.lang.String getSummary()
Returns:
Returns the summary data for the wizard.

getTemplateSpaces

public java.util.List getTemplateSpaces()
Returns:
Returns a list of template spaces currently in the system

getFolderTypes

public java.util.List getFolderTypes()
Returns a list of UIListItem objects representing the folder types and also constructs the list of descriptions for each type

Returns:
List of UIListItem components

getFolderTypeDescriptions

public java.util.List getFolderTypeDescriptions()
Returns a list of UIDescription objects for the folder types

Returns:
A list of UIDescription objects

getIcons

public java.util.List getIcons()
Returns a list of icons to allow the user to select from. The list can change according to the type of space being created.

Returns:
A list of icons

formatErrorMessage

protected java.lang.String formatErrorMessage(java.lang.Throwable exception)
Formats the error message to display if an error occurs during finish processing

Overrides:
formatErrorMessage in class BaseDialogBean
Parameters:
exception - The exception
Returns:
The formatted message


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