示例 BDC 模型:资源文件

上次修改时间: 2010年4月21日

适用范围: SharePoint Server 2010

可使用资源文件扩展包含属性、权限和本地化名称的任何模型文件。下面的模型资源文件示例包含权限访问控制列表 (ACL)。

示例

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Model Name="ExampleApplicationDefinition" xmlns="https://schemas.microsoft.com/windows/2007/BusinessDataCatalog/Resources">
  <AccessControlList>
    <AccessControlEntry Principal="NT AUTHORITY\Authenticated Users">
      <Right BdcRight="Edit" />
      <Right BdcRight="Execute" />
      <Right BdcRight="SetPermissions" />
      <Right BdcRight="SelectableInClients" />
    </AccessControlEntry>
  </AccessControlList>
  <LobSystems>
    <LobSystem Name="ExampleCRM">
      <AccessControlList>
        <AccessControlEntry Principal="NT AUTHORITY\Authenticated Users">
          <Right BdcRight="Edit" />
          <Right BdcRight="Execute" />
          <Right BdcRight="SetPermissions" />
          <Right BdcRight="SelectableInClients" />
        </AccessControlEntry>
      </AccessControlList>
      <Entities>
        <Entity Name="Customer" Namespace="example.com" Version="1.0.0.0">
          <LocalizedDisplayNames>
            <LocalizedDisplayName LCID="2058">Cliente</LocalizedDisplayName>
            <LocalizedDisplayName LCID="1033">Customer</LocalizedDisplayName>
          </LocalizedDisplayNames>
          <AccessControlList>
            <AccessControlEntry Principal="NT AUTHORITY\Authenticated Users">
              <Right BdcRight="Edit" />
              <Right BdcRight="Execute" />
              <Right BdcRight="SetPermissions" />
              <Right BdcRight="SelectableInClients" />
            </AccessControlEntry>
          </AccessControlList>
          <Methods>
            <Method Name="GetCustomers">
              <MethodInstances>
                <MethodInstance Name="GetCustomer">
                  <AccessControlList>
                    <AccessControlEntry Principal="NT AUTHORITY\Authenticated Users">
                      <Right BdcRight="Execute" />
                      <Right BdcRight="Edit" />
                      <Right BdcRight="SetPermissions" />
                      <Right BdcRight="SelectableInClients" />
                    </AccessControlEntry>
                  </AccessControlList>
                </MethodInstance>
              </MethodInstances>
            </Method>
          </Methods>
        </Entity>
      </Entities>
    </LobSystem>
  </LobSystems>
</Model>