• API
Show / Hide Table of Contents
  • BiExcellence.OpenBi.Api
    • IOpenBiConfiguration
    • IOpenBiRequest
    • IOpenBiRequestSerializable
    • IOpenBiResponse
    • IOpenBiServerMessage
    • IOpenBiSession
    • IOpenBiSessionHttpClient
    • MessageCategory
    • OpenBiConfiguration
    • OpenBiConfigurationExtensions
    • OpenBiErrorEventArgs
    • OpenBiRequestEventArgs
    • OpenBiRequestExtensions
    • OpenBiResponseCodes
    • OpenBiResponseEventArgs
    • OpenBiServerErrorException
    • OpenBiSession
    • OpenBiSessionExtensions
    • Protocol
    • SecureOpenBiSession
  • BiExcellence.OpenBi.Api.Commands
    • ContentTypes
    • Filter
    • FilterOperator
    • FilterSign
    • HierarchyNode<T>
    • IFilter
    • IListRequest
    • IListRequest<T>
    • IListResponse
    • IListResponse<T>
    • ILoginInfo
    • IPingInfo
    • ISessionInfo
    • ListRequestExtensions
    • OpenBiLoginExtensions
    • OpenBiPingExtensions
  • BiExcellence.OpenBi.Api.Commands.AuthObjects
    • AuthObject
    • AuthObjectValue
    • IAuthObject
    • IAuthObjectValue
    • OpenBiAuthObjectExtensions
  • BiExcellence.OpenBi.Api.Commands.AuthObjects.Internal
    • AuthObjectJsonImpl
    • AuthObjectValueJsonImpl
  • BiExcellence.OpenBi.Api.Commands.BatchJobs
    • BatchJob
    • BatchJobHandlerParameterType
    • BatchJobParameter
    • BatchJobPeriodicType
    • BatchJobType
    • IBatchJob
    • IBatchJobHandler
    • IBatchJobHandlerParameter
    • IBatchJobLog
    • IBatchJobLogEntry
    • IBatchJobParameter
    • OpenBiBatchJobExtensions
    • OpenBiConfigurationExtensions
  • BiExcellence.OpenBi.Api.Commands.BatchJobs.Internal
    • BatchJobJsonImpl
    • BatchJobParameterJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Blogs
    • Blog
    • BlogArticle
    • IBlog
    • IBlogArticle
    • OpenBiBlogExtensions
  • BiExcellence.OpenBi.Api.Commands.Blogs.Internal
    • BlogArticleJsonImpl
    • BlogJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Cms
    • CmsItemAttributeTypes
    • CmsItemTemplate
    • ICmsItem
    • ICmsItemAttribute
    • ICmsItemDefinition
    • ICmsItemReplacementParameter
    • ICmsItemTemplate
    • ICmsItemTemplateHistory
    • OpenBiCmsExtensions
  • BiExcellence.OpenBi.Api.Commands.Cms.Internal
    • CmsItemTemplateJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Configurator
    • IObjectLock
    • IServerError
    • ITransportTask
    • ITransportTaskElement
    • OpenBiEmailExtensions
    • OpenBiObjectLockExtensions
    • OpenBiServerErrorExtensions
    • OpenBiTransportTaskExtensions
    • TransportTask
    • TransportTaskElement
    • TransportTaskElementActions
    • TransportTaskElementTypes
    • TransportTaskStates
  • BiExcellence.OpenBi.Api.Commands.ConnectionTemplates
    • ConnectionTemplate
    • ConnectionTemplateParameter
    • ConnectionTemplateParameterType
    • DataProviderTypes
    • IConnection
    • IConnectionTemplate
    • IConnectionTemplateParameter
    • IDataProviderType
    • OpenBiConnectionExtensions
    • OpenBiConnectionTemplateExtensions
    • OpenBiRequestExtensions
  • BiExcellence.OpenBi.Api.Commands.ConnectionTemplates.Internal
    • ConnectionTemplateJsonImpl
    • ConnectionTemplateParameterJsonImpl
  • BiExcellence.OpenBi.Api.Commands.DataProviders
    • AffectedDataProvider
    • AffectedDataProviderMode
    • AlertLevel
    • AlertLevelId
    • ChartDataExtensions
    • DataProvider
    • DataProviderCubeType
    • DataProviderDefinition
    • DataProviderExtensions
    • DataProviderRoleType
    • DataProviderView
    • DataProviderViewExtensions
    • DataVisualType
    • Dimension
    • DimensionAxis
    • DimensionSortType
    • DimensionSumState
    • DrillState
    • DrillStateTuple
    • DrillStateValue
    • F4ValueExtensions
    • GridCellContent
    • GridDefinitionEventArgs
    • GridExtensions
    • IAffectedDataProvider
    • IAffectedDataProviderExecuteDefinition
    • IAlertLevel
    • IChartCategory
    • IChartCategoryGroup
    • IChartData
    • IChartGroup
    • IChartPoint
    • IDataComment
    • IDataProvider
    • IDataProviderDefinition
    • IDataProviderNode
    • IDataProviderView
    • IDimension
    • IDimensionAttribute
    • IDimensionAttributes
    • IDimensionGridCell
    • IDimensionHierarchy
    • IDimensions
    • IDrillState
    • IDrillStates
    • IDrillStateTuple
    • IExecuteDefinition
    • IExportDocument
    • IF4Value
    • IF4Values
    • IFilterableInfoObject
    • IFlatF4Value
    • IGrid
    • IGridCell
    • IGridCell<T>
    • IGridData
    • IGridDefinition
    • IHierarchyF4Value
    • IInfoObject
    • IInfoObjects<T>
    • IKeyFigure
    • IKeyFigures
    • InfoObjectDataType
    • InfoObjectsExtensions
    • InfoObjectSortMode
    • IPositionableInfoObject<T>
    • IPositionableInfoObjects<T>
    • ISortableInfoObject
    • ISortTuple
    • ISumGridCell
    • ITuple
    • IUsedConnection
    • IUsedConnections
    • IValueGridCell
    • IVariable
    • IVariables
    • KeyFigure
    • KeyFigureAggregation
    • KeyFigureCalculationTime
    • KeyFigureExtensions
    • OpenBiDataProviderExtensions
    • OpenBiDataProviderViewExtensions
    • OpenBiRequestExtensions
    • SortTuple
    • Variable
    • VariableEntryType
    • VariableSelection
    • VariableType
  • BiExcellence.OpenBi.Api.Commands.DataProviders.Internal
    • DataProviderDefinitionJsonImpl
    • DataProviderUtils
  • BiExcellence.OpenBi.Api.Commands.DatastoreObjects
    • DatastoreObject
    • DatastoreObjectTypes
    • IDatastoreObject
    • OpenBiDatastoreObjectExtensions
  • BiExcellence.OpenBi.Api.Commands.DatastoreObjects.Internal
    • DatastoreObjectJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Downloads
    • Download
    • IDownload
    • OpenBiDownloadExtensions
  • BiExcellence.OpenBi.Api.Commands.Downloads.Internal
    • DownloadJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Entities
    • BaseEntity
    • Entity
    • IBaseEntity
    • IBaseEntityAssignment
    • IEntity
    • OpenBiEntityExtensions
  • BiExcellence.OpenBi.Api.Commands.Entities.Internal
    • BaseEntityJsonImpl
    • EntityJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Files
    • OpenBiSessionFileExtensions
  • BiExcellence.OpenBi.Api.Commands.HostHeaders
    • HostHeader
    • IHostHeader
    • OpenBiHostHeaderExtensions
  • BiExcellence.OpenBi.Api.Commands.HostHeaders.Internal
    • HostHeaderJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Inquiries
    • IInquirer
    • IInquiry
    • IInquiryField
    • OpenBiInquirerExtensions
    • OpenBiInquiryExtensions
  • BiExcellence.OpenBi.Api.Commands.LanguageTexts
    • ILanguageText
    • ILanguageTextValue
    • LanguageText
    • LanguageTextValue
    • OpenBiLanguageTextExtensions
  • BiExcellence.OpenBi.Api.Commands.LanguageTexts.Internal
    • LanguageTextJsonImpl
    • LanguageTextValueJsonImpl
  • BiExcellence.OpenBi.Api.Commands.LicenseInformation
    • ILicenseInformation
    • ILicenseInformationComponent
    • OpenBiLicenseInformationExtensions
  • BiExcellence.OpenBi.Api.Commands.MajaAi
    • IMajaEntity
    • IMajaGrammar
    • IMajaQueryAnswer
    • IMajaTalent
    • IMajaTalentCategory
    • IPossibleUserReply
    • MajaQueryAnswerAction
    • MajaQueryAnswerProposalType
    • News
    • OpenBiMajaExtensions
    • PossibleUserReplyControlType
    • PossibleUserReplyType
    • WeatherDetails
    • WeatherForecast
  • BiExcellence.OpenBi.Api.Commands.MajaAi.Internal
    • MajaGrammarJsonImpl
    • MajaTalentCategoryJsonImpl
    • MajaTalentJsonImpl
  • BiExcellence.OpenBi.Api.Commands.MapDimensions
    • IMapDimension
    • MapDimension
    • OpenBiMapDimensionExtensions
  • BiExcellence.OpenBi.Api.Commands.MapDimensions.Internal
    • MapDimensionJsonImpl
  • BiExcellence.OpenBi.Api.Commands.MasterData
    • IMasterData
    • IMasterDataAttribute
    • IMasterDataAttributes
    • IMasterDataHierarchy
    • IMasterDataHierarchyMemberNode
    • IMasterDataHierarchyNode
    • IMasterDataHierarchyTextNode
    • MasterData
    • MasterDataAttribute
    • MasterDataAttributes
    • MasterDataHierarchy
    • MasterDataHierarchyMemberNode
    • MasterDataHierarchyNodeExtensions
    • MasterDataHierarchyTextNode
    • OpenBiMasterDataExtensions
  • BiExcellence.OpenBi.Api.Commands.Organisations
    • IOrganisation
    • OpenBiOrganisationExtensions
    • Organisation
  • BiExcellence.OpenBi.Api.Commands.Organisations.Internal
    • OrganisationJsonImpl
  • BiExcellence.OpenBi.Api.Commands.RoleContents
    • IRoleContent
    • IRoleContentElement
    • IRoleContentElementCmsContent
    • IRoleContentElementHistory
    • IRoleContentHistory
    • OpenBiRoleContentExtensions
    • RoleContent
    • RoleContentElement
    • RoleContentElementCmsContent
    • RoleContentExtensions
  • BiExcellence.OpenBi.Api.Commands.Roles
    • IRole
    • IRoleAssignment
    • OpenBiRoleExtensions
    • Role
  • BiExcellence.OpenBi.Api.Commands.Roles.Internal
    • RoleAssignmentJsonImpl
    • RoleJsonImpl
  • BiExcellence.OpenBi.Api.Commands.ServerSettings
    • IServerSettingParameter
    • IServerSettingParameters
    • IServerSettings
    • OpenBiServerSettingsExtensions
    • ServerSettingParameter
  • BiExcellence.OpenBi.Api.Commands.TableAttributes
    • BooleanTableAttribute
    • DateTimeTableAttribute
    • DoubleTableAttribute
    • ICustomAttributes
    • IntegerTableAttribute
    • ITableAttribute
    • ITableAttribute<T>
    • ITableAttributeCache
    • ITableAttributes
    • ITableAttributes<T>
    • OpenBiTableAttributeExtensions
    • StringTableAttribute
    • TableAttribute
    • TableAttributeAttribute
    • TableAttributes
    • TableAttributes<T>
  • BiExcellence.OpenBi.Api.Commands.TableAttributes.Internal
    • TableAttributeJsonImpl
    • TableAttributeUtils
  • BiExcellence.OpenBi.Api.Commands.Usergroups
    • IUsergroup
    • IUsergroupAssignment
    • OpenBiUsergroupExtensions
    • Usergroup
  • BiExcellence.OpenBi.Api.Commands.Usergroups.Internal
    • UsergroupAssignmentJsonImpl
    • UsergroupJsonImpl
  • BiExcellence.OpenBi.Api.Commands.Users
    • IUser
    • OpenBiUserExtensions
    • User
  • BiExcellence.OpenBi.Api.Commands.Users.Internal
    • UserJsonImpl
  • BiExcellence.OpenBi.Api.Internal
    • ApiFieldAttribute
    • EnumValueAttribute
    • Utils

Class OpenBiAuthObjectExtensions

Extension methods for auth objects.

Inheritance
object
OpenBiAuthObjectExtensions
Namespace: BiExcellence.OpenBi.Api.Commands.AuthObjects
Assembly: BiExcellence.OpenBi.Api.AuthObject.dll
Syntax
public static class OpenBiAuthObjectExtensions

Methods

CreateAuthObjectAsync(IOpenBiSession, IAuthObject, CancellationToken)

Creates or updates an auth object.

Declaration
public static Task CreateAuthObjectAsync(this IOpenBiSession session, IAuthObject authObject, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IAuthObject authObject

The auth object.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

CreateAuthObjectValueAsync(IOpenBiSession, IAuthObjectValue, CancellationToken)

Creates or updates an auth object value.

Declaration
public static Task CreateAuthObjectValueAsync(this IOpenBiSession session, IAuthObjectValue authObjectValue, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IAuthObjectValue authObjectValue

The auth object value.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectAsync(IOpenBiSession, IAuthObject, CancellationToken)

Deletes an auth object.

Declaration
public static Task DeleteAuthObjectAsync(this IOpenBiSession session, IAuthObject authObject, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IAuthObject authObject

The auth object.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectAsync(IOpenBiSession, string, CancellationToken)

Deletes an auth object by id.

Declaration
public static Task DeleteAuthObjectAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

string id

The auth object id.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectsAsync(IOpenBiSession, IEnumerable<IAuthObject>, CancellationToken)

Deletes auth objects.

Declaration
public static Task DeleteAuthObjectsAsync(this IOpenBiSession session, IEnumerable<IAuthObject> authObjects, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IEnumerable<IAuthObject> authObjects

The auth objects.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectsAsync(IOpenBiSession, IEnumerable<string>, CancellationToken)

Deletes auth objects by id.

Declaration
public static Task DeleteAuthObjectsAsync(this IOpenBiSession session, IEnumerable<string> ids, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IEnumerable<string> ids

The auth object ids.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectValueAsync(IOpenBiSession, IAuthObjectValue, CancellationToken)

Deletes an auth object value.

Declaration
public static Task DeleteAuthObjectValueAsync(this IOpenBiSession session, IAuthObjectValue authObjectValue, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IAuthObjectValue authObjectValue

The auth object value.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectValueAsync(IOpenBiSession, string, CancellationToken)

Deletes an auth object value by id.

Declaration
public static Task DeleteAuthObjectValueAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

string id

The auth object value id.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectValuesAsync(IOpenBiSession, IEnumerable<IAuthObjectValue>, CancellationToken)

Deletes auth object values.

Declaration
public static Task DeleteAuthObjectValuesAsync(this IOpenBiSession session, IEnumerable<IAuthObjectValue> authObjectValues, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IEnumerable<IAuthObjectValue> authObjectValues

The auth object values.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

DeleteAuthObjectValuesAsync(IOpenBiSession, IEnumerable<string>, CancellationToken)

Deletes auth object values by id.

Declaration
public static Task DeleteAuthObjectValuesAsync(this IOpenBiSession session, IEnumerable<string> ids, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

IEnumerable<string> ids

The auth object value ids.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

GetAuthObjectsAsync(IOpenBiSession, CancellationToken)

Returns all auth objects.

Declaration
public static Task<IList<IAuthObject>> GetAuthObjectsAsync(this IOpenBiSession session, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IList<IAuthObject>>

GetAuthObjectValueByIdAsync(IOpenBiSession, string, CancellationToken)

Returns an auth object by its id.

Declaration
public static Task<IAuthObjectValue?> GetAuthObjectValueByIdAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

string id

The auth object id.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IAuthObjectValue>

GetAuthObjectValuesAsync(IOpenBiSession, CancellationToken)

Returns all auth object values.

Declaration
public static Task<IList<IAuthObjectValue>> GetAuthObjectValuesAsync(this IOpenBiSession session, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IList<IAuthObjectValue>>

GetAuthObjectValuesByOwnerAsync(IOpenBiSession, string, string, CancellationToken)

Returns all auth objects for an owner and auth object id.

Declaration
public static Task<IList<IAuthObjectValue>> GetAuthObjectValuesByOwnerAsync(this IOpenBiSession session, string owner, string authObjectId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

string owner

The owner.

string authObjectId

The auth object id.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IList<IAuthObjectValue>>
Remarks

The owner is typically a username or organisation id.

GetAuthObjectValuesByOwnerAsync(IOpenBiSession, string, CancellationToken)

Returns all auth objects for an owner.

Declaration
public static Task<IList<IAuthObjectValue>> GetAuthObjectValuesByOwnerAsync(this IOpenBiSession session, string owner, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IOpenBiSession session

The session.

string owner

The owner.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<IList<IAuthObjectValue>>
Remarks

The owner is typically a username or organisation id.

In This Article
Back to top bi excellence software GmbH