Package com.dassault_systemes.catweb.base.net.registry

   
Class PortalRegistry

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.catweb.base.net.registry.PortalRegistry
Class Location

Framework : PortalBase

Module : PLBbase

Class Description

public class PortalRegistry

PortalRegistry offers access to the MIMEtype registry of the applicationimport com.dassault_systemes.catweb.base.util.

Field Summary

Constructor Summary

Method Summary
PortalMIMETypes getMIMETypesForExtension(String extension)
PortalMIMETypes[] getMIMETypesForOptionalExtension(String extension)
String[] getSupportedExtensions()
PortalMIMETypes getMIMETypesForType(String type)
String[] getInstancesNameForType(String type)
String[] getInstancesNameForType(String type, String desc)
String getCommandForType(String type, String desc)
PortalMIMECommand getMIMECommandForType(String type, String desc)
PortalMIMECommand[] getAllMIMECommandsForDescription(String description)
String getIconPathForMIMETypes(PortalMIMETypes mimeTypes)
String getIconPathForExtension(String extension)


Field Detail

Constructor Detail

Method Detail

getMIMETypesForExtension

    PortalMIMETypes getMIMETypesForExtension(String extension)

Returns the MIME type declared in the registry for this extension

Parameters:
extension
- the extension string
Returns:
com.dassault_systemes.catweb.base.net.registry.PortalMIMETypes

getMIMETypesForOptionalExtension

    PortalMIMETypes[] getMIMETypesForOptionalExtension(String extension)

Returns a list of MIME type declared in the registry for this optional extension

Parameters:
extension
- the extension string
Returns:
an array of PortalMIMETypes.

getSupportedExtensions

    String[] getSupportedExtensions()

Returns the list of extension declared and recognized by the PortalRegistry


getMIMETypesForType

    PortalMIMETypes getMIMETypesForType(String type)

Returns the MIME type declared in the registry for this type

Parameters:
type
- the MIME Type name
Returns:
PortalMIMETypes

getInstancesNameForType

    String[] getInstancesNameForType(String type)

Returns all the already instanciated CATlet name that can handle the specified type

Parameters:
type
- the MIME Type name

getInstancesNameForType

    String[] getInstancesNameForType(String type, String desc)

Returns all instance name of the already instanciated CATlet that can handle the specified type and they have the description desc

Parameters:
type
- the MIME Type name
desc
- the description of the searched command

getCommandForType

    String getCommandForType(String type, String desc)

Returns the command class name for the specified type and description if no description, returns the default command of this type

Parameters:
type
- the MIME Type name
desc
- the description of the searched command

getMIMECommandForType

    PortalMIMECommand getMIMECommandForType(String type, String desc)

Returns the PortalMIMECommand for the specified type and description if no description, returns the default command of this type

Parameters:
type
- the MIME Type name
desc
- the description of the searched command
Returns:
PortalMIMECommand

getAllMIMECommandsForDescription

    PortalMIMECommand[] getAllMIMECommandsForDescription(String description)

Returns all the PortalMIMECommands that are defined for in the Portal Registry and which have the specified description.

Parameters:
description
- the description of the commands to get
Returns:
an array of PortalMIMECommands that have the specified description

getIconPathForMIMETypes

    String getIconPathForMIMETypes(PortalMIMETypes mimeTypes)

Returns the Icon Path declared in the registry for this MIME types.

Parameters:
mimeTypes
- the sepcified MIME types

getIconPathForExtension

    String getIconPathForExtension(String extension)

Returns the Icon Path declared in the registry for this extension.

Parameters:
extension
- the extension string


Copyright © 2000, Dassault Systèmes. All rights reserved