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 TypeMethodDescriptionvoidaddAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId) Associates some groups with an allowed profile on a given objectvoidaddAllowedProfilesForAnonymous(Object object, Set<String> profileIds) Adds allowed profiles an anonymous user has on the given objectvoidaddAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds) Adds allowed profiles any connected user has on the given objectvoidaddAllowedUsers(Set<UserIdentity> users, Object object, String profileId) Associates some users with an allowed profile on a given objectvoidaddDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId) Associates some groups with a denied profile on a given objectvoidaddDeniedProfilesForAnonymous(Object object, Set<String> profileIds) Adds denied profiles an anonymous user has on the given objectvoidaddDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds) Adds denied profiles any connected user has on the given objectvoidaddDeniedUsers(Set<UserIdentity> users, Object object, String profileId) Associates some users with a denied profile on a given objectvoiddisallowInheritance(Object object, boolean disallow) Allow or disallow inheritance of permissions on the given objectvoidremoveAllowedGroups(Set<GroupIdentity> groups, Object object) Removes the association between some groups and all allowed profiles on a given objectvoidremoveAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId) Removes the association between some groups and an allowed profile on a given objectvoidremoveAllowedProfilesForAnonymous(Object object, Set<String> profileIds) Removes allowed profiles an anonymous user has on the given objectvoidremoveAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds) Removes allowed profiles any connected user has on the given objectvoidremoveAllowedUsers(Set<UserIdentity> users, Object object) Removes the association between some users and all allowed profiles on a given objectvoidremoveAllowedUsers(Set<UserIdentity> users, Object object, String profileId) Removes the association between some users and an allowed profile on a given objectvoidremoveDeniedGroups(Set<GroupIdentity> groups, Object object) Removes the association between some groups and all denied profiles on a given objectvoidremoveDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId) Removes the association between some groups and a denied profile on a given objectvoidremoveDeniedProfilesForAnonymous(Object object, Set<String> profileIds) Removes denied profiles an anonymous user has on the given objectvoidremoveDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds) Removes denied profiles any connected user has on the given objectvoidremoveDeniedUsers(Set<UserIdentity> users, Object object) Removes the association between some users and all denied profiles on a given objectvoidremoveDeniedUsers(Set<UserIdentity> users, Object object, String profileId) Removes the association between some users and an denied profile on a given objectvoidremoveGroup(GroupIdentity group) Removes all the assignments involving this groupvoidremoveProfile(String profileId) Removes all the assignments between this profile and users/groups/anonymous/any connectedvoidremoveUser(UserIdentity user) Removes all the assignments involving this userMethods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriorityMethods inherited from interface org.ametys.core.right.ProfileAssignmentStorage
getAllProfilesForAnonymousAndAnyConnectedUser, getAllProfilesForGroups, getAllProfilesForUser, 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
-