public class ModifiableACLAmetysObjectProfileAssignmentStorage extends ACLAmetysObjectProfileAssignmentStorage implements ModifiableProfileAssignmentStorage
ProfileAssignmentStorage for ModifiableACLAmetysObjects which stores profile assignments in subnodes of the node representing this object.MAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
ModifiableACLAmetysObjectProfileAssignmentStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedGroups(Set<GroupIdentity> groups,
Object object,
String profileId)
Associates some groups with an allowed profile on a given object
|
void |
addAllowedProfilesForAnonymous(Object object,
Set<String> profileIds)
Adds allowed profiles an anonymous user has on the given object
|
void |
addAllowedProfilesForAnyConnectedUser(Object object,
Set<String> profileIds)
Adds allowed profiles any connected user has on the given object
|
void |
addAllowedUsers(Set<UserIdentity> users,
Object object,
String profileId)
Associates some users with an allowed profile on a given object
|
void |
addDeniedGroups(Set<GroupIdentity> groups,
Object object,
String profileId)
Associates some groups with a denied profile on a given object
|
void |
addDeniedProfilesForAnonymous(Object object,
Set<String> profileIds)
Adds denied profiles an anonymous user has on the given object
|
void |
addDeniedProfilesForAnyConnectedUser(Object object,
Set<String> profileIds)
Adds denied profiles any connected user has on the given object
|
void |
addDeniedUsers(Set<UserIdentity> users,
Object object,
String profileId)
Associates some users with a denied profile on a given object
|
Set<UserIdentity> |
getAllowedUsers(Object object,
String profileId)
Gets the users that have the given allowed profile on the given object
|
int |
getPriority()
Returns the priority of this profile storage
The
ProfileAssignmentStorageExtensionPoint will take the profile storage
which supports the object with the highest priority to return the allowed/denied users/groups |
boolean |
isSupported(Object object)
Returns true if this profile storage supports the given object,
i.e.
|
void |
removeAllowedGroups(Set<GroupIdentity> groups,
Object object)
Removes the association between some groups and all allowed profiles on a given object
|
void |
removeAllowedGroups(Set<GroupIdentity> groups,
Object object,
String profileId)
Removes the association between some groups and an allowed profile on a given object
|
void |
removeAllowedProfilesForAnonymous(Object object,
Set<String> profileIds)
Removes allowed profiles an anonymous user has on the given object
|
void |
removeAllowedProfilesForAnyConnectedUser(Object object,
Set<String> profileIds)
Removes allowed profiles any connected user has on the given object
|
void |
removeAllowedUsers(Set<UserIdentity> users,
Object object)
Removes the association between some users and all allowed profiles on a given object
|
void |
removeAllowedUsers(Set<UserIdentity> users,
Object object,
String profileId)
Removes the association between some users and an allowed profile on a given object
|
void |
removeDeniedGroups(Set<GroupIdentity> groups,
Object object)
Removes the association between some groups and all denied profiles on a given object
|
void |
removeDeniedGroups(Set<GroupIdentity> groups,
Object object,
String profileId)
Removes the association between some groups and a denied profile on a given object
|
void |
removeDeniedProfilesForAnonymous(Object object,
Set<String> profileIds)
Removes denied profiles an anonymous user has on the given object
|
void |
removeDeniedProfilesForAnyConnectedUser(Object object,
Set<String> profileIds)
Removes denied profiles any connected user has on the given object
|
void |
removeDeniedUsers(Set<UserIdentity> users,
Object object)
Removes the association between some users and all denied profiles on a given object
|
void |
removeDeniedUsers(Set<UserIdentity> users,
Object object,
String profileId)
Removes the association between some users and an denied profile on a given object
|
void |
removeGroup(GroupIdentity group)
Removes all the assignments involving this group
|
void |
removeProfile(String profileId)
Removes all the assignments between this profile and users/groups/anonymous/any connected
|
void |
removeUser(UserIdentity user)
Removes all the assignments involving this user
|
getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasAnonymousAllowedProfile, hasAnonymousDeniedProfile, hasAnyConnectedAllowedProfile, hasAnyConnectedDeniedProfile, hasGroupAllowedProfile, hasGroupDeniedProfile, hasUserAllowedProfile, hasUserDeniedProfile, isAnonymousAllowed, isAnonymousDenied, isAnyConnectedUserAllowed, isAnyConnectedUserDenied, isRootContextSupportedgetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasAnonymousAllowedProfile, hasAnonymousDeniedProfile, hasAnyConnectedAllowedProfile, hasAnyConnectedDeniedProfile, hasGroupAllowedProfile, hasGroupDeniedProfile, hasUserAllowedProfile, hasUserDeniedProfile, isAnonymousAllowed, isAnonymousDenied, isAnyConnectedUserAllowed, isAnyConnectedUserDenied, isRootContextSupportedpublic ModifiableACLAmetysObjectProfileAssignmentStorage()
public void addAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageaddAllowedProfilesForAnyConnectedUser in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to addpublic void removeAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageremoveAllowedProfilesForAnyConnectedUser in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to removepublic void addDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageaddDeniedProfilesForAnyConnectedUser in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to addpublic void removeDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageremoveDeniedProfilesForAnyConnectedUser in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to removepublic void addAllowedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageaddAllowedProfilesForAnonymous in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to addpublic void removeAllowedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageremoveAllowedProfilesForAnonymous in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to removepublic void addDeniedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageaddDeniedProfilesForAnonymous in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to addpublic void removeDeniedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorageremoveDeniedProfilesForAnonymous in interface ModifiableProfileAssignmentStorageobject - The objectprofileIds - The profiles to removepublic Set<UserIdentity> getAllowedUsers(Object object, String profileId)
ProfileAssignmentStoragegetAllowedUsers in interface ProfileAssignmentStoragegetAllowedUsers in class ACLAmetysObjectProfileAssignmentStorageobject - The object to testprofileId - The id of the profilepublic void addAllowedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorageaddAllowedUsers in interface ModifiableProfileAssignmentStorageusers - The users to addobject - The objectprofileId - The id of the profilepublic void removeAllowedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorageremoveAllowedUsers in interface ModifiableProfileAssignmentStorageusers - The users to removeobject - The objectprofileId - The id of the profilepublic void removeAllowedUsers(Set<UserIdentity> users, Object object)
ModifiableProfileAssignmentStorageremoveAllowedUsers in interface ModifiableProfileAssignmentStorageusers - The users to removeobject - The objectpublic void addAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorageaddAllowedGroups in interface ModifiableProfileAssignmentStoragegroups - The groups to addobject - The objectprofileId - The id of the profilepublic void removeAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorageremoveAllowedGroups in interface ModifiableProfileAssignmentStoragegroups - The groups to removeobject - The objectprofileId - The id of the profilepublic void removeAllowedGroups(Set<GroupIdentity> groups, Object object)
ModifiableProfileAssignmentStorageremoveAllowedGroups in interface ModifiableProfileAssignmentStoragegroups - The groups to removeobject - The objectpublic void addDeniedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorageaddDeniedUsers in interface ModifiableProfileAssignmentStorageusers - The users to addobject - The objectprofileId - The id of the profilepublic void removeDeniedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorageremoveDeniedUsers in interface ModifiableProfileAssignmentStorageusers - The users to removeobject - The objectprofileId - The id of the profilepublic void removeDeniedUsers(Set<UserIdentity> users, Object object)
ModifiableProfileAssignmentStorageremoveDeniedUsers in interface ModifiableProfileAssignmentStorageusers - The users to removeobject - The objectpublic void addDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorageaddDeniedGroups in interface ModifiableProfileAssignmentStoragegroups - The groups to addobject - The objectprofileId - The id of the profilepublic void removeDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorageremoveDeniedGroups in interface ModifiableProfileAssignmentStoragegroups - The groups to removeobject - The objectprofileId - The id of the profilepublic void removeDeniedGroups(Set<GroupIdentity> groups, Object object)
ModifiableProfileAssignmentStorageremoveDeniedGroups in interface ModifiableProfileAssignmentStoragegroups - The groups to removeobject - The objectpublic void removeProfile(String profileId)
ModifiableProfileAssignmentStorageremoveProfile in interface ModifiableProfileAssignmentStorageprofileId - The profile to removepublic void removeUser(UserIdentity user)
ModifiableProfileAssignmentStorageremoveUser in interface ModifiableProfileAssignmentStorageuser - The userpublic void removeGroup(GroupIdentity group)
ModifiableProfileAssignmentStorageremoveGroup in interface ModifiableProfileAssignmentStoragegroup - The grouppublic boolean isSupported(Object object)
ProfileAssignmentStorageisSupported in interface ProfileAssignmentStorageisSupported in class ACLAmetysObjectProfileAssignmentStorageobject - The object to testpublic int getPriority()
ProfileAssignmentStorageProfileAssignmentStorageExtensionPoint will take the profile storage
which supports the object with the highest priority to return the allowed/denied users/groupsgetPriority in interface ProfileAssignmentStoragegetPriority in class ACLAmetysObjectProfileAssignmentStorage