Class FluentUsers

Provides access to users in a fluent way.

Inheritance
object
FluentUsers
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse

public class FluentUsers

Constructors

FluentUsers(IUsersClient, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentUsers class.

Declaration
RequestResponse

public FluentUsers(IUsersClient usersClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
TypeNameDescription
IUsersClientusersClient

The IUsersClient instance.

IEntitiesCliententitiesClient

The IEntitiesClient instance.

IEntityLoadConfigurationentityLoadConfiguration

The IEntityLoadConfiguration.

FluentUsers(IUsersClient, IEntitiesClient)

Initializes a new instance of the FluentUsers class.

Declaration
RequestResponse

public FluentUsers(IUsersClient usersClient, IEntitiesClient entitiesClient)
Parameters
TypeNameDescription
IUsersClientusersClient

The IUsersClient instance.

IEntitiesCliententitiesClient

The IEntitiesClient instance.

Methods

GetUser(long)

Gets the specified user FluentUser.

Declaration
RequestResponse

public FluentUser GetUser(long id)
Parameters
TypeNameDescription
longid

The id of the user.

Returns
TypeDescription
FluentUser

The user FluentUser or null when it was not found.

GetUser(string)

Gets the specified user FluentUser.

Declaration
RequestResponse

public FluentUser GetUser(string username)
Parameters
TypeNameDescription
stringusername

Username of the user.

Returns
TypeDescription
FluentUser

The user FluentUser or null when it was not found.

GetUserGroup(long)

Gets the specified user group FluentEntity.

Declaration
RequestResponse

public FluentEntity GetUserGroup(long id)
Parameters
TypeNameDescription
longid

Id of the group.

Returns
TypeDescription
FluentEntity

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

GetUserGroup(string)

Gets the specified user group FluentEntity.

Declaration
RequestResponse

public FluentEntity GetUserGroup(string groupName)
Parameters
TypeNameDescription
stringgroupName

Name of the group.

Returns
TypeDescription
FluentEntity

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

GetUserGroups(IEnumerable<long>)

Gets the specified user group fluent entities.

Declaration
RequestResponse

public IList<FluentEntity> GetUserGroups(IEnumerable<long> ids)
Parameters
TypeNameDescription
IEnumerable<>longids

The ids of the user groups.

Returns
TypeDescription
IList<>FluentEntity

The user group fluent entities.

GetUserGroups(IEnumerable<string>)

Gets the specified user group fluent entities.

Declaration
RequestResponse

public IList<FluentEntity> GetUserGroups(IEnumerable<string> groupNames)
Parameters
TypeNameDescription
IEnumerable<>stringgroupNames

The names of the user groups.

Returns
TypeDescription
IList<>FluentEntity

The user group fluent entities.

GetUsers(IEnumerable<long>)

Gets the specified user fluent user entities.

Declaration
RequestResponse

public IList<FluentUser> GetUsers(IEnumerable<long> ids)
Parameters
TypeNameDescription
IEnumerable<>longids

The ids of the users.

Returns
TypeDescription
IList<>FluentUser

The user fluent user entities.

GetUsers(IEnumerable<string>)

Gets the specified user fluent user entities.

Declaration
RequestResponse

public IList<FluentUser> GetUsers(IEnumerable<string> usernames)
Parameters
TypeNameDescription
IEnumerable<>stringusernames

A list of user names.

Returns
TypeDescription
IList<>FluentUser

The user fluent user entities.

Do you have some feedback for us?

If you have suggestions for improving this article,