# com.bea.jsptools.portal
PortalAdminEntitlementResource Class

public class PortalAdminEntitlementResource
extends `P13nResource`

PortalAdminEntitlementResource

Hierarchy
  `Object`
  `ResourceBase`
  `P13nResource`
  `PortalAdminEntitlementResource`

All Implemented Interfaces
  `Resource`, `SelfDescribingResource`, `Serializable`

## Field Summary

`public static final `String`` | `BOOK_RESOURCE_TYPE` String
`public static final `String`` | `DESKTOP_RESOURCE_TYPE` String
`public static final `String`` | `LAYOUT_RESOURCE_TYPE` String
`public static final `String`` | `LOOK_AND_FEEL_RESOURCE_TYPE` String
`public static final `String`` | `MARKUP_RESOURCE_TYPE` String
`public static final `String`` | `MENU_RESOURCE_TYPE` String
`public static final `String`` | `PAGE_RESOURCE_TYPE` String
`public static final `String`` | `PLACEHOLDER_RESOURCE_TYPE` String
`public static final `String`` | `PORTAL_RESOURCE_TYPE` String
`public static final `String`` | `PORTLET_CATEGORY_RESOURCE_TYPE` String
`public static final `String`` | `PORTLET_RESOURCE_TYPE` String
`public static final `String`` | `SHELL_RESOURCE_TYPE` String
`public static final `String`` | `THEME_RESOURCE_TYPE` String

Fields from com.bea.p13n.entitlements.resource`.`P13nResource``
``empty``

Fields from weblogic.security.service`.`ResourceBase``
`id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, values`

Fields from interface weblogic.security.spi`.`SelfDescribingResource``
`LIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE`

## Constructor Summary

PortalAdminEntitlementResource(`String` entAppName, `String` webAppName, `String` resourceType, `String` resourceId, `String` capability, int resourceScope) Construct a resource whose role policies are scoped at a single leaf node, and whose security policies follow the 2 tier desktop/library inheritance scheme.
PortalAdminEntitlementResource(`String` entAppName, `String` webAppName, `String` resourceType, `String` resourceId, `String` capability) Construct a resource whose role policies are scoped at a single leaf node.

## Method Summary

`public final int` | `getResourceScope`() Return the resource type of this class.

Methods from `com.bea.p13n.entitlements.resource.`P13nResource``
``getCapabilityName`, `getEntAppName`, `getKeys`, `getResourceName`, `getSecurityResource`, `getType`, `getWebAppName`, `makeParent`, `setInitialValues`, `setSecurityResource`, `toString``

Methods from `weblogic.security.service.`ResourceBase``
`appendArrayValue, appendValue, equals, getFieldType, getID, getKeys, getParentResource, getRepeatingFieldIndex, getRepeatingFieldTerminatingIndex, getValues, hashCode, init, init, makeParent, reset, toString, writeResourceString`

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

Methods from interface `weblogic.security.spi.`Resource``
`equals, getID, getKeys, getParentResource, getType, getValues, hashCode, toString`

Methods from interface `weblogic.security.spi.`SelfDescribingResource``
`getFieldType, getRepeatingFieldIndex, getRepeatingFieldTerminatingIndex`

## Field Detail

### BOOK_RESOURCE_TYPE

    public static final String BOOK_RESOURCE_TYPE

### DESKTOP_RESOURCE_TYPE

    public static final String DESKTOP_RESOURCE_TYPE

### LAYOUT_RESOURCE_TYPE

    public static final String LAYOUT_RESOURCE_TYPE

### LOOK_AND_FEEL_RESOURCE_TYPE

    public static final String LOOK_AND_FEEL_RESOURCE_TYPE

### MARKUP_RESOURCE_TYPE

    public static final String MARKUP_RESOURCE_TYPE

### MENU_RESOURCE_TYPE

    public static final String MENU_RESOURCE_TYPE

### PAGE_RESOURCE_TYPE

    public static final String PAGE_RESOURCE_TYPE

### PLACEHOLDER_RESOURCE_TYPE

    public static final String PLACEHOLDER_RESOURCE_TYPE

### PORTAL_RESOURCE_TYPE

    public static final String PORTAL_RESOURCE_TYPE

### PORTLET_CATEGORY_RESOURCE_TYPE

    public static final String PORTLET_CATEGORY_RESOURCE_TYPE

### PORTLET_RESOURCE_TYPE

    public static final String PORTLET_RESOURCE_TYPE

### SHELL_RESOURCE_TYPE

    public static final String SHELL_RESOURCE_TYPE

### THEME_RESOURCE_TYPE

    public static final String THEME_RESOURCE_TYPE

## Constructor Detail

### PortalAdminEntitlementResource

    public PortalAdminEntitlementResource(String entAppName,
                                          String webAppName,
                                          String resourceType,
                                          String resourceId,
                                          String capability,
                                          int resourceScope)

  Construct a resource whose role policies are scoped at a single leaf node, and whose security policies follow the 2 tier desktop/library inheritance scheme.

### PortalAdminEntitlementResource

    public PortalAdminEntitlementResource(String entAppName,
                                          String webAppName,
                                          String resourceType,
                                          String resourceId,
                                          String capability)

  Construct a resource whose role policies are scoped at a single leaf node. The policy location and resource scope default to `EntitlementConstants.P13N_ADMIN_ROLE_POLICY_POOL``` and `EntitlementConstants.HIERARCHICAL_ROLE_INHERITANCE``` respectively.

## Method Detail

### getResourceScope() Method

    public final int getResourceScope()

Return the resource type of this class.

Overrides
  `P13nResource.getResourceScope()`

#### Returns

the resource scope. See `EntitlementConstants``` for legal values of resourceScope.