Export (0) Print
Expand All

Sample BDC Model: Resource File

SharePoint 2010

Last modified: April 21, 2010

Applies to: SharePoint Server 2010

A resource file can be used to extend any of the model file with properties, permissions, and localized names. The following is an example of model resource file that contains permissions access control lists (ACLs).

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Model Name="ExampleApplicationDefinition" xmlns="http://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>

Show:
© 2015 Microsoft