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

   
Class PortalMIMECommand

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

Framework : PortalBase

Module : PLBbase

Class Description

public class PortalMIMECommand

This class contains the name of the command to launch for a given MIMEtype. sample: CommandDescription = "Visu3D" CommandName = "com.dassault_systemes.catweb.Local3DCATlet" or CommandUrl = "bean://com.dassault_systemes.catweb.Local3DCATlet"

Field Summary
public static final String ALWAYS
public static final String BOTH
Tells that this Command can be runned both in Nomade mode and Connected mode
public static final String CONNECTED_ONLY
Tells that this Command can only be runned in Connected mode
public static final String DEFAULT
The different value of the creation status ALWAYS --> always create a new instance NEVER --> always use the same instance DEFAULT --> use the last instance created
public static final String DEFAULT_DESCRIPTION
The value of the description for a default command of a MIME Type
public static final String NEVER
public static final String NOMADE_ONLY
Tells that this Command can only be runned in Nomade mode

Constructor Summary

Method Summary
public boolean equals(Object obj)
Compares 2 PortalMIMECommand instances.
public PortalMIMETypes getAssociatedMIMEType()
Return the MIMEtype to which this command is associated
public String getCommandDescription()
Returns the description of the command.
public String getCommandName()
Returns the class name of the command to launch.
public String getCommandUrl()
Returns the url to launch.
public String getMode()
Returns the mode in which this command can be runned: Nomade, Connected or Both
public String getNewInstanceFlag()
Returns the newInstance fag value (status for the creation).
public String getNLSName()
Returns the NLS name of this command.
public String toString()
Returns a string representation of this PortalMIMECommand.


Field Detail

ALWAYS

    public static final String ALWAYS


BOTH

    public static final String BOTH
Tells that this Command can be runned both in Nomade mode and Connected mode


CONNECTED_ONLY

    public static final String CONNECTED_ONLY
Tells that this Command can only be runned in Connected mode


DEFAULT

    public static final String DEFAULT
The different value of the creation status ALWAYS --> always create a new instance NEVER --> always use the same instance DEFAULT --> use the last instance created


DEFAULT_DESCRIPTION

    public static final String DEFAULT_DESCRIPTION
The value of the description for a default command of a MIME Type


NEVER

    public static final String NEVER


NOMADE_ONLY

    public static final String NOMADE_ONLY
Tells that this Command can only be runned in Nomade mode


Constructor Detail

Method Detail

equals

    public boolean equals(Object obj)

Compares 2 PortalMIMECommand instances.


getAssociatedMIMEType

    public PortalMIMETypes getAssociatedMIMEType()

Return the MIMEtype to which this command is associated

Return:
the MIMEtype to which this command is associated

getCommandDescription

    public String getCommandDescription()

Returns the description of the command. The command description is defined by the "value" parameter of the "Command" tag in the xml file MIMEtypes.xml


getCommandName

    public String getCommandName()

Returns the class name of the command to launch.


getCommandUrl

    public String getCommandUrl()

Returns the url to launch.


getMode

    public String getMode()

Returns the mode in which this command can be runned: Nomade, Connected or Both


getNewInstanceFlag

    public String getNewInstanceFlag()

Returns the newInstance fag value (status for the creation).


getNLSName

    public String getNLSName()

Returns the NLS name of this command. The NLS name is first searched in the CATlet list then in the command bean info. If nothing is found we take the command description for the NLS name


toString

    public String toString()

Returns a string representation of this PortalMIMECommand.



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