logo
logo

Class FluentUsers

Provides access to users in a fluent way.

Inheritance
System.Object
FluentUsers
Namespace: Stylelabs.M.Sdk.Fluent.Wrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentUsers : object

Constructors

FluentUsers(IUsersClient, IEntitiesClient)

Initializes a new instance of the FluentUsers class.

Declaration
public FluentUsers(IUsersClient usersClient, IEntitiesClient entitiesClient)
Parameters
Type Name Description
IUsersClient usersClient

The IUsersClient instance.

IEntitiesClient entitiesClient

The IEntitiesClient instance.

FluentUsers(IUsersClient, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentUsers class.

Declaration
public FluentUsers(IUsersClient usersClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
Type Name Description
IUsersClient usersClient

The IUsersClient instance.

IEntitiesClient entitiesClient

The IEntitiesClient instance.

IEntityLoadConfiguration entityLoadConfiguration

The IEntityLoadConfiguration

Methods

GetUser(Int64)

Gets the specified user FluentUser.

Declaration
public FluentUser GetUser(long id)
Parameters
Type Name Description
System.Int64 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
public FluentUser GetUser(string username)
Parameters
Type Name Description
System.String username

Username of the user.

Returns
Type Description
FluentUser

The user FluentUser or null when it was not found.

GetUserGroup(Int64)

Gets the specified user group FluentEntity.

Declaration
public FluentEntity GetUserGroup(long id)
Parameters
Type Name Description
System.Int64 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
public FluentEntity GetUserGroup(string groupName)
Parameters
Type Name Description
System.String groupName

Name of the group.

Returns
Type Description
FluentEntity

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

GetUserGroups(IEnumerable<Int64>)

Gets the specified user group fluent entities.

Declaration
public IList<FluentEntity> GetUserGroups(IEnumerable<long> ids)
Parameters
Type Name Description
IEnumerable<System.Int64> ids

The ids of the user groups.

Returns
Type Description
IList<FluentEntity>

The user group fluent entities.

GetUserGroups(IEnumerable<String>)

Gets the specified user group fluent entities.

Declaration
public IList<FluentEntity> GetUserGroups(IEnumerable<string> groupNames)
Parameters
Type Name Description
IEnumerable<System.String> groupNames

The names of the user groups.

Returns
Type Description
IList<FluentEntity>

The user group fluent entities.

GetUsers(IEnumerable<Int64>)

Gets the specified user fluent user entities.

Declaration
public IList<FluentUser> GetUsers(IEnumerable<long> ids)
Parameters
Type Name Description
IEnumerable<System.Int64> ids

The ids of the users.

Returns
Type Description
IList<FluentUser>

The user fluent user entities.

GetUsers(IEnumerable<String>)

Gets the specified user fluent user entities.

Declaration
public IList<FluentUser> GetUsers(IEnumerable<string> usernames)
Parameters
Type Name Description
IEnumerable<System.String> usernames

A list of user names.

Returns
Type Description
IList<FluentUser>

The user fluent user entities.

Can we improve this article ? Provide feedback