Interface IMClient
Client for the Marketing Content Hub.
Namespace: StylelabsStylelabs.MSdk
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IMClientProperties
Assets
Gets the Assets client. Contains functionality for asset operations.
Declaration
IAssetsClient Assets { get; }Property Value
| Type | Description |
|---|---|
| IAssetsClient |
Commands
Gets the commands client. Contains functionality to execute commands in M.
Declaration
ICommandsClient Commands { get; }Property Value
| Type | Description |
|---|---|
| ICommandsClient |
Cultures
Gets the culture client. Allows fetching culture information from M.
Declaration
ICultureClient Cultures { get; }Property Value
| Type | Description |
|---|---|
| ICultureClient |
DataSourceFactory
Gets the data source factory. Contains functionality to create IDataSources.
Declaration
IDataSourceFactory DataSourceFactory { get; }Property Value
| Type | Description |
|---|---|
| IDataSourceFactory |
DataSources
Gets the data source client. Contains functionality to query, create and manipulate IDataSources.
Declaration
IDataSourcesClient DataSources { get; }Property Value
| Type | Description |
|---|---|
| IDataSourcesClient |
Entities
Gets the entities client. Contains functionality to query, create and manipulate IEntity instances.
Declaration
IEntitiesClient Entities { get; }Property Value
| Type | Description |
|---|---|
| IEntitiesClient |
EntityDefinitions
Gets the entity definitions client. Contains functionality to query, create and manipulate IEntityDefinitions.
Declaration
IEntityDefinitionsClient EntityDefinitions { get; }Property Value
| Type | Description |
|---|---|
| IEntityDefinitionsClient |
EntityFactory
Gets the entity factory. Contains functionality to create IEntity instances.
Declaration
IEntityFactory EntityFactory { get; }Property Value
| Type | Description |
|---|---|
| IEntityFactory |
Jobs
Gets the jobs client. Contains functionality to create jobs.
Declaration
IJobsclient Jobs { get; }Property Value
| Type | Description |
|---|---|
| IJobsclient |
Logger
Gets or sets the logger. Contains functionality to log messages.
Declaration
ILogger Logger { get; set; }Property Value
| Type | Description |
|---|---|
| ILogger |
MassEdit
Gets the mass-edit client. Contains functionality to create mass-edit jobs.
Declaration
IMassEditClient MassEdit { get; }Property Value
| Type | Description |
|---|---|
| IMassEditClient |
Notifications
Gets the notifications client. Contains functionality to manage and send notifications.
Declaration
INotificationsClient Notifications { get; }Property Value
| Type | Description |
|---|---|
| INotificationsClient |
Permissions
Gets the permissions client. Contains functionality to get entity permissions.
Declaration
IPermissionsClient Permissions { get; }Property Value
| Type | Description |
|---|---|
| IPermissionsClient |
Policies
Gets the policies client. Contains functionality to get and update IPolicy objects.
Declaration
IPoliciesClient Policies { get; }Property Value
| Type | Description |
|---|---|
| IPoliciesClient |
Querying
Gets the querying client. Contains functionality to query and scroll for IEntity.
Declaration
IQueryingClient Querying { get; }Property Value
| Type | Description |
|---|---|
| IQueryingClient |
Scripts
Gets the scripts client. Contains functionality to execute scripts.
Declaration
IScriptsClient Scripts { get; }Property Value
| Type | Description |
|---|---|
| IScriptsClient |
SelectionPools
Gets the selection pool client. Contains functionality for selection pool operations.
Declaration
ISelectionPoolsClient SelectionPools { get; }Property Value
| Type | Description |
|---|---|
| ISelectionPoolsClient |
Settings
Gets the settings client. Contains functionality to get setting entities.
Declaration
ISettingsClient Settings { get; }Property Value
| Type | Description |
|---|---|
| ISettingsClient |
Translations
Gets the translations client. Contains functionality to manage translations.
Declaration
ITranslationsClient Translations { get; }Property Value
| Type | Description |
|---|---|
| ITranslationsClient |
TypedEntityFactory
Gets the typed entity factory. Contains functionality to create typed IEntity instances.
Declaration
ITypedEntityFactory TypedEntityFactory { get; }Property Value
| Type | Description |
|---|---|
| ITypedEntityFactory |
Users
Gets the users client. Contains functionality to get and interact with user entities.
Declaration
IUsersClient Users { get; }Property Value
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| string | username |
The username of the user to impersonate. |
Returns
| Type | Description |
|---|---|
| Task<>IMClient |
A new client bound to specified user. |
Exceptions
| Type | Condition |
|---|---|
| ForbiddenException |
When the current user is not allowed to impersonate other users. |