Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2003 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.netuix.application.definition
Class PortalResource

    java.lang.Object
      |
      +--com.bea.netuix.application.definition.PortalResource

All Implemented Interfaces:
  Serializable

public class PortalResource
extends Object
implements Serializable

See Also:
  Serialized Form

Field Summary
`static byte` | `DEFAULT_DESKTOP_RESOURCE`
`static byte` | `DESKTOP_RESOURCE`
`static byte` | `PORTAL_RESOURCE`

Constructor Summary
`PortalResource(byte resource_type, String resource, String userName, Locale locale)` Ctor.
`PortalResource(String resource, Locale locale)` Ctor.

Method Summary
`boolean` | `equals(Object o)`
`Locale` | `getLocale()` Returns preferred locale for this resource.
`String` | `getResource()` Returns the resource in string form.
`byte` | `getType()` Returns resource type for this PortalResource Use this method to determine the type of resource this object encapsulates before calling getResource
`String` | `getUserName()` Returns user name.
`int` | `hashCode()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### DESKTOP_RESOURCE

    public static final byte DESKTOP_RESOURCE

See Also:
  Constant Field Values

### DEFAULT_DESKTOP_RESOURCE

    public static final byte DEFAULT_DESKTOP_RESOURCE

See Also:
  Constant Field Values

### PORTAL_RESOURCE

    public static final byte PORTAL_RESOURCE

See Also:
  Constant Field Values

Constructor Detail

### PortalResource

    public PortalResource(byte resource_type,
                          String resource,
                          String userName,
                          Locale locale)

  Ctor. Create a PortalResource

Parameters:
  `resource_type` - one of `DESKTOP_RESOURCE` `DEFAULT_DESKTOP_RESOURCE` or `PORTAL_RESOURCE`
  `resource` - portal resource in string form
  `userName` - user that this resource is tied to, can be null
  `locale` - the locale of this resource

### PortalResource

    public PortalResource(String resource,
                          Locale locale)

  Ctor. Create a PortalResource - specialized ctor for DEFAULT_DESKTOP case - does not need userName

Parameters:
  `resource` - portal resource in string form
  `locale` - the locale of this resource

Method Detail

### getType

    public byte getType()

  Returns resource type for this PortalResource Use this method to determine the type of resource this object encapsulates before calling getResource

  Returns:
    resource_type

### getResource

    public String getResource()

  Returns the resource in string form.

  Returns:
    resource

### getUserName

    public String getUserName()

  Returns user name.

  Returns:
    userName

### getLocale

    public Locale getLocale()

  Returns preferred locale for this resource.

  Returns:
    locale

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### equals

    public boolean equals(Object o)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2003 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003 BEA Systems, Inc. All Rights Reserved