public class ACLAmetysObjectProfileAssignmentStorage extends AbstractLogEnabled implements ProfileAssignmentStorage
ProfileAssignmentStorage for ACLAmetysObjects 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, setLoggerpublic ACLAmetysObjectProfileAssignmentStorage()
public boolean hasUserDeniedProfile(Set<? extends Object> rootContexts, UserIdentity user, Set<String> profileIds)
ProfileAssignmentStoragehasUserDeniedProfile in interface ProfileAssignmentStoragerootContexts - 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)
ProfileAssignmentStoragehasUserAllowedProfile in interface ProfileAssignmentStoragerootContexts - 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)
ProfileAssignmentStoragehasGroupDeniedProfile in interface ProfileAssignmentStoragerootContexts - 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)
ProfileAssignmentStoragehasGroupAllowedProfile in interface ProfileAssignmentStoragerootContexts - 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)
ProfileAssignmentStoragehasAnyConnectedDeniedProfile in interface ProfileAssignmentStoragerootContexts - The root contexts to search rights forprofileIds - The ids of the profilespublic boolean hasAnyConnectedAllowedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStoragehasAnyConnectedAllowedProfile in interface ProfileAssignmentStoragerootContexts - The root contexts to search rights forprofileIds - The ids of the profilespublic boolean hasAnonymousDeniedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStoragehasAnonymousDeniedProfile in interface ProfileAssignmentStoragerootContexts - The root contexts to search rights forprofileIds - The ids of the profilespublic boolean hasAnonymousAllowedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStoragehasAnonymousAllowedProfile in interface ProfileAssignmentStoragerootContexts - The root contexts to search rights forprofileIds - The ids of the profilespublic Set<String> getAllowedProfilesForAnyConnectedUser(Object object)
ProfileAssignmentStoragegetAllowedProfilesForAnyConnectedUser in interface ProfileAssignmentStorageobject - The objectpublic boolean isAnyConnectedUserAllowed(Object object, String profileId)
ProfileAssignmentStorageisAnyConnectedUserAllowed in interface ProfileAssignmentStorageobject - The objectprofileId - The id of the profilepublic Set<String> getDeniedProfilesForAnyConnectedUser(Object object)
ProfileAssignmentStoragegetDeniedProfilesForAnyConnectedUser in interface ProfileAssignmentStorageobject - The objectpublic boolean isAnyConnectedUserDenied(Object object, String profileId)
ProfileAssignmentStorageisAnyConnectedUserDenied in interface ProfileAssignmentStorageobject - The objectprofileId - The id of the profilepublic Set<String> getAllowedProfilesForAnonymous(Object object)
ProfileAssignmentStoragegetAllowedProfilesForAnonymous in interface ProfileAssignmentStorageobject - The objectpublic boolean isAnonymousAllowed(Object object, String profileId)
ProfileAssignmentStorageisAnonymousAllowed in interface ProfileAssignmentStorageobject - The objectprofileId - The id of the profilepublic Set<String> getDeniedProfilesForAnonymous(Object object)
ProfileAssignmentStoragegetDeniedProfilesForAnonymous in interface ProfileAssignmentStorageobject - The objectpublic boolean isAnonymousDenied(Object object, String profileId)
ProfileAssignmentStorageisAnonymousDenied in interface ProfileAssignmentStorageobject - The objectprofileId - The id of the profilepublic Set<String> getAllowedProfilesForUser(UserIdentity user, Object object)
ProfileAssignmentStoragegetAllowedProfilesForUser in interface ProfileAssignmentStorageuser - The userobject - The object to testpublic Map<UserIdentity,Set<String>> getAllowedProfilesForUsers(Object object)
ProfileAssignmentStoragegetAllowedProfilesForUsers in interface ProfileAssignmentStorageobject - The object to testpublic Set<UserIdentity> getAllowedUsers(Object object, String profileId)
ProfileAssignmentStoragegetAllowedUsers in interface ProfileAssignmentStorageobject - The object to testprofileId - The id of the profilepublic Map<GroupIdentity,Set<String>> getAllowedProfilesForGroups(Object object)
ProfileAssignmentStoragegetAllowedProfilesForGroups in interface ProfileAssignmentStorageobject - The object to testpublic Set<GroupIdentity> getAllowedGroups(Object object, String profileId)
ProfileAssignmentStoragegetAllowedGroups in interface ProfileAssignmentStorageobject - The object to testprofileId - The id of the profilepublic Set<String> getDeniedProfilesForUser(UserIdentity user, Object object)
ProfileAssignmentStoragegetDeniedProfilesForUser in interface ProfileAssignmentStorageuser - The userobject - The object to testpublic Map<UserIdentity,Set<String>> getDeniedProfilesForUsers(Object object)
ProfileAssignmentStoragegetDeniedProfilesForUsers in interface ProfileAssignmentStorageobject - The object to testpublic Set<UserIdentity> getDeniedUsers(Object object, String profileId)
ProfileAssignmentStoragegetDeniedUsers in interface ProfileAssignmentStorageobject - The object to testprofileId - The id of the profilepublic Map<GroupIdentity,Set<String>> getDeniedProfilesForGroups(Object object)
ProfileAssignmentStoragegetDeniedProfilesForGroups in interface ProfileAssignmentStorageobject - The object to testpublic Set<GroupIdentity> getDeniedGroups(Object object, String profileId)
ProfileAssignmentStoragegetDeniedGroups in interface ProfileAssignmentStorageobject - The object to testprofileId - The id of the profilepublic boolean isSupported(Object object)
ProfileAssignmentStorageisSupported in interface ProfileAssignmentStorageobject - The object to testpublic boolean isRootContextSupported(Object rootContext)
ProfileAssignmentStorageisRootContextSupported in interface ProfileAssignmentStoragerootContext - The object to start searchingpublic 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 ProfileAssignmentStorage