Class ExtractionTargetToContextConvertor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.extraction.rights.ExtractionTargetToContextConvertor
- All Implemented Interfaces:
ClientSideElement,TargetToContextConvertor,LogEnabled,PluginAware,Configurable,Serviceable
public class ExtractionTargetToContextConvertor
extends StaticClientSideElement
implements TargetToContextConvertor
Target to context convertor able to handle extraction 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertJSContext(Object jsContext) Retrieve an actual right context from the JS context extract for the target.voidservice(ServiceManager manager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Constructor Details
-
ExtractionTargetToContextConvertor
public ExtractionTargetToContextConvertor()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticFileImportsClientSideElement- Throws:
ServiceException
-
convertJSContext
Description copied from interface:TargetToContextConvertorRetrieve an actual right context from the JS context extract for the target.- Specified by:
convertJSContextin interfaceTargetToContextConvertor- Parameters:
jsContext- the result of the convert method of the JS class of this component- Returns:
- a right context
-