Package org.ametys.web.administration
Class SuperUserClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.runtime.plugins.admin.superuser.SuperUserClientSideElement
org.ametys.web.administration.SuperUserClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
ProjectSuperUserClientSideElement
public class SuperUserClientSideElement
extends SuperUserClientSideElement
implements Contextualizable
This implementation creates a control allowing to affect a super user to a web 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.runtime.plugins.admin.superuser.SuperUserClientSideElement
_profileAssignmentStorageEP, _profilesDAO, _rightCtxEP, _rightsEP, _sManager, _userHelper
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Affect a user to the given profile on the given contextvoid
contextualize
(Context context) Methods inherited from class org.ametys.runtime.plugins.admin.superuser.SuperUserClientSideElement
affectUserToNewProfile, getContextualParameters, service
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
-
Constructor Details
-
SuperUserClientSideElement
public SuperUserClientSideElement()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
affectUserToProfile
public void affectUserToProfile(Map<String, String> user, String profileId, Map<String, Object> jsParameters) Description copied from class:SuperUserClientSideElement
Affect a user to the given profile on the given context- Overrides:
affectUserToProfile
in classSuperUserClientSideElement
- Parameters:
user
- The userprofileId
- The profile idjsParameters
- The client-side parameters
-