Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

CoreIdentitiesByValidEmploymentFilter (Version >= 8)

This filter gives access to core identities that have valid employment for the organization unit in the assignment context or its children.

/// <param name="maxDepth">Defines how deep down into the organization unit path should be searched</param>
CoreIdentitiesByValidEmploymentFilter(uint? maxDepth) 

Example:

new CoreIdentitiesByValidEmploymentFilter(null);
new CoreIdentitiesByValidEmploymentFilter(5u);

CoreIdentityAttributeValueFilter

This filter will give you access to a core identity only when the core identity has an attribute value that matches the filter

/// <typeparam name="TFilterPropertyType">The filter type you want to find the correct attribute values</typeparam>
/// <param name="subPropertyChain">Path to the property to filter the possible attribute values</param>
/// <param name="filterValue">The filter to search the attribute values to check</param>
/// <param name="attributeValueFilterBehaviour">Behaviour how to filter the attribute values based on attributeValueFilterValue</param>
/// <param name="attributeValueFilterValue">The filter value you want to apply to the attribute values</param>
/// <param name="attributeValueType">The type how the attribute value is serialized into the database</param>
CoreIdentityAttributeValueFilter<TFilterPropertyType> (Expression<Func<ICoreIdentityAttributeValue, TFilterPropertyType>> subPropertyChain, TFilterPropertyType filterValue, StringFilterBehaviour attributeValueFilterBehaviour, string attributeValueFilterValue, string attributeValueType)

Example:

new CoreIdentityAttributeValueFilter<uint>(c => c.Attribute.Id, 1, StringFilterBehaviour.EndsWith, "li", "string")

CoreIdentityValidAssignmentFilter

This filter will give you access to a core identity only when a valid role or resource assignment is present

/// <typeparam name="TDtoCollectionObject">The assignment type you want to use</typeparam>
/// <typeparam name="TFilterPropertyType">The filter type you want to use</typeparam>
/// <param name="propertyChain">The path to the assignment collection</param>
/// <param name="subPropertyChain">The path to the property to filter the assignments</param>
/// <param name="filterValue">The value to filter the assignments</param>
CoreIdentityValidAssignmentFilter<TDtoCollectionObject, TFilterPropertyType>(Expression<Func<ICoreIdentity, IEnumerable<TDtoCollectionObject>>> propertyChain, Expression<Func<TDtoCollectionObject, TFilterPropertyType>> subPropertyChain, TFilterPropertyType filterValue) 

Example:

new CoreIdentityValidAssignmentFilter<IResourceAssignment, uint>(c => c.ResourceAssignments, r => r.Resource.Id, 1)
  • No labels