Class ProjectSuperUserClientSideElement
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
org.ametys.plugins.workspaces.project.ProjectSuperUserClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Contextualizable,Serviceable
This implementation creates a control allowing to affect a super user to a given context of a project.
This implementation does NOT set the super user on project'site.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsFields inherited from class org.ametys.runtime.plugins.admin.superuser.SuperUserClientSideElement
_profileAssignmentStorageEP, _profilesDAO, _rightCtxEP, _rightsEP, _sManager, _userHelperFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAffect a user to the given profile on the given contextvoidservice(ServiceManager smanager) Methods inherited from class org.ametys.web.administration.SuperUserClientSideElement
contextualizeMethods inherited from class org.ametys.runtime.plugins.admin.superuser.SuperUserClientSideElement
affectUserToNewProfile, getContextualParametersMethods 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, setLogger
-
Field Details
-
_projectUserManager
The project user manager
-
-
Constructor Details
-
ProjectSuperUserClientSideElement
public ProjectSuperUserClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSuperUserClientSideElement- Throws:
ServiceException
-
affectUserToProfile
public void affectUserToProfile(Map<String, String> user, String profileId, Map<String, Object> jsParameters) Description copied from class:SuperUserClientSideElementAffect a user to the given profile on the given context- Overrides:
affectUserToProfilein classSuperUserClientSideElement- Parameters:
user- The userprofileId- The profile idjsParameters- The client-side parameters
-