Package com.i2group.disco.user
Class PropertyBasedDefaultSecurityDimensionValuesProvider
java.lang.Object
com.i2group.disco.user.PropertyBasedDefaultSecurityDimensionValuesProvider
- All Implemented Interfaces:
IDefaultSecurityDimensionValuesProvider
public final class PropertyBasedDefaultSecurityDimensionValuesProvider
extends Object
implements IDefaultSecurityDimensionValuesProvider
An implementation of
IDefaultSecurityDimensionValuesProvider
that returns the same DefaultSecurityDimension
s for all users, based on the contents of an element in the security
schema named DefaultSecurityDimensionValues
.
The value of the element must be a comma-separated list of security dimension value identifiers. It is the responsibility of the administrator to ensure that the list specifies at least one value in each security dimension, and that rules about ordered and unordered security dimensions are obeyed.
- Since:
- 10.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The value of the Default Security Dimension Values Element -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultSecurityDimensions
(Principal principal, Set<String> userGroups, com.i2group.apollo.model.security.dynamic.transport.SecuritySchema securitySchema) Gets a set ofDefaultSecurityDimension
s by taking into account none, some, or all of the specified arguments.
-
Field Details
-
DEFAULT_SECURITY_DIMENSION_VALUES_ELEMENT
The value of the Default Security Dimension Values Element- See Also:
-
-
Constructor Details
-
PropertyBasedDefaultSecurityDimensionValuesProvider
public PropertyBasedDefaultSecurityDimensionValuesProvider()
-
-
Method Details
-
getDefaultSecurityDimensions
public Collection<DefaultSecurityDimension> getDefaultSecurityDimensions(Principal principal, Set<String> userGroups, com.i2group.apollo.model.security.dynamic.transport.SecuritySchema securitySchema) Description copied from interface:IDefaultSecurityDimensionValuesProvider
Gets a set ofDefaultSecurityDimension
s by taking into account none, some, or all of the specified arguments.Validation:
- The response must not be null
- The identified dimension in each
DefaultSecurityDimension
must be a dimension in the security schema - The identified dimension values in each
DefaultSecurityDimension
must be dimension values in the security schema - The list of dimension value identifiers in each
DefaultSecurityDimension
must not be null or empty - If the identified dimension in a
DefaultSecurityDimension
is ordered, there must be exactly one dimension value identifier
- Specified by:
getDefaultSecurityDimensions
in interfaceIDefaultSecurityDimensionValuesProvider
- Parameters:
principal
- ThePrincipal
that represents the connected user.userGroups
-String
s containing the names of the groups of which the connected user is a member.securitySchema
- TheSecuritySchema
for this deployment of i2 Analyze.- Returns:
- See above.
-