public class CreateSpaceWizard extends BaseWizardBean
Modifier and Type | Field and Description |
---|---|
protected String |
copyPolicy |
protected org.alfresco.service.cmr.repository.NodeRef |
createdNode |
protected String |
createFrom |
protected static String |
CREATEFROM_EXISTING |
protected static String |
CREATEFROM_SCRATCH |
protected static String |
CREATEFROM_TEMPLATE |
static String |
DEFAULT_SPACE_ICON_NAME |
static String |
DEFAULT_SPACE_ICON_PATH |
static String |
DEFAULT_SPACE_TYPE_ICON_PATH |
protected String |
description |
protected org.alfresco.service.cmr.repository.NodeRef |
existingSpaceId |
protected List<UIDescription> |
folderTypeDescriptions |
protected List<UIListItem> |
folderTypes |
protected String |
icon |
protected String |
name |
protected boolean |
saveAsTemplate |
protected String |
spaceType |
protected String |
templateName |
protected List<SelectItem> |
templates |
protected String |
templateSpaceId |
protected String |
title |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
CreateSpaceWizard() |
Modifier and Type | Method and Description |
---|---|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected String |
formatErrorMessage(Throwable exception)
Formats the error message to display if an error occurs during finish processing
|
String |
getCopyPolicy() |
String |
getCreateFrom() |
String |
getDescription() |
org.alfresco.service.cmr.repository.NodeRef |
getExistingSpaceId() |
List<UIDescription> |
getFolderTypeDescriptions()
Returns a list of UIDescription objects for the folder types
|
List<UIListItem> |
getFolderTypes()
Returns a list of UIListItem objects representing the folder types
and also constructs the list of descriptions for each type
|
String |
getIcon() |
List<UIListItem> |
getIcons()
Returns a list of icons to allow the user to select from.
|
String |
getName() |
String |
getSpaceType() |
String |
getSummary() |
String |
getTemplateName() |
String |
getTemplateSpaceId() |
List<SelectItem> |
getTemplateSpaces() |
String |
getTitle() |
void |
init(Map<String,String> parameters)
Initialises the wizard
|
boolean |
isSaveAsTemplate() |
String |
next()
Called when the next button is pressed by the user
|
void |
setCopyPolicy(String copyPolicy) |
void |
setCreateFrom(String createFrom) |
void |
setDescription(String description) |
void |
setExistingSpaceId(org.alfresco.service.cmr.repository.NodeRef existingSpaceId) |
void |
setIcon(String icon) |
void |
setName(String name) |
void |
setSaveAsTemplate(boolean saveAsTemplate) |
void |
setSpaceType(String spaceType) |
void |
setTemplateName(String templateName) |
void |
setTemplateSpaceId(String templateSpaceId) |
void |
setTitle(String title) |
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinished, restored
public static final String DEFAULT_SPACE_ICON_NAME
public static final String DEFAULT_SPACE_ICON_PATH
public static final String DEFAULT_SPACE_TYPE_ICON_PATH
protected static final String CREATEFROM_TEMPLATE
protected static final String CREATEFROM_EXISTING
protected static final String CREATEFROM_SCRATCH
protected String spaceType
protected String icon
protected String createFrom
protected org.alfresco.service.cmr.repository.NodeRef existingSpaceId
protected String templateSpaceId
protected String copyPolicy
protected String name
protected String title
protected String description
protected String templateName
protected boolean saveAsTemplate
protected List<SelectItem> templates
protected List<UIListItem> folderTypes
protected List<UIDescription> folderTypeDescriptions
protected org.alfresco.service.cmr.repository.NodeRef createdNode
public void init(Map<String,String> parameters)
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic String next()
IWizardBean
next
in interface IWizardBean
next
in class BaseWizardBean
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public String getCopyPolicy()
public void setCopyPolicy(String copyPolicy)
copyPolicy
- The copyPolicy to set.public String getCreateFrom()
public void setCreateFrom(String createFrom)
createFrom
- The createFrom to set.public String getDescription()
public void setDescription(String description)
description
- The description to set.public org.alfresco.service.cmr.repository.NodeRef getExistingSpaceId()
public void setExistingSpaceId(org.alfresco.service.cmr.repository.NodeRef existingSpaceId)
existingSpaceId
- The existingSpaceId to set.public String getIcon()
public void setIcon(String icon)
icon
- The icon to set.public String getName()
public void setName(String name)
name
- The name to set.public String getTitle()
public void setTitle(String title)
title
- The title to set.public boolean isSaveAsTemplate()
public void setSaveAsTemplate(boolean saveAsTemplate)
saveAsTemplate
- The saveAsTemplate to set.public String getSpaceType()
public void setSpaceType(String spaceType)
spaceType
- The spaceType to set.public String getTemplateName()
public void setTemplateName(String templateName)
templateName
- The templateName to set.public String getTemplateSpaceId()
public void setTemplateSpaceId(String templateSpaceId)
templateSpaceId
- The templateSpaceId to set.public String getSummary()
public List<SelectItem> getTemplateSpaces()
public List<UIListItem> getFolderTypes()
public List<UIDescription> getFolderTypeDescriptions()
public List<UIListItem> getIcons()
protected String formatErrorMessage(Throwable exception)
formatErrorMessage
in class BaseDialogBean
exception
- The exceptionCopyright © 2005–2017 Alfresco Software. All rights reserved.