Classe OperationNames

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

Hiérarchie d'héritage

System.Object
  Microsoft.ReportingServices.Interfaces.OperationNames

Espace de noms :  Microsoft.ReportingServices.Interfaces
Assemblys :   Microsoft.ReportingServices.SharePoint.UI.WebParts (en Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (en Microsoft.ReportingServices.Interfaces.dll)

Syntaxe

'Déclaration
Public NotInheritable Class OperationNames
'Utilisation
Dim instance As OperationNames
public sealed class OperationNames
public ref class OperationNames sealed
[<SealedAttribute>]
type OperationNames =  class end
public final class OperationNames

Le type OperationNames expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique OperationNames Initializes a new instance of the OperationNames class.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Champs

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

Haut de la page

Notes

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.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.ReportingServices.Interfaces