public class ModifiableACLAmetysObjectProfileAssignmentStorage extends ACLAmetysObjectProfileAssignmentStorage implements ModifiableProfileAssignmentStorage
ProfileAssignmentStorage
for ModifiableACLAmetysObject
s 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, isRootContextSupported
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, isRootContextSupported
public ModifiableACLAmetysObjectProfileAssignmentStorage()
public void addAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
addAllowedProfilesForAnyConnectedUser
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to addpublic void removeAllowedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
removeAllowedProfilesForAnyConnectedUser
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to removepublic void addDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
addDeniedProfilesForAnyConnectedUser
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to addpublic void removeDeniedProfilesForAnyConnectedUser(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
removeDeniedProfilesForAnyConnectedUser
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to removepublic void addAllowedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
addAllowedProfilesForAnonymous
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to addpublic void removeAllowedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
removeAllowedProfilesForAnonymous
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to removepublic void addDeniedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
addDeniedProfilesForAnonymous
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to addpublic void removeDeniedProfilesForAnonymous(Object object, Set<String> profileIds)
ModifiableProfileAssignmentStorage
removeDeniedProfilesForAnonymous
in interface ModifiableProfileAssignmentStorage
object
- The objectprofileIds
- The profiles to removepublic Set<UserIdentity> getAllowedUsers(Object object, String profileId)
ProfileAssignmentStorage
getAllowedUsers
in interface ProfileAssignmentStorage
getAllowedUsers
in class ACLAmetysObjectProfileAssignmentStorage
object
- The object to testprofileId
- The id of the profilepublic void addAllowedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorage
addAllowedUsers
in interface ModifiableProfileAssignmentStorage
users
- The users to addobject
- The objectprofileId
- The id of the profilepublic void removeAllowedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorage
removeAllowedUsers
in interface ModifiableProfileAssignmentStorage
users
- The users to removeobject
- The objectprofileId
- The id of the profilepublic void removeAllowedUsers(Set<UserIdentity> users, Object object)
ModifiableProfileAssignmentStorage
removeAllowedUsers
in interface ModifiableProfileAssignmentStorage
users
- The users to removeobject
- The objectpublic void addAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorage
addAllowedGroups
in interface ModifiableProfileAssignmentStorage
groups
- The groups to addobject
- The objectprofileId
- The id of the profilepublic void removeAllowedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorage
removeAllowedGroups
in interface ModifiableProfileAssignmentStorage
groups
- The groups to removeobject
- The objectprofileId
- The id of the profilepublic void removeAllowedGroups(Set<GroupIdentity> groups, Object object)
ModifiableProfileAssignmentStorage
removeAllowedGroups
in interface ModifiableProfileAssignmentStorage
groups
- The groups to removeobject
- The objectpublic void addDeniedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorage
addDeniedUsers
in interface ModifiableProfileAssignmentStorage
users
- The users to addobject
- The objectprofileId
- The id of the profilepublic void removeDeniedUsers(Set<UserIdentity> users, Object object, String profileId)
ModifiableProfileAssignmentStorage
removeDeniedUsers
in interface ModifiableProfileAssignmentStorage
users
- The users to removeobject
- The objectprofileId
- The id of the profilepublic void removeDeniedUsers(Set<UserIdentity> users, Object object)
ModifiableProfileAssignmentStorage
removeDeniedUsers
in interface ModifiableProfileAssignmentStorage
users
- The users to removeobject
- The objectpublic void addDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorage
addDeniedGroups
in interface ModifiableProfileAssignmentStorage
groups
- The groups to addobject
- The objectprofileId
- The id of the profilepublic void removeDeniedGroups(Set<GroupIdentity> groups, Object object, String profileId)
ModifiableProfileAssignmentStorage
removeDeniedGroups
in interface ModifiableProfileAssignmentStorage
groups
- The groups to removeobject
- The objectprofileId
- The id of the profilepublic void removeDeniedGroups(Set<GroupIdentity> groups, Object object)
ModifiableProfileAssignmentStorage
removeDeniedGroups
in interface ModifiableProfileAssignmentStorage
groups
- The groups to removeobject
- The objectpublic void removeProfile(String profileId)
ModifiableProfileAssignmentStorage
removeProfile
in interface ModifiableProfileAssignmentStorage
profileId
- The profile to removepublic void removeUser(UserIdentity user)
ModifiableProfileAssignmentStorage
removeUser
in interface ModifiableProfileAssignmentStorage
user
- The userpublic void removeGroup(GroupIdentity group)
ModifiableProfileAssignmentStorage
removeGroup
in interface ModifiableProfileAssignmentStorage
group
- The grouppublic boolean isSupported(Object object)
ProfileAssignmentStorage
isSupported
in interface ProfileAssignmentStorage
isSupported
in class ACLAmetysObjectProfileAssignmentStorage
object
- The object to testpublic int getPriority()
ProfileAssignmentStorage
ProfileAssignmentStorageExtensionPoint
will take the profile storage
which supports the object with the highest priority to return the allowed/denied users/groupsgetPriority
in interface ProfileAssignmentStorage
getPriority
in class ACLAmetysObjectProfileAssignmentStorage