Package org.ametys.core.right
Interface ModifiableProfileAssignmentStorage
-
- All Superinterfaces:
Prioritizable
,ProfileAssignmentStorage
- All Known Implementing Classes:
JdbcProfileAssignmentStorage
,ModifiableACLAmetysObjectProfileAssignmentStorage
public interface ModifiableProfileAssignmentStorage extends ProfileAssignmentStorage
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 user-
Methods 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 Detail
-
addAllowedProfilesForAnyConnectedUser
void addAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
Adds allowed profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeAllowedProfilesForAnyConnectedUser
void removeAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
Removes allowed profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addDeniedProfilesForAnyConnectedUser
void addDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
Adds denied profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeDeniedProfilesForAnyConnectedUser
void removeDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
Removes denied profiles any connected user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addAllowedProfilesForAnonymous
void addAllowedProfilesForAnonymous(Object object, Set<String> profileIds)
Adds allowed profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeAllowedProfilesForAnonymous
void removeAllowedProfilesForAnonymous(Object object, Set<String> profileIds)
Removes allowed profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addDeniedProfilesForAnonymous
void addDeniedProfilesForAnonymous(Object object, Set<String> profileIds)
Adds denied profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to add
-
removeDeniedProfilesForAnonymous
void removeDeniedProfilesForAnonymous(Object object, Set<String> profileIds)
Removes denied profiles an anonymous user has on the given object- Parameters:
object
- The objectprofileIds
- The profiles to remove
-
addAllowedUsers
void addAllowedUsers(Set<UserIdentity> users, Object object, String profileId)
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
void removeAllowedUsers(Set<UserIdentity> users, Object object, String profileId)
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
void removeAllowedUsers(Set<UserIdentity> users, Object object)
Removes the association between some users and all allowed profiles on a given object- Parameters:
users
- The users to removeobject
- The object
-
addAllowedGroups
void addAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId)
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
void removeAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId)
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
void removeAllowedGroups(Set<GroupIdentity> groups, Object object)
Removes the association between some groups and all allowed profiles on a given object- Parameters:
groups
- The groups to removeobject
- The object
-
addDeniedUsers
void addDeniedUsers(Set<UserIdentity> users, Object object, String profileId)
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
void removeDeniedUsers(Set<UserIdentity> users, Object object, String profileId)
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
void removeDeniedUsers(Set<UserIdentity> users, Object object)
Removes the association between some users and all denied profiles on a given object- Parameters:
users
- The users to removeobject
- The object
-
addDeniedGroups
void addDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId)
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
void removeDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId)
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
void removeDeniedGroups(Set<GroupIdentity> groups, Object object)
Removes the association between some groups and all denied profiles on a given object- Parameters:
groups
- The groups to removeobject
- The object
-
removeProfile
void removeProfile(String profileId)
Removes all the assignments between this profile and users/groups/anonymous/any connected- Parameters:
profileId
- The profile to remove
-
removeUser
void removeUser(UserIdentity user)
Removes all the assignments involving this user- Parameters:
user
- The user
-
removeGroup
void removeGroup(GroupIdentity group)
Removes all the assignments involving this group- Parameters:
group
- The group
-
disallowInheritance
void disallowInheritance(Object object, boolean disallow)
Allow or disallow inheritance of permissions on the given object- Parameters:
object
- The objectdisallow
- true to disallow inheritance, false otherwise
-
-