Click or drag to resize

ContextControllerGetOwnedContextIds Method (Int32, SubTree, IEnumerableInt32, ListOwnerProperty)

Returns the ids of the contexts (data objects) that a user is specified as the owner of.

Namespace:  Omada.OE.Solution.OIM.AppLogic
Assembly:  Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public IntegerList GetOwnedContextIds(
	int ownerId,
	SubTree subTree,
	IEnumerable<int> objectTypeIds = null,
	List<OwnerProperty> ownerProperties = null
)

Parameters

ownerId
Type: SystemInt32
Id of af user for whom we want to retrieve the contexts that she owns (directly or via a group membership).
subTree
Type: Omada.OE.Solution.OIM.Model.EnumSubTree
Contexts can have child-contexts. If "Children" then direct child contexts are returned as well. If "Siblings" then all child and grand child contexts are returned as well (also if they state their own owner).
objectTypeIds (Optional)
Type: System.Collections.GenericIEnumerableInt32
Ids of data object types. Only context objects of these types will be returned. Is ignored if null.
ownerProperties (Optional)
Type: System.Collections.GenericListOwnerProperty
If specified, only contexts where the owner properties (e.g "Owner" or "DelegatedOwner") match the specified values are returned.

Return Value

Type: IntegerList
Ids of context data objects.
See Also