Package org.ametys.core.right
Interface ModifiableProfileAssignmentStorage
- All Superinterfaces:
Prioritizable
,ProfileAssignmentStorage
- All Known Implementing Classes:
JdbcProfileAssignmentStorage
,ModifiableACLAmetysObjectProfileAssignmentStorage
This interface is for modifiable profile assignments storage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.right.ProfileAssignmentStorage
ProfileAssignmentStorage.AnonymousOrAnyConnectedKeys, ProfileAssignmentStorage.UserOrGroup
-
Field Summary
Fields inherited from interface org.ametys.core.right.ProfileAssignmentStorage
MAX_PRIORITY, MIN_PRIORITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllowedGroups
(Set<GroupIdentity> groups, Object object, String profileId) Associates some groups with an allowed profile on a given objectvoid
addAllowedProfilesForAnonymous
(Object object, Set<String> profileIds) Adds allowed profiles an anonymous user has on the given objectvoid
addAllowedProfilesForAnyConnectedUser
(Object object, Set<String> profileIds) Adds allowed profiles any connected user has on the given objectvoid
addAllowedUsers
(Set<UserIdentity> users, Object object, String profileId) Associates some users with an allowed profile on a given objectvoid
addDeniedGroups
(Set<GroupIdentity> groups, Object object, String profileId) Associates some groups with a denied profile on a given objectvoid
addDeniedProfilesForAnonymous
(Object object, Set<String> profileIds) Adds denied profiles an anonymous user has on the given objectvoid
addDeniedProfilesForAnyConnectedUser
(Object object, Set<String> profileIds) Adds denied profiles any connected user has on the given objectvoid
addDeniedUsers
(Set<UserIdentity> users, Object object, String profileId) Associates some users with a denied profile on a given objectvoid
disallowInheritance
(Object object, boolean disallow) Allow or disallow inheritance of permissions on the given objectvoid
removeAllowedGroups
(Set<GroupIdentity> groups, Object object) Removes the association between some groups and all allowed profiles on a given objectvoid
removeAllowedGroups
(Set<GroupIdentity> groups, Object object, String profileId) Removes the association between some groups and an allowed profile on a given objectvoid
removeAllowedProfilesForAnonymous
(Object object, Set<String> profileIds) Removes allowed profiles an anonymous user has on the given objectvoid
removeAllowedProfilesForAnyConnectedUser
(Object object, Set<String> profileIds) Removes allowed profiles any connected user has on the given objectvoid
removeAllowedUsers
(Set<UserIdentity> users, Object object) Removes the association between some users and all allowed profiles on a given objectvoid
removeAllowedUsers
(Set<UserIdentity> users, Object object, String profileId) Removes the association between some users and an allowed profile on a given objectvoid
removeDeniedGroups
(Set<GroupIdentity> groups, Object object) Removes the association between some groups and all denied profiles on a given objectvoid
removeDeniedGroups
(Set<GroupIdentity> groups, Object object, String profileId) Removes the association between some groups and a denied profile on a given objectvoid
removeDeniedProfilesForAnonymous
(Object object, Set<String> profileIds) Removes denied profiles an anonymous user has on the given objectvoid
removeDeniedProfilesForAnyConnectedUser
(Object object, Set<String> profileIds) Removes denied profiles any connected user has on the given objectvoid
removeDeniedUsers
(Set<UserIdentity> users, Object object) Removes the association between some users and all denied profiles on a given objectvoid
removeDeniedUsers
(Set<UserIdentity> users, Object object, String profileId) Removes the association between some users and an denied profile on a given objectvoid
removeGroup
(GroupIdentity group) Removes all the assignments involving this groupvoid
removeProfile
(String profileId) Removes all the assignments between this profile and users/groups/anonymous/any connectedvoid
removeUser
(UserIdentity user) Removes all the assignments involving this userMethods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
Methods inherited from interface org.ametys.core.right.ProfileAssignmentStorage
getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasAnonymousAnyAllowedProfile, hasAnyConnectedAnyAllowedProfile, hasGroupAnyAllowedProfile, hasUserAnyAllowedProfile, isInheritanceDisallowed, isRootContextSupported, isSupported
-
Method Details
-
addAllowedProfilesForAnyConnectedUser
Adds allowed profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeAllowedProfilesForAnyConnectedUser
Removes allowed profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addDeniedProfilesForAnyConnectedUser
Adds denied profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeDeniedProfilesForAnyConnectedUser
Removes denied profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addAllowedProfilesForAnonymous
Adds allowed profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeAllowedProfilesForAnonymous
Removes allowed profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addDeniedProfilesForAnonymous
Adds denied profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeDeniedProfilesForAnonymous
Removes denied profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addAllowedUsers
Associates some users with an allowed profile on a given object- Parameters:
users
- The users to addobject
- The objectprofileId
- The id of the profile
-
removeAllowedUsers
Removes the association between some users and an allowed profile on a given object- Parameters:
users
- The users to removeobject
- The objectprofileId
- The id of the profile
-
removeAllowedUsers
Removes the association between some users and all allowed profiles on a given object- Parameters:
users
- The users to removeobject
- The object
-
addAllowedGroups
Associates some groups with an allowed profile on a given object- Parameters:
groups
- The groups to addobject
- The objectprofileId
- The id of the profile
-
removeAllowedGroups
Removes the association between some groups and an allowed profile on a given object- Parameters:
groups
- The groups to removeobject
- The objectprofileId
- The id of the profile
-
removeAllowedGroups
Removes the association between some groups and all allowed profiles on a given object- Parameters:
groups
- The groups to removeobject
- The object
-
addDeniedUsers
Associates some users with a denied profile on a given object- Parameters:
users
- The users to addobject
- The objectprofileId
- The id of the profile
-
removeDeniedUsers
Removes the association between some users and an denied profile on a given object- Parameters:
users
- The users to removeobject
- The objectprofileId
- The id of the profile
-
removeDeniedUsers
Removes the association between some users and all denied profiles on a given object- Parameters:
users
- The users to removeobject
- The object
-
addDeniedGroups
Associates some groups with a denied profile on a given object- Parameters:
groups
- The groups to addobject
- The objectprofileId
- The id of the profile
-
removeDeniedGroups
Removes the association between some groups and a denied profile on a given object- Parameters:
groups
- The groups to removeobject
- The objectprofileId
- The id of the profile
-
removeDeniedGroups
Removes the association between some groups and all denied profiles on a given object- Parameters:
groups
- The groups to removeobject
- The object
-
removeProfile
Removes all the assignments between this profile and users/groups/anonymous/any connected- Parameters:
profileId
- The profile to remove
-
removeUser
Removes all the assignments involving this user- Parameters:
user
- The user
-
removeGroup
Removes all the assignments involving this group- Parameters:
group
- The group
-
disallowInheritance
Allow or disallow inheritance of permissions on the given object- Parameters:
object
- The objectdisallow
- true to disallow inheritance, false otherwise
-