Package org.ametys.core.ui
Class StaticClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
AbstractAmetysObjectThreadClientSideElement
,AbstractContentClientSideElement
,AbstractPageClientSideElement
,AbstractStaticRightAssignmentContext
,AddContentToCurrentSelectionClientSideElement
,AddTaskClientSideElement
,AdminWelcomeClientSideElement
,AmetysObjectTargetToContextConvertor
,ArchivedLogClientSideElement
,AutomaticNewsletterClientSideElement
,CacheClientSideElement
,CategoriesToolClientSideElement
,CommentClientSideElement
,CompareContentVersionClientSideElement
,CompareContentVersionToolClientSideElement
,ConfigClientSideElement
,ContentConsistencyTestClientSideElement
,ContentTypeEditorToolElement
,DeleteDataSourceClientSideElement
,DeleteExtractionResultFilesClientSideElement
,DevModeMenuItemClientSideElement
,EditContentTypeClientSideElement
,EditExtractionClientSideElement
,ExecuteExtractionClientSideElement
,ExplainUserRightButton
,ExplainUserRightTool
,ExtractionDetailsToolElement
,ExtractionTargetToContextConvertor
,FoldersClientSideElement
,FormWorkflowClientSideElement
,HierarchicalReferenceTableClientSideElement
,HTMLExpertEditClientSideElement
,ImagesContainerClientSideElement
,ImportArchiveClientSideElement
,InvitationsClientSideElement
,LogsClientSideElement
,MaintenanceClientSideElement
,MaintenanceTaskClientSideElement
,MigrationsActionsClientSideElement
,MigrationsStatusClientSideElement
,MultifactorAuthenticationClientSideElement
,ODFRootClientSideElement
,OpenSkinEditorClientSideElement
,OpenSkinFactoryClientSideElement
,OpenTreeControllerClientSideElement
,ParametersClientSideElement
,ParaStyleClientSideElement
,PilotageClientSideElement
,PlantUMLClientSideElement
,ProfileAssignmentsToolClientSideElement
,ProfileToolsClientSideElement
,RedirectPageClientSideElement
,RemoveContentTypeClientSideElement
,ReportsClientSideElement
,RepublishContentClientSideElement
,RNCPAbstractProgramClientSideElement
,RulesStaticClientSideElement
,SaveContentTypeClientSideElement
,SCCClientSideElement
,ScheduledSurveyClientSideElement
,SearchClientSideElement
,SearchReferencingContentsWithSameValuesClientSideElement
,ServerLogMessageTargetFactoryElement
,SessionClientSideElement
,ShareableCourseClientSideElement
,SignupInvitationClientSideElement
,SimpleMenu
,SimpleSearchClientSideElement
,SmartContentClientSideElement
,StaticClientSideRelation
,StaticClientSideWidget
,StaticMenu
,StringTargetToContextConvertor
,SubscribersClientSideElement
,SuperUserClientSideElement
,SurveyClientSideElement
,SystemAnnouncementClientSideElement
,TagsHelperClientSideElement
,TagsToolClientSideElement
,TagsToolClientSideElement
,TranslationFlaggingClientSideElement
,TreeToolClientSideElement
,UGCContentModerationClientSideElement
,UserManagmentClientSideElement
,UserPermissionsToolClientSideElement
,ValidateSurveyClientSideElement
,WallContentReportsClientSideElement
,WelcomeButtonClientSideElement
,WelcomeToolClientSideElement
,WorkflowToolClientSideElement
This implementation creates an element from a static configuration
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_configureClass
(Configuration configuration) Configure the js class name_configureParameters
(Configuration configuration) Configure parameters recursivelyprotected ClientSideElement.Script
_configureScript
(Configuration configuration) Configure the scriptconfigureInitialParameters
(Configuration configuration) Configure the initial parametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
StaticClientSideElement
public StaticClientSideElement()
-
-
Method Details
-
_configureScript
protected ClientSideElement.Script _configureScript(Configuration configuration) throws ConfigurationException Description copied from class:StaticFileImportsClientSideElement
Configure the script- Overrides:
_configureScript
in classStaticFileImportsClientSideElement
- Parameters:
configuration
- the global configuration- Returns:
- The script created
- Throws:
ConfigurationException
- The configuration is incorrect
-
_configureClass
Configure the js class name- Parameters:
configuration
- The configuration on action tag- Returns:
- The js class name
- Throws:
ConfigurationException
- If an error occurs
-
configureInitialParameters
protected Map<String,Object> configureInitialParameters(Configuration configuration) throws ConfigurationException Configure the initial parameters- Parameters:
configuration
- the global configuration- Returns:
- The initial parameters read
- Throws:
ConfigurationException
- The configuration is incorrect
-
_configureParameters
protected Map<String,Object> _configureParameters(Configuration configuration) throws ConfigurationException Configure parameters recursively- Parameters:
configuration
- the parameters configuration- Returns:
- parameters in a Map
- Throws:
ConfigurationException
- The configuration is incorrect
-