Package org.ametys.plugins.repository
Class AmetysObjectTargetToContextConvertor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.repository.AmetysObjectTargetToContextConvertor
- All Implemented Interfaces:
ClientSideElement
,TargetToContextConvertor
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
QueryTargetToContextConvertor
public class AmetysObjectTargetToContextConvertor
extends StaticClientSideElement
implements TargetToContextConvertor
Target to context convertor able to handle ametys object context.
-
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 TypeMethodDescriptionconvertJSContext
(Object jsContext) Retrieve an actual right context from the JS context extract for the target.void
service
(ServiceManager manager) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Field Details
-
_resolver
the ametys object resolver
-
-
Constructor Details
-
AmetysObjectTargetToContextConvertor
public AmetysObjectTargetToContextConvertor()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
convertJSContext
Description copied from interface:TargetToContextConvertor
Retrieve an actual right context from the JS context extract for the target.- Specified by:
convertJSContext
in interfaceTargetToContextConvertor
- Parameters:
jsContext
- the result of the convert method of the JS class of this component- Returns:
- a right context
-