public class ACLAmetysObjectProfileAssignmentStorage extends AbstractLogEnabled implements ProfileAssignmentStorage
ProfileAssignmentStorage
for ACLAmetysObject
s which stores profile assignments in subnodes of the node representing this object.MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
ACLAmetysObjectProfileAssignmentStorage() |
Modifier and Type | Method and Description |
---|---|
Set<GroupIdentity> |
getAllowedGroups(Object object,
String profileId)
Gets the groups that have the given allowed profile on the given object
|
Set<String> |
getAllowedProfilesForAnonymous(Object object)
Gets the allowed profiles an anonymous user has on the given object
|
Set<String> |
getAllowedProfilesForAnyConnectedUser(Object object)
Gets the allowed profiles any connected user has on the given object
|
Map<GroupIdentity,Set<String>> |
getAllowedProfilesForGroups(Object object)
Gets the groups that have allowed profiles assigned on the given object
|
Set<String> |
getAllowedProfilesForUser(UserIdentity user,
Object object)
Get the allowed profiles assigned on the given object for the given user
|
Map<UserIdentity,Set<String>> |
getAllowedProfilesForUsers(Object object)
Gets the users that have allowed profiles assigned on the given object
|
Set<UserIdentity> |
getAllowedUsers(Object object,
String profileId)
Gets the users that have the given allowed profile on the given object
|
Set<GroupIdentity> |
getDeniedGroups(Object object,
String profileId)
Gets the groups that have the given denied profile on the given object
|
Set<String> |
getDeniedProfilesForAnonymous(Object object)
Gets the denied profiles an anonymous user has on the given object
|
Set<String> |
getDeniedProfilesForAnyConnectedUser(Object object)
Gets the denied profiles any connected user has on the given object
|
Map<GroupIdentity,Set<String>> |
getDeniedProfilesForGroups(Object object)
Gets the groups that have denied profiles assigned on the given object
|
Set<String> |
getDeniedProfilesForUser(UserIdentity user,
Object object)
Get the denied profiles assigned on the given object for the given user
|
Map<UserIdentity,Set<String>> |
getDeniedProfilesForUsers(Object object)
Gets the users that have denied profiles assigned on the given object
|
Set<UserIdentity> |
getDeniedUsers(Object object,
String profileId)
Gets the users that have the given denied 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 |
hasAnonymousAllowedProfile(Set<? extends Object> rootContexts,
Set<String> profileIds)
Returns true if anonymous user has the allowed profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasAnonymousDeniedProfile(Set<? extends Object> rootContexts,
Set<String> profileIds)
Returns true if anonymous user has the denied profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasAnyConnectedAllowedProfile(Set<? extends Object> rootContexts,
Set<String> profileIds)
Returns true if any connected user has the allowed profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasAnyConnectedDeniedProfile(Set<? extends Object> rootContexts,
Set<String> profileIds)
Returns true if any connected user has the denied profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasGroupAllowedProfile(Set<? extends Object> rootContexts,
GroupIdentity group,
Set<String> profileIds)
Returns true if group has the allowed profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasGroupDeniedProfile(Set<? extends Object> rootContexts,
GroupIdentity group,
Set<String> profileIds)
Returns true if group has the denied profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasUserAllowedProfile(Set<? extends Object> rootContexts,
UserIdentity user,
Set<String> profileIds)
Returns true if user has the allowed profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
hasUserDeniedProfile(Set<? extends Object> rootContexts,
UserIdentity user,
Set<String> profileIds)
Returns true if user has the denied profile for any given root context (or any sub context), given some profiles.
Only supported objects are transmitted |
boolean |
isAnonymousAllowed(Object object,
String profileId)
Returns true if anonymous is allowed with the given profile
|
boolean |
isAnonymousDenied(Object object,
String profileId)
Returns true if anonymous is denied with the given profile
|
boolean |
isAnyConnectedUserAllowed(Object object,
String profileId)
Returns true if any connected user is allowed with the given profile
|
boolean |
isAnyConnectedUserDenied(Object object,
String profileId)
Returns true if any connected user is denied with the given profile
|
boolean |
isRootContextSupported(Object rootContext)
Returns true if this profile storage supports the given object as a root context
i.e.
|
boolean |
isSupported(Object object)
Returns true if this profile storage supports the given object,
i.e.
|
getLogger, setLogger
public ACLAmetysObjectProfileAssignmentStorage()
public boolean hasUserDeniedProfile(Set<? extends Object> rootContexts, UserIdentity user, Set<String> profileIds)
ProfileAssignmentStorage
hasUserDeniedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights foruser
- The user to testprofileIds
- The ids of the profilespublic boolean hasUserAllowedProfile(Set<? extends Object> rootContexts, UserIdentity user, Set<String> profileIds)
ProfileAssignmentStorage
hasUserAllowedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights foruser
- The user to testprofileIds
- The ids of the profilespublic boolean hasGroupDeniedProfile(Set<? extends Object> rootContexts, GroupIdentity group, Set<String> profileIds)
ProfileAssignmentStorage
hasGroupDeniedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights forgroup
- The group to testprofileIds
- The ids of the profilespublic boolean hasGroupAllowedProfile(Set<? extends Object> rootContexts, GroupIdentity group, Set<String> profileIds)
ProfileAssignmentStorage
hasGroupAllowedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights forgroup
- The group to testprofileIds
- The ids of the profilespublic boolean hasAnyConnectedDeniedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStorage
hasAnyConnectedDeniedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profilespublic boolean hasAnyConnectedAllowedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStorage
hasAnyConnectedAllowedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profilespublic boolean hasAnonymousDeniedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStorage
hasAnonymousDeniedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profilespublic boolean hasAnonymousAllowedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStorage
hasAnonymousAllowedProfile
in interface ProfileAssignmentStorage
rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profilespublic Set<String> getAllowedProfilesForAnyConnectedUser(Object object)
ProfileAssignmentStorage
getAllowedProfilesForAnyConnectedUser
in interface ProfileAssignmentStorage
object
- The objectpublic boolean isAnyConnectedUserAllowed(Object object, String profileId)
ProfileAssignmentStorage
isAnyConnectedUserAllowed
in interface ProfileAssignmentStorage
object
- The objectprofileId
- The id of the profilepublic Set<String> getDeniedProfilesForAnyConnectedUser(Object object)
ProfileAssignmentStorage
getDeniedProfilesForAnyConnectedUser
in interface ProfileAssignmentStorage
object
- The objectpublic boolean isAnyConnectedUserDenied(Object object, String profileId)
ProfileAssignmentStorage
isAnyConnectedUserDenied
in interface ProfileAssignmentStorage
object
- The objectprofileId
- The id of the profilepublic Set<String> getAllowedProfilesForAnonymous(Object object)
ProfileAssignmentStorage
getAllowedProfilesForAnonymous
in interface ProfileAssignmentStorage
object
- The objectpublic boolean isAnonymousAllowed(Object object, String profileId)
ProfileAssignmentStorage
isAnonymousAllowed
in interface ProfileAssignmentStorage
object
- The objectprofileId
- The id of the profilepublic Set<String> getDeniedProfilesForAnonymous(Object object)
ProfileAssignmentStorage
getDeniedProfilesForAnonymous
in interface ProfileAssignmentStorage
object
- The objectpublic boolean isAnonymousDenied(Object object, String profileId)
ProfileAssignmentStorage
isAnonymousDenied
in interface ProfileAssignmentStorage
object
- The objectprofileId
- The id of the profilepublic Set<String> getAllowedProfilesForUser(UserIdentity user, Object object)
ProfileAssignmentStorage
getAllowedProfilesForUser
in interface ProfileAssignmentStorage
user
- The userobject
- The object to testpublic Map<UserIdentity,Set<String>> getAllowedProfilesForUsers(Object object)
ProfileAssignmentStorage
getAllowedProfilesForUsers
in interface ProfileAssignmentStorage
object
- The object to testpublic Set<UserIdentity> getAllowedUsers(Object object, String profileId)
ProfileAssignmentStorage
getAllowedUsers
in interface ProfileAssignmentStorage
object
- The object to testprofileId
- The id of the profilepublic Map<GroupIdentity,Set<String>> getAllowedProfilesForGroups(Object object)
ProfileAssignmentStorage
getAllowedProfilesForGroups
in interface ProfileAssignmentStorage
object
- The object to testpublic Set<GroupIdentity> getAllowedGroups(Object object, String profileId)
ProfileAssignmentStorage
getAllowedGroups
in interface ProfileAssignmentStorage
object
- The object to testprofileId
- The id of the profilepublic Set<String> getDeniedProfilesForUser(UserIdentity user, Object object)
ProfileAssignmentStorage
getDeniedProfilesForUser
in interface ProfileAssignmentStorage
user
- The userobject
- The object to testpublic Map<UserIdentity,Set<String>> getDeniedProfilesForUsers(Object object)
ProfileAssignmentStorage
getDeniedProfilesForUsers
in interface ProfileAssignmentStorage
object
- The object to testpublic Set<UserIdentity> getDeniedUsers(Object object, String profileId)
ProfileAssignmentStorage
getDeniedUsers
in interface ProfileAssignmentStorage
object
- The object to testprofileId
- The id of the profilepublic Map<GroupIdentity,Set<String>> getDeniedProfilesForGroups(Object object)
ProfileAssignmentStorage
getDeniedProfilesForGroups
in interface ProfileAssignmentStorage
object
- The object to testpublic Set<GroupIdentity> getDeniedGroups(Object object, String profileId)
ProfileAssignmentStorage
getDeniedGroups
in interface ProfileAssignmentStorage
object
- The object to testprofileId
- The id of the profilepublic boolean isSupported(Object object)
ProfileAssignmentStorage
isSupported
in interface ProfileAssignmentStorage
object
- The object to testpublic boolean isRootContextSupported(Object rootContext)
ProfileAssignmentStorage
isRootContextSupported
in interface ProfileAssignmentStorage
rootContext
- The object to start searchingpublic 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