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

public class PortalResource
extends `Object`
implements `Serializable`

Hierarchy
  `Object`
  `PortalResource`

All Implemented Interfaces
  `Serializable`

## Field Summary

`public static final byte` | `DEFAULT_DESKTOP_RESOURCE` byte
`public static final byte` | `DESKTOP_RESOURCE` byte
`public static final byte` | `PORTAL_RESOURCE` byte

## Constructor Summary

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

## Method Summary

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

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

## Field Detail

### DEFAULT_DESKTOP_RESOURCE

    public static final byte DEFAULT_DESKTOP_RESOURCE

### DESKTOP_RESOURCE

    public static final byte DESKTOP_RESOURCE

### PORTAL_RESOURCE

    public static final byte PORTAL_RESOURCE

## Constructor Detail

### PortalResource

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

  Ctor. Create a PortalResource

### PortalResource

    public PortalResource(String resource,
                          Locale locale)

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

## Method Detail

### equals(Object) Method

    public boolean equals(Object o)

Overrides
  Object.equals(Object)

### getLocale() Method

    public Locale getLocale()

Returns preferred locale for this resource.

#### Returns

locale

### getResource() Method

    public String getResource()

Returns the resource in string form.

#### Returns

resource

### getType() Method

    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

### getUserName() Method

    public String getUserName()

Returns user name.

#### Returns

userName

### hashCode() Method

    public int hashCode()

Overrides
  Object.hashCode()

### toString() Method

    public String toString()

Overrides
  Object.toString()