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
public class ProjectSuperUserClientSideElement extends SuperUserClientSideElement
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 Modifier and Type Field Description protected ProjectMemberManager_projectUserManagerThe project user manager-
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
Constructors Constructor Description ProjectSuperUserClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaffectUserToProfile(Map<String,String> user, String profileId, Map<String,Object> jsParameters)Affect a user to the given profile on the given contextvoidservice(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 Detail
-
_projectUserManager
protected ProjectMemberManager _projectUserManager
The project user manager
-
-
Constructor Detail
-
ProjectSuperUserClientSideElement
public ProjectSuperUserClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
-
-