Класс OperationNames

Contains the field names and corresponding values for operations that users can perform on items in SQL Server Reporting Services.

Иерархия наследования

System. . :: . .Object
  Microsoft.ReportingServices.Interfaces..::..OperationNames

Пространство имен:  Microsoft.ReportingServices.Interfaces
Сборки:   Microsoft.ReportingServices.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Синтаксис

'Декларация
Public NotInheritable Class OperationNames
'Применение
Dim instance As OperationNames
public sealed class OperationNames
public ref class OperationNames sealed
[<SealedAttribute>]
type OperationNames =  class end
public final class OperationNames

Тип OperationNames обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод OperationNames

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Поля

  Имя Описание
Открытое полеСтатический элемент ExecuteReportDefinition
Открытое полеСтатический элемент OperCancelJobs Specifies the operation "Cancel Jobs".
Открытое полеСтатический элемент OperCreateAnySubscription Specifies the operation "Create Any Subscription".
Открытое полеСтатический элемент OperCreateDatasource Specifies the operation "Create data source".
Открытое полеСтатический элемент OperCreateFolder Specifies the operation "Create Folder".
Открытое полеСтатический элемент OperCreateLink Specifies the operation "Create Link".
Открытое полеСтатический элемент OperCreateModel
Открытое полеСтатический элемент OperCreateReport Specifies the operation "Create Report".
Открытое полеСтатический элемент OperCreateResource Specifies the operation "Create Resource".
Открытое полеСтатический элемент OperCreateRoles Specifies the operation "Create Roles".
Открытое полеСтатический элемент OperCreateSchedules Specifies the operation "Create Schedules".
Открытое полеСтатический элемент OperCreateSnapshot Specifies the operation "Create Report History".
Открытое полеСтатический элемент OperCreateSubscription Specifies the operation "Create Subscription".
Открытое полеСтатический элемент OperDelete Specifies the operation "Delete".
Открытое полеСтатический элемент OperDeleteAnySubscription Specifies the operation "Delete Any Subscription".
Открытое полеСтатический элемент OperDeleteHistory Specifies the operation "Delete Report History".
Открытое полеСтатический элемент OperDeleteRoles Specifies the operation "Delete Roles".
Открытое полеСтатический элемент OperDeleteSchedules Specifies the operation "Delete Schedules".
Открытое полеСтатический элемент OperDeleteSubscription Specifies the operation "Delete Subscription".
Открытое полеСтатический элемент OperExecute Specifies the operation "Execute".
Открытое полеСтатический элемент OperExecuteAndView Specifies the operation "Execute and View".
Открытое полеСтатический элемент OperGenerateEvents Specifies the operation "Generate Events".
Открытое полеСтатический элемент OperListHistory Specifies the operation "List Report History".
Открытое полеСтатический элемент OperListJobs Specifies the operation "List Jobs".
Открытое полеСтатический элемент OperManageSharedSchedules Specifies the operation "Manage Shared Schedules".
Открытое полеСтатический элемент OperReadAnySubscription Specifies the operation "Read Any Subscription".
Открытое полеСтатический элемент OperReadAuthorizationPolicy Specifies the operation "Read Security Policies".
Открытое полеСтатический элемент OperReadContent Specifies the operation "Read Content".
Открытое полеСтатический элемент OperReadDatasources Specifies the operation "Read Data Sources".
Открытое полеСтатический элемент OperReadModelItemSecurityPolicies
Открытое полеСтатический элемент OperReadParameters Specifies the operation "Read Parameters".
Открытое полеСтатический элемент OperReadPolicy Specifies the operation "Read Policy".
Открытое полеСтатический элемент OperReadProperties Specifies the operation "Read System Properties".
Открытое полеСтатический элемент OperReadReportDefinition Specifies the operation "Read Report Definition".
Открытое полеСтатический элемент OperReadRoleProperties Specifies the operation "Read Role Properties".
Открытое полеСтатический элемент OperReadSchedules Specifies the operation "Read Schedules".
Открытое полеСтатический элемент OperReadSubscription Specifies the operation "Read Subscription".
Открытое полеСтатический элемент OperReadSystemProperties
Открытое полеСтатический элемент OperReadSystemSecurityPolicy Specifies the operation "Read System Security Policies".
Открытое полеСтатический элемент OperUpdateAnySubscription Specifies the operation "Update Any Subscription".
Открытое полеСтатический элемент OperUpdateContent Specifies the operation "Update Content".
Открытое полеСтатический элемент OperUpdateDatasources Specifies the operation "Update Data Sources".
Открытое полеСтатический элемент OperUpdateDeleteAuthorizationPolicy Specifies the operation "Update Security Policies".
Открытое полеСтатический элемент OperUpdateModelItemSecurityPolicies
Открытое полеСтатический элемент OperUpdateParameters Specifies the operation "Update Parameters".
Открытое полеСтатический элемент OperUpdatePolicy Specifies the operation "Update Policy".
Открытое полеСтатический элемент OperUpdateProperties Specifies the operation "Update Properties".
Открытое полеСтатический элемент OperUpdateReportDefinition Specifies the operation "Update Report Definition".
Открытое полеСтатический элемент OperUpdateRoleProperties Specifies the operation "Update Role Properties".
Открытое полеСтатический элемент OperUpdateSchedules Specifies the operation "Update Schedules".
Открытое полеСтатический элемент OperUpdateSubscription Specifies the operation "Update Subscription".
Открытое полеСтатический элемент OperUpdateSystemProperties Specifies the operation "Update System Properties".
Открытое полеСтатический элемент OperUpdateSystemSecurityPolicy Specifies the operation "Update System Security Policies."

В начало

Замечания

The OperationNames class contains fields that represent the constant string values for operation names in Reporting Services. These operation names can be used by your security extension to return a list of permissions for a user of a given item in the report server database. For more information, see the GetPermissions method of the IAuthorizationExtension interface.

You can develop Report Server Web service client applications in such a way as to provide functionality and appearance based on the permissions of the current user. Client applications, such as Report Manager, rely on the Web service method GetPermissions to return a set of permission names that correspond to operations in Reporting Services. When a client makes a call to GetPermissions, the Web service responds with a set of permissions based on the item being accessed and the user making the request. A typical call to the root or Home item in the report server database for a user that is assigned the Browser Role might look like the following:

// C# Web service code
string[] permissions = rs.GetPermissions("/");

foreach (string p in permissions)
{
   Console.WriteLine(p);
}

The above code returns a single permission for Browser users: Read Properties. The user is granted access to view the contents and properties, but not to modify or delete the contents. Nor is the user allowed to update security policies or view data source information. The Browser role is a very restrictive role.

Because clients can call GetPermissions in order to discover what permissions the user has, a client application can be tailored for each user. In Report Manager, Browser users do not have access to the Security Properties or Data Source Properties pages for a report. Nor is a Browser user permitted to see site settings or other administrator information, because Report Manager makes a call to GetPermissions and determines ahead of time which pages and tabs to display. Because of a client application's reliance on named permissions, your security extension must implement the GetPermissions method of the IAuthorizationExtension interface.

To support your implementation of GetPermissions, the security extension API provides you with the OperationNames class, which contains a set of constant fields representing each of the available permissions in Reporting Services. When you implement GetPermissions, you should analyze the security descriptor for the item and the current user and return a list of permissions based on the access control list for the current user.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.