Package org.ametys.plugins.repository
Class ModifiableACLAmetysObjectProfileAssignmentStorage
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.repository.ACLAmetysObjectProfileAssignmentStorage
org.ametys.plugins.repository.ModifiableACLAmetysObjectProfileAssignmentStorage
- All Implemented Interfaces:
ModifiableProfileAssignmentStorage,ProfileAssignmentStorage,LogEnabled,Prioritizable,Supporter<Object>
public class ModifiableACLAmetysObjectProfileAssignmentStorage
extends ACLAmetysObjectProfileAssignmentStorage
implements ModifiableProfileAssignmentStorage
Implementation of
ProfileAssignmentStorage for ModifiableACLAmetysObjects which stores profile assignments in subnodes of the node representing this object.-
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 -
Constructor Summary
Constructors -
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 objectintGet the priority for the component.voidremoveAllowedGroups(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 userbooleanCheck if an element is supportedMethods inherited from class org.ametys.plugins.repository.ACLAmetysObjectProfileAssignmentStorage
getAllAssignmentsForAnonymousAndAnyConnectedUser, getAllAssignmentsForGroups, getAllAssignmentsForUsers, getAllProfilesForAnonymousAndAnyConnectedUser, getAllProfilesForGroups, getAllProfilesForUser, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasAnonymousAnyAllowedProfile, hasAnyConnectedAnyAllowedProfile, hasGroupAnyAllowedProfile, hasUserAnyAllowedProfile, isInheritanceDisallowed, isRootContextSupportedMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.right.ProfileAssignmentStorage
getAllAssignmentsForAnonymousAndAnyConnectedUser, getAllAssignmentsForGroups, getAllAssignmentsForUsers, getAllProfilesForAnonymousAndAnyConnectedUser, getAllProfilesForGroups, getAllProfilesForUser, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasAnonymousAnyAllowedProfile, hasAnyConnectedAnyAllowedProfile, hasGroupAnyAllowedProfile, hasUserAnyAllowedProfile, isInheritanceDisallowed, isRootContextSupported
-
Constructor Details
-
ModifiableACLAmetysObjectProfileAssignmentStorage
-
-
Method Details
-
addAllowedProfilesForAnyConnectedUser
Description copied from interface:ModifiableProfileAssignmentStorageAdds allowed profiles any connected user has on the given object- Specified by:
addAllowedProfilesForAnyConnectedUserin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to add
-
removeAllowedProfilesForAnyConnectedUser
Description copied from interface:ModifiableProfileAssignmentStorageRemoves allowed profiles any connected user has on the given object- Specified by:
removeAllowedProfilesForAnyConnectedUserin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to remove
-
addDeniedProfilesForAnyConnectedUser
Description copied from interface:ModifiableProfileAssignmentStorageAdds denied profiles any connected user has on the given object- Specified by:
addDeniedProfilesForAnyConnectedUserin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to add
-
removeDeniedProfilesForAnyConnectedUser
Description copied from interface:ModifiableProfileAssignmentStorageRemoves denied profiles any connected user has on the given object- Specified by:
removeDeniedProfilesForAnyConnectedUserin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to remove
-
addAllowedProfilesForAnonymous
Description copied from interface:ModifiableProfileAssignmentStorageAdds allowed profiles an anonymous user has on the given object- Specified by:
addAllowedProfilesForAnonymousin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to add
-
removeAllowedProfilesForAnonymous
Description copied from interface:ModifiableProfileAssignmentStorageRemoves allowed profiles an anonymous user has on the given object- Specified by:
removeAllowedProfilesForAnonymousin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to remove
-
addDeniedProfilesForAnonymous
Description copied from interface:ModifiableProfileAssignmentStorageAdds denied profiles an anonymous user has on the given object- Specified by:
addDeniedProfilesForAnonymousin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to add
-
removeDeniedProfilesForAnonymous
Description copied from interface:ModifiableProfileAssignmentStorageRemoves denied profiles an anonymous user has on the given object- Specified by:
removeDeniedProfilesForAnonymousin interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectprofileIds- The profiles to remove
-
addAllowedUsers
Description copied from interface:ModifiableProfileAssignmentStorageAssociates some users with an allowed profile on a given object- Specified by:
addAllowedUsersin interfaceModifiableProfileAssignmentStorage- Parameters:
users- The users to addobject- The objectprofileId- The id of the profile
-
removeAllowedUsers
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some users and an allowed profile on a given object- Specified by:
removeAllowedUsersin interfaceModifiableProfileAssignmentStorage- Parameters:
users- The users to removeobject- The objectprofileId- The id of the profile
-
removeAllowedUsers
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some users and all allowed profiles on a given object- Specified by:
removeAllowedUsersin interfaceModifiableProfileAssignmentStorage- Parameters:
users- The users to removeobject- The object
-
addAllowedGroups
Description copied from interface:ModifiableProfileAssignmentStorageAssociates some groups with an allowed profile on a given object- Specified by:
addAllowedGroupsin interfaceModifiableProfileAssignmentStorage- Parameters:
groups- The groups to addobject- The objectprofileId- The id of the profile
-
removeAllowedGroups
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some groups and an allowed profile on a given object- Specified by:
removeAllowedGroupsin interfaceModifiableProfileAssignmentStorage- Parameters:
groups- The groups to removeobject- The objectprofileId- The id of the profile
-
removeAllowedGroups
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some groups and all allowed profiles on a given object- Specified by:
removeAllowedGroupsin interfaceModifiableProfileAssignmentStorage- Parameters:
groups- The groups to removeobject- The object
-
addDeniedUsers
Description copied from interface:ModifiableProfileAssignmentStorageAssociates some users with a denied profile on a given object- Specified by:
addDeniedUsersin interfaceModifiableProfileAssignmentStorage- Parameters:
users- The users to addobject- The objectprofileId- The id of the profile
-
removeDeniedUsers
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some users and an denied profile on a given object- Specified by:
removeDeniedUsersin interfaceModifiableProfileAssignmentStorage- Parameters:
users- The users to removeobject- The objectprofileId- The id of the profile
-
removeDeniedUsers
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some users and all denied profiles on a given object- Specified by:
removeDeniedUsersin interfaceModifiableProfileAssignmentStorage- Parameters:
users- The users to removeobject- The object
-
addDeniedGroups
Description copied from interface:ModifiableProfileAssignmentStorageAssociates some groups with a denied profile on a given object- Specified by:
addDeniedGroupsin interfaceModifiableProfileAssignmentStorage- Parameters:
groups- The groups to addobject- The objectprofileId- The id of the profile
-
removeDeniedGroups
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some groups and a denied profile on a given object- Specified by:
removeDeniedGroupsin interfaceModifiableProfileAssignmentStorage- Parameters:
groups- The groups to removeobject- The objectprofileId- The id of the profile
-
removeDeniedGroups
Description copied from interface:ModifiableProfileAssignmentStorageRemoves the association between some groups and all denied profiles on a given object- Specified by:
removeDeniedGroupsin interfaceModifiableProfileAssignmentStorage- Parameters:
groups- The groups to removeobject- The object
-
removeProfile
Description copied from interface:ModifiableProfileAssignmentStorageRemoves all the assignments between this profile and users/groups/anonymous/any connected- Specified by:
removeProfilein interfaceModifiableProfileAssignmentStorage- Parameters:
profileId- The profile to remove
-
removeUser
Description copied from interface:ModifiableProfileAssignmentStorageRemoves all the assignments involving this user- Specified by:
removeUserin interfaceModifiableProfileAssignmentStorage- Parameters:
user- The user
-
removeGroup
Description copied from interface:ModifiableProfileAssignmentStorageRemoves all the assignments involving this group- Specified by:
removeGroupin interfaceModifiableProfileAssignmentStorage- Parameters:
group- The group
-
disallowInheritance
Description copied from interface:ModifiableProfileAssignmentStorageAllow or disallow inheritance of permissions on the given object- Specified by:
disallowInheritancein interfaceModifiableProfileAssignmentStorage- Parameters:
object- The objectdisallow- true to disallow inheritance, false otherwise
-
supports
Description copied from interface:SupporterCheck if an element is supported- Specified by:
supportsin interfaceSupporter<Object>- Overrides:
supportsin classACLAmetysObjectProfileAssignmentStorage- Parameters:
object- The element- Returns:
trueif the element is supported,falseotherwise
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Overrides:
getPriorityin classACLAmetysObjectProfileAssignmentStorage- Returns:
- the priority
-