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
public class RNCPAbstractProgramClientSideElement extends StaticClientSideElement
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
Fields Modifier and Type Field Description protected ODFHelper
_odfHelper
The ODF helperprotected AmetysObjectResolver
_resolver
The Ametys object resolverprotected RNCPModelHelper
_rncpModelHelper
The RNCP model helper-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description RNCPAbstractProgramClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>
getModels()
Get the list of RNCP models.void
service(ServiceManager smanager)
-
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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_odfHelper
protected ODFHelper _odfHelper
The ODF helper
-
_rncpModelHelper
protected RNCPModelHelper _rncpModelHelper
The RNCP model helper
-
-
Constructor Detail
-
RNCPAbstractProgramClientSideElement
public RNCPAbstractProgramClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getModels
public List<Map<String,Object>> getModels() throws ConfigurationException, SAXException, IOException
Get 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
-
-