ITokenServiceCreateUserDataToken Method

Creates a new user data token based on the specified data source element.

Namespace:  Dundas.BI.Data.Parameters.Tokens
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
DataToken CreateUserDataToken(
	string tokenName,
	Guid projectId,
	Guid accountId,
	Guid sourceStructureId,
	string elementName,
	TokenDataCategory category
)

Parameters

tokenName
Type: SystemString
The token name.
projectId
Type: SystemGuid
The project Id that will host the source DataCube.
accountId
Type: SystemGuid
The account ID, if this is a user specific token.
sourceStructureId
Type: SystemGuid
The token identifier.
elementName
Type: SystemString
The element name.
category
Type: Dundas.BI.Data.Parameters.TokensTokenDataCategory
The data token category rule.

Return Value

Type: DataToken
Exceptions
ExceptionCondition
ArgumentExceptionprojectId or accountId or sourceStructureId is Empty.
ArgumentException

category is not a valid TokenDataCategory.

-or-

the specified source structure is not a DataCube or a NativeStructure.

ArgumentExceptiontokenName or elementName is or Empty.
NotFoundExceptionThe specified source structure or the data element cannot be found.
NoPrivilegeException

The caller does not have permission to update the token.

-or-

The caller does not have permission to update the token for the token tenant.

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