Package org.ametys.odf.rncp
Class RNCPAbstractProgramClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.odf.rncp.RNCPAbstractProgramClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
RNCPSubProgramClientSideElement
Client side element for abstract program RNCP sheets.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected ODFHelper
The ODF helperprotected AmetysObjectResolver
The Ametys object resolverprotected RNCPModelHelper
The RNCP model helperFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_resolver
The Ametys object resolver -
_odfHelper
The ODF helper -
_rncpModelHelper
The RNCP model helper
-
-
Constructor Details
-
RNCPAbstractProgramClientSideElement
public RNCPAbstractProgramClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getModels
public List<Map<String,Object>> getModels() throws ConfigurationException, SAXException, IOExceptionGet the list of RNCP models.- Returns:
- A JSON list with id and label of each available RNCP model
- Throws:
ConfigurationException
- if an error occursSAXException
- if an error occursIOException
- if an error occurs
-