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 (8.0.2.1001)
SyntaxUserHierarchy GenerateHierarchy(
Guid parentId,
Guid entityId,
IList<string> defaultColumns,
PersistencePolicy persistencePolicy,
HierarchyGenerationMethod guessingMethod
)
Function GenerateHierarchy (
parentId As Guid,
entityId As Guid,
defaultColumns As IList(Of String),
persistencePolicy As PersistencePolicy,
guessingMethod As HierarchyGenerationMethod
) As UserHierarchy
UserHierarchy^ GenerateHierarchy(
Guid parentId,
Guid entityId,
IList<String^>^ defaultColumns,
PersistencePolicy persistencePolicy,
HierarchyGenerationMethod guessingMethod
)
abstract GenerateHierarchy :
parentId : Guid *
entityId : Guid *
defaultColumns : IList<string> *
persistencePolicy : PersistencePolicy *
guessingMethod : HierarchyGenerationMethod -> UserHierarchy
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:
UserHierarchyThe generated hierarchy.
Exceptions| Exception | Condition |
|---|
| ArgumentException | parentId or entityId was Empty. |
| NotSupportedException | The data structure with the specified ID cannot be used as a data source for the user hierarchy. |
| NotFoundException | The data structure with the specified ID doesn't exist or cannot be discovered. |
| InvalidSessionException | The caller context is not associated with a valid session. |
| NoPrivilegeException | Caller does not have access to the specified entity. |
| DataProviderLoadException | The data provider may throw this exception if it requires third party driver to be installed. |
| DataConnectionException | The connection cannot be established. |
| NoPrivilegeException | The caller does not have access to save in the specified location. |
See Also