beautypg.com

Approaches to using the acl element, Example feed with an acl element – Google Search Appliance Feeds Protocol Developers Guide User Manual

Page 18

background image

Google Search Appliance: Feeds Protocol Developer’s Guide

18

Approaches to Using the acl Element

There are two approaches to using the acl element:

As the child of a group element

As the child of a record element

If the acl element is the child of a group element, the url attribute is required. An acl element as the
child of a group element can be used in the following scenarios:

Updating the ACL of a record (independently of content) for a URL that was previously fed with
attached ACLs.

Modeling entities, such as folders, that would not otherwise be represented in the system.

If the acl element is the child of a record element, the url attribute is illegal. In this approach, the ACL
is immediately associated with the document.

Google does not recommend mixing the two approaches to using an acl element for a given URL in the
same feed.

Example Feed with an acl Element

The following code shows an example of a feed XML file with an acl element that inherits permissions.




TestUrlAcl
incremental

beautypg.com



inherit-from="http://corp.google.com/">

edward
william
ben
nobles

playwrights