IUserHierarchyServiceGenerateHierarchy Method (Guid, Guid, IListString, PersistencePolicy, HierarchyGenerationMethod)

Guesses the hierarchy based on a single entity.

Namespace:  Dundas.BI.Entities.UserHierarchies
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
UserHierarchy GenerateHierarchy(
	Guid parentId,
	Guid entityId,
	IList<string> defaultColumns,
	PersistencePolicy persistencePolicy,
	HierarchyGenerationMethod guessingMethod
)

Parameters

parentId
Type: SystemGuid
The ID of the parent file or folder.
entityId
Type: SystemGuid
ID of the data source entity.
defaultColumns
Type: System.Collections.GenericIListString
The default column names. The column names serve as a "hint" on how to generate the hierarchy.
persistencePolicy
Type: Dundas.BI.EntitiesPersistencePolicy
A value indicating whether the entity should be created as persistent or transient.
guessingMethod
Type: Dundas.BI.Entities.UserHierarchiesHierarchyGenerationMethod
The guessing method.

Return Value

Type: UserHierarchy
The generated hierarchy.
Exceptions
ExceptionCondition
ArgumentExceptionparentId or entityId was Empty.
NotSupportedExceptionThe data structure with the specified ID cannot be used as a data source for the user hierarchy.
NotFoundExceptionThe data structure with the specified ID doesn't exist or cannot be discovered.
DataProviderLoadExceptionThe data provider may throw this exception if it requires third party driver to be installed.
DataConnectionExceptionThe connection cannot be established.
QuotaExceededExceptionGenerating the hierarchy would cause the entity quota for hierarchies or one of the underlying entity types to be exceeded.
NoPrivilegeException

The Caller does not have access to the specified entity.

-or-

The caller does not have access to save in the specified location.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also