Class FluentUsers
Provides access to users in a fluent way.
Inheritance
object
FluentUsers
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
Constructors
FluentUsers(IUsersClient, IEntitiesClient, IEntityLoadConfiguration)
Initializes a new instance of the FluentUsers class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IUsersClient | usersClient | The IUsersClient instance. |
| IEntitiesClient | entitiesClient | The IEntitiesClient instance. |
| IEntityLoadConfiguration | entityLoadConfiguration | The IEntityLoadConfiguration. |
FluentUsers(IUsersClient, IEntitiesClient)
Initializes a new instance of the FluentUsers class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IUsersClient | usersClient | The IUsersClient instance. |
| IEntitiesClient | entitiesClient | The IEntitiesClient instance. |
Methods
GetUser(long)
Gets the specified user FluentUser.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| long | id | The id of the user. |
Returns
| Type | Description |
|---|---|
| FluentUser | The user FluentUser or null when it was not found. |
GetUser(string)
Gets the specified user FluentUser.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | Username of the user. |
Returns
| Type | Description |
|---|---|
| FluentUser | The user FluentUser or null when it was not found. |
GetUserGroup(long)
Gets the specified user group FluentEntity.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| long | id | Id of the group. |
Returns
| Type | Description |
|---|---|
| FluentEntity | The user group FluentEntity or null when it was not found. |
GetUserGroup(string)
Gets the specified user group FluentEntity.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | groupName | Name of the group. |
Returns
| Type | Description |
|---|---|
| FluentEntity | The user group FluentEntity or null when it was not found. |
GetUserGroups(IEnumerable)
Gets the specified user group fluent entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>long | ids | The ids of the user groups. |
Returns
| Type | Description |
|---|---|
| IList<>FluentEntity | The user group fluent entities. |
GetUserGroups(IEnumerable)
Gets the specified user group fluent entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>string | groupNames | The names of the user groups. |
Returns
| Type | Description |
|---|---|
| IList<>FluentEntity | The user group fluent entities. |
GetUsers(IEnumerable)
Gets the specified user fluent user entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>long | ids | The ids of the users. |
Returns
| Type | Description |
|---|---|
| IList<>FluentUser | The user fluent user entities. |
GetUsers(IEnumerable)
Gets the specified user fluent user entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>string | usernames | A list of user names. |
Returns
| Type | Description |
|---|---|
| IList<>FluentUser | The user fluent user entities. |
If you have suggestions for improving this article, let us know!