public interface ProfileAssignmentStorage
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PRIORITY
Maximum priority.
|
static int |
MIN_PRIORITY
Minimum priority.
|
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)
Deprecated.
This method used to be used by
ProfileAssignmentStorageExtensionPoint but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688). |
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)
Deprecated.
This method used to be used by
ProfileAssignmentStorageExtensionPoint but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688). |
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)
Deprecated.
This method used to be used by
ProfileAssignmentStorageExtensionPoint but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688). |
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)
Deprecated.
This method used to be used by
ProfileAssignmentStorageExtensionPoint but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688). |
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.
|
static final int MIN_PRIORITY
static final int MAX_PRIORITY
@Deprecated boolean hasAnonymousDeniedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStorageExtensionPoint
but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688).rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profilesboolean hasAnonymousAllowedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profiles@Deprecated boolean hasAnyConnectedDeniedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
ProfileAssignmentStorageExtensionPoint
but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688).rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profilesboolean hasAnyConnectedAllowedProfile(Set<? extends Object> rootContexts, Set<String> profileIds)
rootContexts
- The root contexts to search rights forprofileIds
- The ids of the profiles@Deprecated boolean hasUserDeniedProfile(Set<? extends Object> rootContexts, UserIdentity user, Set<String> profileIds)
ProfileAssignmentStorageExtensionPoint
but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688).rootContexts
- The root contexts to search rights foruser
- The user to testprofileIds
- The ids of the profilesboolean hasUserAllowedProfile(Set<? extends Object> rootContexts, UserIdentity user, Set<String> profileIds)
rootContexts
- The root contexts to search rights foruser
- The user to testprofileIds
- The ids of the profiles@Deprecated boolean hasGroupDeniedProfile(Set<? extends Object> rootContexts, GroupIdentity group, Set<String> profileIds)
ProfileAssignmentStorageExtensionPoint
but was proved to be useless and may be removed from the API in the future (see RUNTIME-2688).rootContexts
- The root contexts to search rights forgroup
- The group to testprofileIds
- The ids of the profilesboolean hasGroupAllowedProfile(Set<? extends Object> rootContexts, GroupIdentity group, Set<String> profileIds)
rootContexts
- The root contexts to search rights forgroup
- The group to testprofileIds
- The ids of the profilesSet<String> getAllowedProfilesForAnyConnectedUser(Object object)
object
- The objectboolean isAnyConnectedUserAllowed(Object object, String profileId)
object
- The objectprofileId
- The id of the profileSet<String> getDeniedProfilesForAnyConnectedUser(Object object)
object
- The objectboolean isAnyConnectedUserDenied(Object object, String profileId)
object
- The objectprofileId
- The id of the profileSet<String> getAllowedProfilesForAnonymous(Object object)
object
- The objectboolean isAnonymousAllowed(Object object, String profileId)
object
- The objectprofileId
- The id of the profileSet<String> getDeniedProfilesForAnonymous(Object object)
object
- The objectboolean isAnonymousDenied(Object object, String profileId)
object
- The objectprofileId
- The id of the profileSet<String> getAllowedProfilesForUser(UserIdentity user, Object object)
user
- The userobject
- The object to testMap<UserIdentity,Set<String>> getAllowedProfilesForUsers(Object object)
object
- The object to testSet<UserIdentity> getAllowedUsers(Object object, String profileId)
object
- The object to testprofileId
- The id of the profileMap<GroupIdentity,Set<String>> getAllowedProfilesForGroups(Object object)
object
- The object to testSet<GroupIdentity> getAllowedGroups(Object object, String profileId)
object
- The object to testprofileId
- The id of the profileSet<String> getDeniedProfilesForUser(UserIdentity user, Object object)
user
- The userobject
- The object to testMap<UserIdentity,Set<String>> getDeniedProfilesForUsers(Object object)
object
- The object to testSet<UserIdentity> getDeniedUsers(Object object, String profileId)
object
- The object to testprofileId
- The id of the profileMap<GroupIdentity,Set<String>> getDeniedProfilesForGroups(Object object)
object
- The object to testSet<GroupIdentity> getDeniedGroups(Object object, String profileId)
object
- The object to testprofileId
- The id of the profileboolean isSupported(Object object)
object
- The object to testboolean isRootContextSupported(Object rootContext)
rootContext
- The object to start searchingint getPriority()
ProfileAssignmentStorageExtensionPoint
will take the profile storage
which supports the object with the highest priority to return the allowed/denied users/groups