1. IUsersClient

Interface IUsersClient

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Client for fetching user entities and user related actions.

Namespace: Stylelabs.M.Sdk.Clients
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IUsersClient

Methods

GetUserAsync(Int64, IEntityLoadConfiguration)

Gets the specified user entity.

Declaration
Task<IEntity> GetUserAsync(long id, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
System.Int64id

The id of the user.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IEntity>

The user entity or null when it was not found.

GetUserAsync(String, IEntityLoadConfiguration)

Gets the specified user entity.

Declaration
Task<IEntity> GetUserAsync(string username, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
System.Stringusername

Username of the user.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IEntity>

The user or null when it was not found.

GetUserGroupAsync(Int64, IEntityLoadConfiguration)

Gets the specified user group entity.

Declaration
Task<IEntity> GetUserGroupAsync(long id, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
System.Int64id

Id of the user.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IEntity>

The user or null when it was not found.

GetUserGroupAsync(String, IEntityLoadConfiguration)

Gets the user group by the specified name.

Declaration
Task<IEntity> GetUserGroupAsync(string groupName, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
System.StringgroupName

Name of the group.

IEntityLoadConfigurationloadConfiguration

The loading configuration.

Returns
TypeDescription
Task<IEntity>

The user group entity or null when it was not found.

GetUserGroupIdAsync(String)

Gets the ids of the specified user groups by name.

Declaration
Task<long?> GetUserGroupIdAsync(string groupName)
Parameters
TypeNameDescription
System.StringgroupName

The groupName name.

Returns
TypeDescription
Task<System.Nullable<System.Int64>>

The group's id or null when it was not found.

GetUserGroupIdsAsync(IEnumerable<String>)

Gets the ids of the specified user groups by name.

Declaration
Task<IDictionary<string, long>> GetUserGroupIdsAsync(IEnumerable<string> groupNames)
Parameters
TypeNameDescription
IEnumerable<System.String>groupNames

A list of group names.

Returns
TypeDescription
Task<IDictionary<System.String, System.Int64>>

Non null, case-insensitive dictionary that maps the user group names to ids. Users that don't exist, will not be in the result.

GetUserGroupNameAsync(Int64)

Gets the name of the specified user group.

Declaration
Task<string> GetUserGroupNameAsync(long id)
Parameters
TypeNameDescription
System.Int64id

The id of the user group.

Returns
TypeDescription
Task<System.String>

The group name or null when it was not found.

GetUserGroupNamesAsync(IEnumerable<Int64>)

Gets the name of the specified user groups.

Declaration
Task<IDictionary<long, string>> GetUserGroupNamesAsync(IEnumerable<long> ids)
Parameters
TypeNameDescription
IEnumerable<System.Int64>ids

The ids of user groups.

Returns
TypeDescription
Task<IDictionary<System.Int64, System.String>>

Non null dictionary that maps the user group ids to user group names. Users that don't exist, will not be in the result.

GetUserGroupsAsync(IEnumerable<Int64>, IEntityLoadConfiguration)

Gets the specified user group entities.

Declaration
Task<IList<IEntity>> GetUserGroupsAsync(IEnumerable<long> ids, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
IEnumerable<System.Int64>ids

The ids of the user groups.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IList<IEntity>>

The user group entities. Can contain null when a user group was not found.

GetUserGroupsAsync(IEnumerable<String>, IEntityLoadConfiguration)

Gets the specified user group entities.

Declaration
Task<IList<IEntity>> GetUserGroupsAsync(IEnumerable<string> groupNames, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
IEnumerable<System.String>groupNames

The names of the user groups.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IList<IEntity>>

The user group entities. Can contain null when a user group was not found.

GetUserIdAsync(String)

Gets the id of the specified user by username.

Declaration
Task<long?> GetUserIdAsync(string username)
Parameters
TypeNameDescription
System.Stringusername

The user name.

Returns
TypeDescription
Task<System.Nullable<System.Int64>>

The user's id or null when it was not found.

GetUserIdsAsync(IEnumerable<String>)

Gets the ids of the specified users by username.

Declaration
Task<IDictionary<string, long>> GetUserIdsAsync(IEnumerable<string> usernames)
Parameters
TypeNameDescription
IEnumerable<System.String>usernames

A list of user names.

Returns
TypeDescription
Task<IDictionary<System.String, System.Int64>>

Non null, case-insensitive dictionary that maps the user names to ids. Users that don't exist, will not be in the result.

GetUsernameAsync(Int64)

Gets the username of the specified user.

Declaration
Task<string> GetUsernameAsync(long id)
Parameters
TypeNameDescription
System.Int64id

The id of the user.

Returns
TypeDescription
Task<System.String>

The username or null when it was not found.

GetUsernamesAsync(IEnumerable<Int64>)

Gets the usernames of the specified users.

Declaration
Task<IDictionary<long, string>> GetUsernamesAsync(IEnumerable<long> ids)
Parameters
TypeNameDescription
IEnumerable<System.Int64>ids

The ids of the entities to get.

Returns
TypeDescription
Task<IDictionary<System.Int64, System.String>>

Non null dictionary that maps the user ids to usernames. Users that don't exist, will not be in the result.

GetUsersAsync(IEnumerable<Int64>, IEntityLoadConfiguration)

Gets the specified user entities.

Declaration
Task<IList<IEntity>> GetUsersAsync(IEnumerable<long> ids, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
IEnumerable<System.Int64>ids
IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IList<IEntity>>

The user entities. Can contain null when a user was not found.

GetUsersAsync(IEnumerable<String>, IEntityLoadConfiguration)

Gets the specified user entities.

Declaration
Task<IList<IEntity>> GetUsersAsync(IEnumerable<string> usernames, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
IEnumerable<System.String>usernames

A list of user names.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<IList<IEntity>>

The user entities. Can contain null when a user was not found.

ResetPasswordAsync(Int64)

Resets the password of the specified user. This sends an e-mail to the specified user with a link to choose a new password.

Declaration
Task ResetPasswordAsync(long id)
Parameters
TypeNameDescription
System.Int64id

Id of the user

Returns
TypeDescription
Task

A representing the asynchronous operation.

Exceptions
TypeCondition
ForbiddenException

When the current user is not a superuser.

SetPasswordAsync(Int64, String)

Changes the password of the specified user.

Declaration
Task SetPasswordAsync(long id, string password)
Parameters
TypeNameDescription
System.Int64id

The user id to change the password on.

System.Stringpassword

The password to reset.

Returns
TypeDescription
Task

A representing the asynchronous operation.

Exceptions
TypeCondition
ForbiddenException

When the current user is not a superuser.

この記事を改善するための提案がある場合は、 お知らせください!