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
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
service
(ServiceManager smanager) Methods inherited from class org.ametys.web.administration.SuperUserClientSideElement
contextualize
Methods inherited from class org.ametys.runtime.plugins.admin.superuser.SuperUserClientSideElement
affectUserToNewProfile, getContextualParameters
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 Details
-
_projectUserManager
The project user manager
-
-
Constructor Details
-
ProjectSuperUserClientSideElement
public ProjectSuperUserClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSuperUserClientSideElement
- Throws:
ServiceException
-
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
-