Freigeben über


OperationNames-Klasse

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

Vererbungshierarchie

System.Object
  Microsoft.ReportingServices.Interfaces.OperationNames

Namespace:  Microsoft.ReportingServices.Interfaces
Assemblys:   Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)

Syntax

'Declaration
Public NotInheritable Class OperationNames
'Usage
Dim instance As OperationNames
public sealed class OperationNames
public ref class OperationNames sealed
[<SealedAttribute>]
type OperationNames =  class end
public final class OperationNames

Der OperationNames-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode OperationNames Initializes a new instance of the OperationNames class.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Felder

  Name Beschreibung
Öffentliches FeldStatisches Element ExecuteReportDefinition Specifies the “Execute Report Definition” operation.
Öffentliches FeldStatisches Element OperCancelJobs Specifies the operation "Cancel Jobs".
Öffentliches FeldStatisches Element OperCreateAnySubscription Specifies the operation "Create Any Subscription".
Öffentliches FeldStatisches Element OperCreateDatasource Specifies the operation "Create Data Source".
Öffentliches FeldStatisches Element OperCreateFolder Specifies the operation "Create Folder".
Öffentliches FeldStatisches Element OperCreateLink Specifies the operation "Create Link".
Öffentliches FeldStatisches Element OperCreateModel Specifies the operation “Create Model”.
Öffentliches FeldStatisches Element OperCreateReport Specifies the operation "Create Report".
Öffentliches FeldStatisches Element OperCreateResource Specifies the operation "Create Resource".
Öffentliches FeldStatisches Element OperCreateRoles Specifies the operation "Create Roles".
Öffentliches FeldStatisches Element OperCreateSchedules Specifies the operation "Create Schedules".
Öffentliches FeldStatisches Element OperCreateSnapshot Specifies the operation "Create Report History".
Öffentliches FeldStatisches Element OperCreateSubscription Specifies the operation "Create Subscription".
Öffentliches FeldStatisches Element OperDelete Specifies the operation "Delete".
Öffentliches FeldStatisches Element OperDeleteAnySubscription Specifies the operation "Delete Any Subscription".
Öffentliches FeldStatisches Element OperDeleteHistory Specifies the operation "Delete Report History".
Öffentliches FeldStatisches Element OperDeleteRoles Specifies the operation "Delete Roles".
Öffentliches FeldStatisches Element OperDeleteSchedules Specifies the operation "Delete Schedules".
Öffentliches FeldStatisches Element OperDeleteSubscription Specifies the operation "Delete Subscription".
Öffentliches FeldStatisches Element OperExecute Specifies the operation "Execute".
Öffentliches FeldStatisches Element OperExecuteAndView Specifies the operation "Execute and View".
Öffentliches FeldStatisches Element OperGenerateEvents Specifies the operation "Generate Events".
Öffentliches FeldStatisches Element OperListHistory Specifies the operation "List Report History".
Öffentliches FeldStatisches Element OperListJobs Specifies the operation "List Jobs".
Öffentliches FeldStatisches Element OperManageSharedSchedules Specifies the operation "Manage Shared Schedules".
Öffentliches FeldStatisches Element OperReadAnySubscription Specifies the operation "Read Any Subscription".
Öffentliches FeldStatisches Element OperReadAuthorizationPolicy Specifies the operation "Read Security Policies".
Öffentliches FeldStatisches Element OperReadContent Specifies the operation "Read Content".
Öffentliches FeldStatisches Element OperReadDatasources Specifies the operation "Read Data Sources".
Öffentliches FeldStatisches Element OperReadModelItemSecurityPolicies Specifies the operation “Read Model Item Security Policies”.
Öffentliches FeldStatisches Element OperReadParameters Specifies the operation "Read Parameters".
Öffentliches FeldStatisches Element OperReadPolicy Specifies the operation "Read Policy".
Öffentliches FeldStatisches Element OperReadProperties Specifies the operation "Read Properties".
Öffentliches FeldStatisches Element OperReadReportDefinition Specifies the operation "Read Report Definition".
Öffentliches FeldStatisches Element OperReadRoleProperties Specifies the operation "Read Role Properties".
Öffentliches FeldStatisches Element OperReadSchedules Specifies the operation "Read Schedules".
Öffentliches FeldStatisches Element OperReadSubscription Specifies the operation "Read Subscription".
Öffentliches FeldStatisches Element OperReadSystemProperties Specifies the operation "Read System Properties".
Öffentliches FeldStatisches Element OperReadSystemSecurityPolicy Specifies the operation "Read System Security Policies".
Öffentliches FeldStatisches Element OperUpdateAnySubscription Specifies the operation "Update Any Subscription".
Öffentliches FeldStatisches Element OperUpdateContent Specifies the operation "Update Content".
Öffentliches FeldStatisches Element OperUpdateDatasources Specifies the operation "Update Data Sources".
Öffentliches FeldStatisches Element OperUpdateDeleteAuthorizationPolicy Specifies the operation "Update Security Policies".
Öffentliches FeldStatisches Element OperUpdateModelItemSecurityPolicies Specifies the operation “Update Model Item Security Policies”.
Öffentliches FeldStatisches Element OperUpdateParameters Specifies the operation "Update Parameters".
Öffentliches FeldStatisches Element OperUpdatePolicy Specifies the operation "Update Policy".
Öffentliches FeldStatisches Element OperUpdateProperties Specifies the operation "Update Properties".
Öffentliches FeldStatisches Element OperUpdateReportDefinition Specifies the operation "Update Report Definition".
Öffentliches FeldStatisches Element OperUpdateRoleProperties Specifies the operation "Update Role Properties".
Öffentliches FeldStatisches Element OperUpdateSchedules Specifies the operation "Update Schedules".
Öffentliches FeldStatisches Element OperUpdateSubscription Specifies the operation "Update Subscription".
Öffentliches FeldStatisches Element OperUpdateSystemProperties Specifies the operation "Update System Properties".
Öffentliches FeldStatisches Element OperUpdateSystemSecurityPolicy Specifies the operation "Update System Security Policies."

Zum Anfang

Hinweise

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.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.ReportingServices.Interfaces-Namespace