Package org.ametys.plugins.forms.rights
Class FormsProfileAssignmentsToolClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.ui.right.ProfileAssignmentsToolClientSideElement
org.ametys.plugins.forms.rights.FormsProfileAssignmentsToolClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class FormsProfileAssignmentsToolClientSideElement
extends ProfileAssignmentsToolClientSideElement
ClientSideElement
for the tool displaying the profile assignments for forms-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.core.ui.right.ProfileAssignmentsToolClientSideElement
ProfileAssignmentsToolClientSideElement.AccessType, ProfileAssignmentsToolClientSideElement.TargetType
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.right.ProfileAssignmentsToolClientSideElement
_groupDirectoryDAO, _groupManager, _observationManager, _profileAssignmentStorageEP, _profileDAO, _rightAssignmentContextEP, _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 TypeMethodDescriptionprotected boolean
canDelegateRights
(UserIdentity user, Set<GroupIdentity> groups, String profileId, String assignment, Object context) Only allow user with right CMS_Rights_Delegate_Rights to add a profil that this user already have on this contextvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.core.ui.right.ProfileAssignmentsToolClientSideElement
_checkRightAssignmentContext, _configureRightContextIds, _getEventParams, _notifyObservers, applyAssignments, configure, disallowInheritance, getInheritedAssignment, getInheritedAssignments, getRightAssignmentContexts, getScripts, getUserGroups, hasRight, isInheritanceDisallowed, saveChanges
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, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
FormsProfileAssignmentsToolClientSideElement
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classProfileAssignmentsToolClientSideElement
- Throws:
ServiceException
-
canDelegateRights
protected boolean canDelegateRights(UserIdentity user, Set<GroupIdentity> groups, String profileId, String assignment, Object context) Description copied from class:ProfileAssignmentsToolClientSideElement
Only allow user with right CMS_Rights_Delegate_Rights to add a profil that this user already have on this context- Overrides:
canDelegateRights
in classProfileAssignmentsToolClientSideElement
- Parameters:
user
- user that want to de an assignmentgroups
- groups of the userprofileId
- profil impactedassignment
- assignment seeProfileAssignmentsToolClientSideElement.AccessType
context
- context of the assignment- Returns:
true
if user can de this assignment
-