Package org.ametys.core.right
Class UserPermissionsToolClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.right.UserPermissionsToolClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
Client side element of the tool displaying all the permissions for a given user
-
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.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet user's informationgetUserPermissions(String login, String populationId) Provided a user identity, this method will retrieve all permissions concerning this user ie permissions for anonymous, any connected user, user's groups, and the user itselfvoidservice(ServiceManager manager) Methods 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
-
Constructor Details
-
UserPermissionsToolClientSideElement
public UserPermissionsToolClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticFileImportsClientSideElement- Throws:
ServiceException
-
getUserPermissions
Provided a user identity, this method will retrieve all permissions concerning this user ie permissions for anonymous, any connected user, user's groups, and the user itself- Parameters:
login- the user loginpopulationId- the user population- Returns:
- a map with the key "data" containing the list of all the contexts and their permissions. And a key metaData containing a map used to reconfigure the store calling the callable The list of context is something like : [ { label: "foo", category: "bar", order: 0, <permissionKey>: { assignments: [accessResultInfo,…] accessResult: accessResult, } } ]
-
getUser
Get user's information- Parameters:
login- The user's loginpopulationId- The id of the population- Returns:
- The user's information
-