语言

IAuthorizationExtension 接口

定义

代表一个扩展,可用于扩展 SQL Server Reporting Services 的授权功能。

public interface class IAuthorizationExtension : Microsoft::ReportingServices::Interfaces::IExtension
public interface IAuthorizationExtension : Microsoft.ReportingServices.Interfaces.IExtension
type IAuthorizationExtension = interface
    interface IExtension
Public Interface IAuthorizationExtension
Implements IExtension
实现

注解

授权是确定某个身份是否应被授予报告服务器数据库中某一资源请求访问类型的过程。 在 Reporting Services 中,通过在报告服务器数据库中存储并关联访问控制列表(AceCollection对象)来实现这一点。 你的授权扩展应提供该 CreateSecurityDescriptor 方法的实现,报告服务器在为报告服务器数据库中某项创建新角色分配时调用该方法。 你的实现 CreateSecurityDescriptor 至少必须序列化 AceCollection. 你可以选择将额外的用户信息序列化为安全描述符的一部分。 实现 CheckAccess 以评估给定用户是否拥有执行请求操作的适当权限。 你的实现 CheckAccess 应反序列化安全描述符,评估每个 AceStruct 对象,并检查与用户名和请求操作对应的有效操作权限。 如果找到匹配的操作,应 CheckAccess 返回 true。

属性

名称 说明
LocalizedName

获取扩展的本地化名称,以便在用户界面中显示。

(继承自 IExtension)

方法

名称 说明
CheckAccess(String, IntPtr, Byte[], CatalogOperation)

表示用户是否有权访问报告服务器数据库中的某项,用于特定目录操作。

CheckAccess(String, IntPtr, Byte[], CatalogOperation[])

表示用户是否有权访问报告服务器数据库中的某个项目,用于特定的目录操作数组。

CheckAccess(String, IntPtr, Byte[], DatasourceOperation)

表示用户是否有权访问报告服务器数据库中的某个项目,用于特定数据源操作。

CheckAccess(String, IntPtr, Byte[], FolderOperation)

表示用户是否有权访问报告服务器数据库中的某个项目,用于特定文件夹操作。

CheckAccess(String, IntPtr, Byte[], FolderOperation[])

将用户的授权凭证与安全描述符进行报告服务器数据库中项目操作进行核对

CheckAccess(String, IntPtr, Byte[], ModelItemOperation)

表示用户是否有权访问报告服务器数据库中的某个项目,用于特定模型项目操作。

CheckAccess(String, IntPtr, Byte[], ModelOperation)

表示用户是否被授权访问报告服务器数据库中的某个项目,用于特定模型操作。

CheckAccess(String, IntPtr, Byte[], ReportOperation)

表示用户是否有权访问报告服务器数据库中的某个项目,用于特定的报告操作。

CheckAccess(String, IntPtr, Byte[], ResourceOperation)

表示用户是否有权访问报告服务器数据库中的某个项目,用于特定资源操作。

CheckAccess(String, IntPtr, Byte[], ResourceOperation[])

表示用户是否被授权访问报告服务器数据库中的某个项目,用于给定的资源操作数组。

CreateSecurityDescriptor(AceCollection, SecurityItemType, String)

返回报告服务器数据库中单个项目存储的安全描述符。

GetPermissions(String, IntPtr, SecurityItemType, Byte[])

返回报告服务器数据库中特定用户获得的某项权限集合。

SetConfiguration(String)

用于将自定义配置数据传递给扩展。

(继承自 IExtension)

适用于