SAS Institute. The Power to Know

SAS(R) 9.2 Intelligence Platform: Web Application Administration Guide, Second Edition

Previous Page | Next Page

Using the SAS Web Infrastructure Platform Utilities

Using the DAVTree Utility to Manage WebDAV Content


About the DAVTree Utility

The DAVTree utility is a stand-alone Java application that provides a tree view of WebDAV resources.

The utility enables you to manipulate content by copying files to a WebDAV repository or by creating text files such as forms and templates.

The utility presents information in a tree view. When you select a resource item in the tree on the left side of the window, the WebDAV properties for the resource are displayed on the right side.

Here is an example DAVTree interface:

[untitled graphic]

In the interface, you see only the content that you are authorized to see.

A prerequisite for using this utility is the availability of Java 5 on your machine. In addition, you should configure the JAVA_HOME system environment variable to point to Java 5.


Start the Utility and Connect to a WebDAV Location

To use this utility, follow these steps:

  1. Run the following command:

    SAS-configuration-directory\Levn\Web\Utilities\DAVTree.bat

    On UNIX, the utility command is DAVTree.sh.

    The DAVTree utility opens.

  2. Select File [arrow] Open.

    The DAV Location dialog box opens.

  3. In the URL field, enter the URL for a WebDAV location. For example, enter the following URL and substitute the server name and port number of your WebDAV server (SAS Content Server):

    http://server:port/SASContentServer/repository/default/

  4. If the WebDAV server was set up with a proxy, enter the proxy host and port.

  5. Click OK. You are prompted for credentials.

  6. Enter your administrator credentials in the logon dialog box.

You can later connect to a different WebDAV location by repeating steps 2-6 and providing the URL for the new location.


Add Resources to WebDAV

You have the following options for adding resources to the WebDAV repository.

  • Copy files to DAVTree. You can copy both text files and binary files to the repository.

    To copy a file, click and drag the file from the file system to a folder in the DAVTree interface.

    This action can be performed on Windows systems and on UNIX systems that provide a graphical interface.

  • Create a text file.

    1. Position the cursor on the folder where you want to create the text file.

    2. Select Edit [arrow] Add.

      You are prompted to confirm the action, and then an Add dialog box opens. Here is an example dialog box with data entered in the fields.

      [untitled graphic]

    3. Select Resource.

    4. In the field to the left of the Resource radio button, enter the name of the text file. If a file already exists with the name you provide, the file is overwritten.

      The example shows a file with the name myFile.txt.

    5. In the field below the Resource radio button, enter the text that you want the file to contain. Press ENTER to start a new line.

      The example shows a file that contains the text string "Contents of myFile.txt."

    6. If you want to define a custom WebDAV property, click New property. Two text fields appear in the gray properties panel. In the left field, add the property name. In the right field, enter the property value.

    7. Click OK.

  • Create a folder.

    1. Position the cursor on the folder where you want to create the new folder.

    2. Select Edit [arrow] Add.

      You are prompted to confirm the action, and then an Add dialog box opens.

    3. Select Collection.

    4. In the field to the left of the Collection radio button, enter the name that you want to give the folder.

    5. Click OK.

Note:   To delete a resource, select the resource in the tree and then select Edit [arrow] Delete. You are prompted to confirm the deletion.  [cautionend]


Edit a Text File in WebDAV

To edit a text file, follow these steps:

  1. Right-click the text file and select Edit. The Edit File dialog box opens and displays the contents of the file.

  2. Make your changes to the text.

  3. Click Save.


Copy or Move a File in WebDAV

To move a file from one location to another in WebDAV, in DAVTree click and drag the file to the desired location.

To copy rather than move a file, press and hold the CTRL key while dragging.

Note:   You must refresh the view in order to see the change.  [cautionend]


Advanced Features

The DAVTree utility can be used as a diagnostic tool. The utility provides features such as locking files, versioning files, and modifying WebDAV properties.

CAUTION:
These are advanced WebDAV functions.

These advanced WebDAV functions, which are not covered in this documentation, should be performed only by someone who has WebDAV expertise.  [cautionend]

Previous Page | Next Page | Top of Page