| ContextControllerGetOwnedContextIds Method (Int32, IEnumerableInt32, Boolean, 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
Syntaxpublic IntegerList GetOwnedContextIds(
int ownerId,
IEnumerable<int> objectTypeIds = null,
bool includeDescendants = false,
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).
- objectTypeIds (Optional)
- Type: System.Collections.GenericIEnumerableInt32
Ids of data object types.
Only context objects of these types will be returned.
Is ignored if null.
- includeDescendants (Optional)
- Type: SystemBoolean
Contexts can have child-contexts.
If includeDescendants is true then all descendant contexts (children, grandchildren, etc.) are returned as well (also if the descendants state an owner).
- 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