public class SuperUserClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ProfileAssignmentStorageExtensionPoint |
_profileAssignmentStorageEP
The profile assignments storage
|
protected RightProfilesDAO |
_profilesDAO
The profiles DAO
|
protected RightAssignmentContextExtensionPoint |
_rightCtxEP
The extension point for right contexts
|
protected RightsExtensionPoint |
_rightsEP
The extension point for the rights
|
protected ServiceManager |
_sManager
The service manager
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SuperUserClientSideElement() |
Modifier and Type | Method and Description |
---|---|
String |
affectUserToNewProfile(Map<String,String> user,
String newProfileName,
Map<String,Object> jsParameters)
Affect a user to a new super profile on the given context.
|
void |
affectUserToProfile(Map<String,String> user,
String profileId,
Map<String,Object> jsParameters)
Affect a user to the given profile on the given context
|
protected Map<String,Object> |
getContextualParameters(Map<String,Object> jsParameters)
Get the contextual parameters used to determines the root contexts
|
void |
service(ServiceManager smanager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected ServiceManager _sManager
protected RightsExtensionPoint _rightsEP
protected RightProfilesDAO _profilesDAO
protected ProfileAssignmentStorageExtensionPoint _profileAssignmentStorageEP
protected RightAssignmentContextExtensionPoint _rightCtxEP
public SuperUserClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public void affectUserToProfile(Map<String,String> user, String profileId, Map<String,Object> jsParameters)
user
- The userprofileId
- The profile idjsParameters
- The client-side parameterspublic String affectUserToNewProfile(Map<String,String> user, String newProfileName, Map<String,Object> jsParameters)
user
- The usernewProfileName
- The name of the super profile to createjsParameters
- The client-side parameters