Use WebDAV file store for the Page Builder theme and mashup integration

You can use WebDAV to work with the Page Builder theme and mashup integration.


WebDAV overview and entry point URL

WebDAV is defined by RFC2518 as an HTTP extension framework with a plug point for the access and management of hierarchical data, for example, in content management systems. WebDAV stores the data in collections. It allows you work with the data in a user interface view that is similar to that of a file system. A folder represents a WebDAV collection. Various tools are available for integrating WebDAV resources into the client file system. Users can use these tool to view and modify resources that they can access via WebDAV. For more details about the WebDAV specification refer to the RFC2518 document at the Web link given below. For more information about WebDAV in the portal refer to the topics about Using WebDAV with WebSphere Portal.

You can obtain the entry point URL to the WebDAV file store from the service document under the URL /wps/mycontenthandler/!ut/p/model/service-document. The service document contains the top level access point as follows:

<app:collection href="/webdav/!ut/p/dav/fs-type1/">
     <atom:title>fs-type1</atom:title>
     <app:categories fixed="yes">
          . . . . . 
          <atom:category term="webdav"/>
          <atom:category term="filestore"/>
          <atom:category term="mashups"/>
          . . . . . 
     </app:categories>
</app:collection>

The entry point URL for the Page Builder theme and mashup integration is as follows:

http://server:port/[[Directory structure wp7|PORTAL_HOME]]/mycontenthandler/dav/fs-type1

Examples of URLs for the Page Builder theme are as follows:

http://www.my_company.com:10039/wps/mycontenthandler/dav/fs-type1/

An example of a URL for mashup integration is as follows:

     http://www.my_company.com:10039/wps/mycontenthandler/dav/fs-type1/users/wpsadmin/

To authenticate against a specific virtual portal, you can do so by identifying the target virtual portal either by its host name or its URL context. Examples:

For more details about the WebDAV specification refer to the RFC2518 document at the web link given below. 


Configure the WebDAV file store

By default only administrative users can perform write operations on specific folders of the WebDAV file store. This affects public and user owned folders. You can enable write access for all authenticated users on WebDAV file stores folders.

To enable write access for all authenticated users, add the following property to the WP ConfigService resource environment provider in the WAS administrative console: filestore.writeaccess.allowed. Set the value for the property to true .
Notes:


Folder structure and reserved folder names

The fs-type1 WebDAV entry points provide the following set of predefined root folders used by the Page Builder theme:

The fs-type1 WebDAV entry points provide the following set of predefined root folders used by mashup integration:

None of these folders can be deleted, not even by an administrator.

The two sets of folders differ in the access control policy that guards access to the resources contained in those folders. See the following sections for details.


Page Builder theme folders

The following list shows the folder structure for the Page Builder themes. Each folder represents a WebDAV collection. You administer write access to the Page Builder theme folders via the virtual resource THEME MANAGEMENT provided by portal access control.
/themes


/skins


/layout-templates


/common-resources


/iwidgets

WebDAV prevents the deletion of these folders. Even users with administrator rights cannot delete these folders and the data in them.
Manage access control for Page Builder theme folders:


Mashup integration folders

The following list shows the folder structure for mashup integration. Each folder represents a WebDAV collection. The mashup integration folders enforce a hard coded access control policy.
/public


/users


/users/user_name


/users/user_name/public


/system

The mashup integration folders directly under the root folder, that is the folders /public , /users , and /system , are created by the system user ID. The folders /user_name and their subfolders are created under the user IDs the individual users, including folders that the users create new.
Notes:

  1. WebDAV prevents the deletion of the folders public, users, and system. Even users with administrator rights cannot delete these folders and the data in them.

  2. The following folder names are reserved for WebDAV or mashup integration. Therefore you cannot use these as folder names:

    • /public

    • /public/widget-def

    • /users/user_name

    • /users/user_name/public

    • /users/user_name/public/widget-def


Filestore cache control

The WebDAV file store supports serving timeout values for HTTP Cache Header entries.

You can use regular expressions to specify the time out value for elements in the filestore folder structure that match the regular expression. You need to add the following two custom properties to the WP Config Service resource environment provider with the following key = value properties:

filestore.cache.expiration.id.re=regular expression 
filestore.cache.expiration.id.seconds=value

The id value can consist of an arbitrary string. It is used only to establish the mapping between a regular expression and its associated timeout value. If there are multiple regular expressions that match a given filestore resource, the maximum of the associated time out values will be used. Examples:

  1. All items under the /themes folder have an expiration time of 1800 seconds:

      filestore.cache.expiration.0.re=themes/.* 
      filestore.cache.expiration.0.seconds=1800

  2. All items of a certain resource type, suchas jpg or gif have an expiration time of 6000 seconds:

      filestore.cache.expiration.1.re=.*/.jpg|.*/.gif 
      filestore.cache.expiration.1.seconds=6000

      All css files in the themes folder have an expiration time of 8000 seconds:

      filestore.cache.expiration.2.re=themes/.*/.css 
      filestore.cache.expiration.2.seconds=8000


Supported HTTP methods

WebDAV file store supports the following HTTP methods:
PROPFIND


MKCOL


GET


HEAD


POST


DELETE


PUT


COPY


MOVE


Known limitations

The following are known limitations of the WebDAV file store feature for mashup integration:


Parent

Use WebDAV with WebSphere Portal


Related tasks


Serving HTTP OPTIONS requests to the server context root by WebDAV clients
Work with WebDAV clients
Use WebDAV with WebSphere Portal

WebDAV specification RFC2518:   www.webdav.org/specs/rfc2518.html

 


+

Search Tips   |   Advanced Search