The File Types tab lets you define new file types for the portlets you create, as well as for third party applications you wish to allow users to run.
The File Types tab can be found on the User Administrator window. This section covers:
Creating and Editing File Types
Associating File Types with Portlets
Associating File Types with Applications
Associating Icons with File Types
The User Administrator window File Types tab lets you define new file types. The File Types tab appears at the bottom of the User Administrator window, as shown below.
|
|
Figure 364: File Types Tab |
Once a file type has been defined, it can be associated with a portlet or a third party application. Once it has been associated properly, the user can double-click a file of that type, and the appropriate portlet or application starts.
File types that do not appear in this list and are not associated with any portlets or applications are not recognized by Netcool Reporter. If a user uploads an unrecognized file type into Netcool Reporter, then attempts to open it, the file is not displayed properly.
Netcool Reporter reserves certain file types. You cannot use these reserved file types for the portlets you create. Reserved file types are listed in Table 113 Reserved File Extensions on page 559.
To create a new file type, select File TypeΖNew File Type. The New File Type window is displayed with the File Type Info tab in the foreground, as shown below.
|
|
Figure 365: File Type Info Tab |
The fields are described in the following table.
|
Table 115: File Type Info Tab Descriptions |
|
Field |
Description |
|
File Type Name |
This is the files extension, without the dot (for example, a file named Readme.txt has the extension txt). You cannot change this after a file type has been defined. |
|
Description |
A short text description of this type of file. |
|
Mime Type |
The files MIME type. Browsers use the MIME type to determine which application or plug-in should open the file. |
|
Portlet |
You can specify a portlet to handle files of this type. If you specify a portlet, then when the user reads or edits a file of this type, the portlet is started to handle the file. If you want to associate this file type with a third party application, set this field to Default. |
|
Java Class |
Every file type is associated with a file object. By default, that object is an instance of portlet API file. If you wish, you can write your own Java class for a particular file type, and enter the class name here. (The class must implement the portlet API interface; it is commonly a subclass of API file, which implements that interface.) If you want to associate this file type with a third party application, leave this field blank. |
To associate a file type with a portlet:
1. Select the Portlet tab on the User Administrator window, as described in Using the Portlet Tab on page 554.
2. Select the required portlet and open the Edit Portlet window.
3. Select the File Types tab, and add the file type to the Selected File Types list.
4. After associating a file type with a portlet, you should also associate an icon with that file type, as described in Associating Icons with File Types on page 566. If you do not do this, a missing graphics symbol (usually a red X) appears with the file name wherever an icon would normally be.
To associate a file type with a third party application complete the fields in the Add File Types window, as described in Creating and Editing File Types on page 564.
Note:
In order to start the associated application from Netcool Reporter, you must also make sure that the file type is registered on the client computer of every user that needs to run the associated application. If the file type is not registered on the client machine, the users receives an error message when they double-click the file name.
For users running Windows with the Internet Explorer browser, you must use the following steps to setup and check registered file types:
Open Windows Explorer.
Select the menu option ViewΖOptions, and click the File Types tab.
For Netscape users, you must use the following steps to setup and check registered file types:
Open Netscape.
Select the menu option EditΖPreferences. The Preferences window is displayed.
Selecting the category NavigatorΖHelper Applications.
For both types of web browser, associate a file type with a third party application. Verify that the file type is registered on the appropriate client machines, you should associate an icon with the file type, as described in Associating Icons with File Types on page 566. If you do not do this, a missing graphics symbol (usually a red X) appears with the file name wherever an icon would normally be.
After associating a file type with a portlet or third party application, you should associate an icon with the file type. If you do not do this, whenever a user uploads a file of that type into the portal, a missing graphics symbol (usually a red X) appears with the file name wherever an icon would normally be. To avoid this, you must store two icons for each file type in the following directory:
On a Windows system: %INFOHOME%\images\
On a UNIX system: $INFOHOME/images/
To associate icons with a file type:
1. Obtain both a 16 x 16 and 32 x 32 pixel icon for the new file type.
2. Save the icons as GIF files and name them as follows:
16 x 16 pixel icon: <file_type>16.gif
32 x 32 pixel icon: <file_type>32.gif
For example, if abc was your new file type, the icon files would be named abc16.gif and abc32.gif.
3. Copy both GIFs into the images subdirectory.