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.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.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 Initializes a new instance of the OperationNames class.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

字段

  名称 说明
公共字段静态成员 ExecuteReportDefinition Specifies the “Execute Report Definition” operation.
公共字段静态成员 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 Specifies the operation “Create Model”.
公共字段静态成员 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 Specifies the operation “Read Model Item Security Policies”.
公共字段静态成员 OperReadParameters Specifies the operation "Read Parameters".
公共字段静态成员 OperReadPolicy Specifies the operation "Read Policy".
公共字段静态成员 OperReadProperties Specifies the operation "Read 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 Specifies the operation "Read System Properties".
公共字段静态成员 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 Specifies the operation “Update Model Item Security Policies”.
公共字段静态成员 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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.ReportingServices.Interfaces 命名空间