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
Modifier and TypeFieldDescriptionprotected String[]
The JS actionsprotected I18nizableText
The HTML description of the stepprotected String[]
The imagesprotected int
The order of the stepprotected String
The name of the plugin that has declared this componentThe JS target ids to listen for messagesprotected I18nizableText
The HTML title of the step -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(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.int
getOrder()
Gets the order of the step.getTitle()
Gets the title of the step.void
setPluginInfo
(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 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:PluginAware
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.- Specified by:
setPluginInfo
in 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:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getTitle
Description copied from interface:WelcomeStep
Gets the title of the step.- Specified by:
getTitle
in interfaceWelcomeStep
- Returns:
- The title as HTML
-
getDescription
Description copied from interface:WelcomeStep
Gets the text describing how to perform the step.- Specified by:
getDescription
in interfaceWelcomeStep
- Returns:
- The description as HTML
-
getActions
Description copied from interface:WelcomeStep
Gets the JS actions to execute when clicking on '<a>' elements of description.- Specified by:
getActions
in interfaceWelcomeStep
- Returns:
- The JS actions to execute when clicking on '<a>' elements of description
-
getImages
Description copied from interface:WelcomeStep
Gets the paths of the images to insert in the '<img/>' elements of description.- Specified by:
getImages
in interfaceWelcomeStep
- Returns:
- The paths of the images to insert in the '<img/>' elements of description.
-
getListenedTargetIds
Description copied from interface:WelcomeStep
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. For example, {"modified": ["^site$"], "deleted": ["^site$", "^user$"]}- Specified by:
getListenedTargetIds
in interfaceWelcomeStep
- Returns:
- A map { messageType : [targetIds]}
-
getOrder
Description copied from interface:WelcomeStep
Gets the order of the step.- Specified by:
getOrder
in interfaceWelcomeStep
- Returns:
- The order of the step
-