1. Stylelabs.M.Sdk

Interface IMClient

Client for the Marketing Content Hub.

Namespace: StylelabsStylelabs.MSdk

Assembly: Stylelabs.M.Sdk.dll

Syntax

public interface IMClient

Properties

Assets

Gets the Assets client. Contains functionality for asset operations.

Declaration

IAssetsClient Assets { get; }

Property Value

TypeDescription
IAssetsClient

Commands

Gets the commands client. Contains functionality to execute commands in M.

Declaration

ICommandsClient Commands { get; }

Property Value

TypeDescription
ICommandsClient

Cultures

Gets the culture client. Allows fetching culture information from M.

Declaration

ICultureClient Cultures { get; }

Property Value

TypeDescription
ICultureClient

DataSourceFactory

Gets the data source factory. Contains functionality to create IDataSources.

Declaration

IDataSourceFactory DataSourceFactory { get; }

Property Value

TypeDescription
IDataSourceFactory

DataSources

Gets the data source client. Contains functionality to query, create and manipulate IDataSources.

Declaration

IDataSourcesClient DataSources { get; }

Property Value

TypeDescription
IDataSourcesClient

Entities

Gets the entities client. Contains functionality to query, create and manipulate IEntity instances.

Declaration

IEntitiesClient Entities { get; }

Property Value

TypeDescription
IEntitiesClient

EntityDefinitions

Gets the entity definitions client. Contains functionality to query, create and manipulate IEntityDefinitions.

Declaration

IEntityDefinitionsClient EntityDefinitions { get; }

Property Value

EntityFactory

Gets the entity factory. Contains functionality to create IEntity instances.

Declaration

IEntityFactory EntityFactory { get; }

Property Value

TypeDescription
IEntityFactory

Jobs

Gets the jobs client. Contains functionality to create jobs.

Declaration

IJobsclient Jobs { get; }

Property Value

TypeDescription
IJobsclient

Logger

Gets or sets the logger. Contains functionality to log messages.

Declaration

ILogger Logger { get; set; }

Property Value

TypeDescription
ILogger

MassEdit

Gets the mass-edit client. Contains functionality to create mass-edit jobs.

Declaration

IMassEditClient MassEdit { get; }

Property Value

TypeDescription
IMassEditClient

Notifications

Gets the notifications client. Contains functionality to manage and send notifications.

Declaration

INotificationsClient Notifications { get; }

Property Value

TypeDescription
INotificationsClient

Permissions

Gets the permissions client. Contains functionality to get entity permissions.

Declaration

IPermissionsClient Permissions { get; }

Property Value

TypeDescription
IPermissionsClient

Policies

Gets the policies client. Contains functionality to get and update IPolicy objects.

Declaration

IPoliciesClient Policies { get; }

Property Value

TypeDescription
IPoliciesClient

Querying

Gets the querying client. Contains functionality to query and scroll for IEntity.

Declaration

IQueryingClient Querying { get; }

Property Value

TypeDescription
IQueryingClient

Scripts

Gets the scripts client. Contains functionality to execute scripts.

Declaration

IScriptsClient Scripts { get; }

Property Value

TypeDescription
IScriptsClient

SelectionPools

Gets the selection pool client. Contains functionality for selection pool operations.

Declaration

ISelectionPoolsClient SelectionPools { get; }

Property Value

TypeDescription
ISelectionPoolsClient

Settings

Gets the settings client. Contains functionality to get setting entities.

Declaration

ISettingsClient Settings { get; }

Property Value

TypeDescription
ISettingsClient

Translations

Gets the translations client. Contains functionality to manage translations.

Declaration

ITranslationsClient Translations { get; }

Property Value

TypeDescription
ITranslationsClient

TypedEntityFactory

Gets the typed entity factory. Contains functionality to create typed IEntity instances.

Declaration

ITypedEntityFactory TypedEntityFactory { get; }

Property Value

TypeDescription
ITypedEntityFactory

Users

Gets the users client. Contains functionality to get and interact with user entities.

Declaration

IUsersClient Users { get; }

Property Value

TypeDescription
IUsersClient

Methods

ImpersonateAsync(string)

Creates a new IMClient that acts on behalf of the user with the specified username. The current logger will be copied to the new client.

Declaration

Task<IMClient> ImpersonateAsync(string username)

Parameters

TypeNameDescription
stringusernameThe username of the user to impersonate.

Returns

TypeDescription
Task<>IMClientA new client bound to specified user.

Exceptions

TypeCondition
ForbiddenExceptionWhen the current user is not allowed to impersonate other users.
If you have suggestions for improving this article, let us know!