Metadata and access control for Web content items in WebDAV
WebDAV uses XML files to represent metadata and access control information for a Web content item. We can make changes to an item's metadata and access control settings by modifying these files, and we can specify settings for multiple files by copying the XML files to their appropriate locations in the WebDAV tree.
Metadata
An item's metadata is represented by the meta-data.xml file, which describes identification information for the item, including the name and title for the item and the list of authors and owners associated with the item.
Here is a sample meta-data.xml file:
<?xml version="1.0" encoding="UTF-8"?> <meta-data> <item> <title lang="en" value="test1.JPG"/> <description lang="en" value="description"/> <wcm-group > <member DN="all_auth_portal_users" type="group"/> <member DN="uid=wpsadmin,o=defaultWIMFileBasedRealm" type="user"/> </wcm-group> <wcm-group > <member DN="uid=wpsadmin,o=defaultWIMFileBasedRealm" type="user"/> <member DN="all_users" type="group"/> </wcm-group> </item> </meta-data>
Access control
An item's access control information is represented by the following files:
- access-control-system.xml: Contains access control settings for the system specified by the administrator.
- access-control-user.xml: Contains access control settings defined by the user.
In addition to these item-specific files, the access-control.xml file is provided for folders that represent resource types, like the components folder, and contains access control settings for the resource type.
Here is a sample access-control.xml file for resource access control settings:
<?xml version="1.0" encoding="UTF-8"?> <access-control> <resource-config> <role-block role-type="Editor" type="inheritance"/> <role-block role-type="User" type="inheritance"/> <role-block role-type="Editor" type="propagation"/> <role-block role-type="User" type="propagation"/> </resource-config> <role-list> <role type="Administrator"> <member DN="uid=wpsadmin,o=defaultWIMFileBasedRealm" type="user"/> </role> <role type="Contributor"> <member DN="all_auth_portal_users" type="group"/> </role> <role type="Manager"> <member DN="all_auth_portal_users" type="group"/> </role> </role-list> </access-control>Here is a sample access-control-system.xml file for an item's administrator-defined access control settings:
<?xml version="1.0" encoding="UTF-8"?> <access-control> <resource-config> <role-block role-type="Contributor" type="inheritance"/> <role-block role-type="Manager" type="inheritance"/> </resource-config> <role-list> <role type="Editor"> <member DN="authors" type="virtual"/> </role> <role type="User"> <member DN="all_auth_portal_users" type="group"/> </role> </role-list> </access-control>Here is a sample access-control-user.xml file for an item's user-defined access control settings:
<?xml version="1.0" encoding="UTF-8"?> <access-control> <role-list> <role type="Contributor"> <member DN="owners" type="virtual"/> </role> <role type="Editor"> <member DN="all_auth_portal_users" type="group"/> </role> <role type="Manager"> <member DN="uid=wpsadmin,o=defaultWIMFileBasedRealm" type="user"/> </role> </role-list> </access-control>
Parent topic: WebDAVRelated:
Manage metadata and access control settings for authoring templates with WebDAV