Package org.ametys.plugins.cart
Class CartProfileAssignmentsToolClientSideElement
- 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.cart.CartProfileAssignmentsToolClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class CartProfileAssignmentsToolClientSideElement extends ProfileAssignmentsToolClientSideElement
ClientSideElement
for the tool displaying the profile assignments for carts
-
-
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 CartProfileAssignmentsToolClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
_getEventParams, _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
-
CartProfileAssignmentsToolClientSideElement
public CartProfileAssignmentsToolClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
-
-