BuildMaster SDK Reference
Version:

WebUserContext Class

Represents the current user context.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Web.Security.WebUserContext

Syntax

public class WebUserContext

Properties

Name Description
CurrentUserDirectory

Gets the current user directory.

IsAvailable

Gets a value indicating whether a user is currently in context.

UserInfo

Gets information about the user currently in context.

Methods

Name Description
CanPerformTask(Inedo.Security.ScopedTask scopedTask)

Returns a value indicating whether the current user is allowed to perform the specified task.

CanPerformTask(Inedo.Security.BuildMasterSecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Returns a value indicating whether the current user is allowed to perform the specified task.

CanPerformTasks(Inedo.Security.BuildMasterSecuredTask[] tasks)

Returns a value indicating whether the current user is allowed to perform the specified tasks.

CanPerformTasks(System.Collections.Generic.IEnumerable<Inedo.Security.ScopedTask> scopedTasks)

Returns a value indicating whether the current user is allowed to perform the specified tasks.

SetUser(Inedo.Extensibility.UserDirectories.IUserDirectoryUser user)

Sets the current user.

ValidatePrivileges(Inedo.Security.BuildMasterSecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Verifies that the current user can perform the specified task.

ValidatePrivileges(Inedo.Security.ScopedTask scopedTask)

Verifies that the current user can perform the specified task.

Remarks

This is a shim for Inedo.Security.UserContext and should be avoided; at some point it will be marked as obsolete