Package org.ametys.plugins.extraction
Class ExtractionProfileAssignmentsToolClientSideElement
- 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.extraction.ExtractionProfileAssignmentsToolClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class ExtractionProfileAssignmentsToolClientSideElement extends ProfileAssignmentsToolClientSideElement
ClientSideElement
for the tool displaying the profile assignments for queries
-
-
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
Constructors Constructor Description ExtractionProfileAssignmentsToolClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
_getEventParams(Object context, String contextIdentifier, Set<String> profileIds)
Get the event params for notification.protected 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
_notifyObservers, disallowInheritance, getInheritedAssignment, getInheritedAssignments, getScripts, getUserGroups, 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, configure, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ExtractionProfileAssignmentsToolClientSideElement
public ExtractionProfileAssignmentsToolClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classProfileAssignmentsToolClientSideElement
- Throws:
ServiceException
-
_getEventParams
protected Map<String,Object> _getEventParams(Object context, String contextIdentifier, Set<String> profileIds)
Description copied from class:ProfileAssignmentsToolClientSideElement
Get the event params for notification.- Overrides:
_getEventParams
in classProfileAssignmentsToolClientSideElement
- Parameters:
context
- The contextcontextIdentifier
- The context identifierprofileIds
- The profiles- Returns:
- the event params
-
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
-
-