Class AbstractWelcomeStep
- java.lang.Object
-
- org.ametys.web.administration.welcome.AbstractWelcomeStep
-
- All Implemented Interfaces:
PluginAware,WelcomeStep,Configurable
- Direct Known Subclasses:
CompleteConfigurationStep,CompleteSiteStep,SiteWithPopulationStep,SiteWithUserStep
public abstract class AbstractWelcomeStep extends Object implements WelcomeStep, Configurable, PluginAware
AbsractWelcomeStepwhich isConfigurable
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]_actionsThe JS actionsprotected I18nizableText_descriptionThe HTML description of the stepprotected String[]_imagesThe imagesprotected int_orderThe order of the stepprotected String_pluginNameThe name of the plugin that has declared this componentprotected Map<String,Set<String>>_targetIdsThe JS target ids to listen for messagesprotected I18nizableText_titleThe HTML title of the step
-
Constructor Summary
Constructors Constructor Description AbstractWelcomeStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Set<String>>_getTargetIds(Configuration configuration)voidconfigure(Configuration configuration)String[]getActions()Gets the JS actions to execute when clicking on '<a>' elements of description.I18nizableTextgetDescription()Gets the text describing how to perform the step.String[]getImages()Gets the paths of the images to insert in the '<img/>' elements of description.Map<String,Set<String>>getListenedTargetIds()Gets the JS target ids (as regular expressions) to listen for each message type for potential changes in the steps and thus refresh the admin welcome tool.intgetOrder()Gets the order of the step.I18nizableTextgetTitle()Gets the title of the step.voidsetPluginInfo(String pluginName, String featureName, String id)Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.web.administration.welcome.WelcomeStep
isPerformed, toMap
-
-
-
-
Field Detail
-
_pluginName
protected String _pluginName
The name of the plugin that has declared this component
-
_order
protected int _order
The order of the step
-
_title
protected I18nizableText _title
The HTML title of the step
-
_description
protected I18nizableText _description
The HTML description of the step
-
_targetIds
protected Map<String,Set<String>> _targetIds
The JS target ids to listen for messages
-
-
Constructor Detail
-
AbstractWelcomeStep
public AbstractWelcomeStep()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getTitle
public I18nizableText getTitle()
Description copied from interface:WelcomeStepGets the title of the step.- Specified by:
getTitlein interfaceWelcomeStep- Returns:
- The title as HTML
-
getDescription
public I18nizableText getDescription()
Description copied from interface:WelcomeStepGets the text describing how to perform the step.- Specified by:
getDescriptionin interfaceWelcomeStep- Returns:
- The description as HTML
-
getActions
public String[] getActions()
Description copied from interface:WelcomeStepGets the JS actions to execute when clicking on '<a>' elements of description.- Specified by:
getActionsin interfaceWelcomeStep- Returns:
- The JS actions to execute when clicking on '<a>' elements of description
-
getImages
public String[] getImages()
Description copied from interface:WelcomeStepGets the paths of the images to insert in the '<img/>' elements of description.- Specified by:
getImagesin interfaceWelcomeStep- Returns:
- The paths of the images to insert in the '<img/>' elements of description.
-
getListenedTargetIds
public Map<String,Set<String>> getListenedTargetIds()
Description copied from interface:WelcomeStepGets the JS target ids (as regular expressions) to listen for each message type for potential changes in the steps and thus refresh the admin welcome tool. For example, {"modified": ["^site$"], "deleted": ["^site$", "^user$"]}- Specified by:
getListenedTargetIdsin interfaceWelcomeStep- Returns:
- A map { messageType : [targetIds]}
-
getOrder
public int getOrder()
Description copied from interface:WelcomeStepGets the order of the step.- Specified by:
getOrderin interfaceWelcomeStep- Returns:
- The order of the step
-
_getTargetIds
private Map<String,Set<String>> _getTargetIds(Configuration configuration) throws ConfigurationException
- Throws:
ConfigurationException
-
-