Package org.ametys.core.ui.right
Class ContextPermissionsToolClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.ui.right.TargetToContextConvertorClientSideElement
org.ametys.core.ui.right.ContextPermissionsToolClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class ContextPermissionsToolClientSideElement
extends TargetToContextConvertorClientSideElement
Client side element for the ContextPermissionTool
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GroupDirectoryDAO
The group directory DAOprotected GroupManager
The group managerprotected UserPopulationDAO
The population DAOprotected RightProfilesDAO
The profile DAOprotected RightsExtensionPoint
The right extension pointprotected UserManager
The user managerFields inherited from class org.ametys.core.ui.right.TargetToContextConvertorClientSideElement
_targetToContextConvertorEP
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 TypeMethodDescriptiongetContextPermissions
(String contextId, String convertorId) Get all the permissions on contextvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.core.ui.right.TargetToContextConvertorClientSideElement
getScripts
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, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_groupDirectoryDAO
The group directory DAO -
_groupManager
The group manager -
_populationDAO
The population DAO -
_profileDAO
The profile DAO -
_rightsEP
The right extension point -
_userManager
The user manager
-
-
Constructor Details
-
ContextPermissionsToolClientSideElement
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classTargetToContextConvertorClientSideElement
- Throws:
ServiceException
-
getContextPermissions
Get all the permissions on context- Parameters:
contextId
- the context id provided by aTargetToContextConvertor
or null for the general contextconvertorId
- the id of theTargetToContextConvertor
that provided the id or null for the general context- Returns:
- the JSON map of permissions
-