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
Absract
WelcomeStep which is Configurable-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]The JS actionsprotected I18nizableTextThe HTML description of the stepprotected String[]The imagesprotected intThe order of the stepprotected StringThe name of the plugin that has declared this componentThe JS target ids to listen for messagesprotected I18nizableTextThe HTML title of the step -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) String[]Gets the JS actions to execute when clicking on '<a>' elements of description.Gets the text describing how to perform the step.String[]Gets the paths of the images to insert in the '<img/>' elements of description.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.getTitle()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, waitMethods inherited from interface org.ametys.web.administration.welcome.WelcomeStep
isPerformed, toMap
-
Field Details
-
_pluginName
The name of the plugin that has declared this component -
_order
The order of the step -
_title
The HTML title of the step -
_description
The HTML description of the step -
_actions
The JS actions -
_images
The images -
_targetIds
The JS target ids to listen for messages
-
-
Constructor Details
-
AbstractWelcomeStep
public AbstractWelcomeStep()
-
-
Method Details
-
setPluginInfo
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
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getTitle
Description copied from interface:WelcomeStepGets the title of the step.- Specified by:
getTitlein interfaceWelcomeStep- Returns:
- The title as HTML
-
getDescription
Description copied from interface:WelcomeStepGets the text describing how to perform the step.- Specified by:
getDescriptionin interfaceWelcomeStep- Returns:
- The description as HTML
-
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
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
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
Description copied from interface:WelcomeStepGets the order of the step.- Specified by:
getOrderin interfaceWelcomeStep- Returns:
- The order of the step
-