Oracle Entitlements Server for Java API Reference

com.bea.security
Class ResourceAction

java.lang.Object
  |
  +--weblogic.security.service.ResourceBase
        |
        +--com.bea.security.ResourceAction

public class ResourceAction
extends weblogic.security.service.ResourceBase
implements com.bea.security.spi.ResourceActionBundle

ResourceAction is a wrapper class that integrates the separated Resource/Action into a compatible form for consumption by the SPI. By extending ResourceBase, it takes advantage of its object caching abilities and interfaces with SelfDescribingResource according to a NamingAuthority's rules. Each NameAttributeType maps directly to a SelfDescribingResource field type.

Author:
Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer[] fieldtypes
          Array of field types for this resource
protected  java.lang.String[] keys
          Array of keys for this resource
protected  RuntimeAction rAction
          A reference to the RuntimeAction this encapsulates
protected  RuntimeResource rResource
          A reference to the RuntimeResource this encapsulates
 
Fields inherited from class weblogic.security.service.ResourceBase
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, values
 
Constructor Summary
ResourceAction(RuntimeResource res, RuntimeAction act)
          Construct this object given a RuntimeResource and a RuntimeAction.
 
Method Summary
 RuntimeAction getAction()
          Get the RuntimeAction as embedded in this class.
 java.lang.String[] getKeys()
          Get the keys from within this resource
 RuntimeResource getResource()
          Get the RuntimeResource as embedded in this class, which is ruled by a Name Authority
 java.lang.String getType()
          Get the type of this resource - the name of the resource authority
 java.lang.String[] getValues()
          Get the values from within this resource
protected  weblogic.security.spi.Resource makeParent()
          Make this resource's parent
 java.lang.String toString()
          We need to override the toString method only to ensure that the values have been calculated before we run the base class's toString method
 
Methods inherited from class weblogic.security.service.ResourceBase
appendArrayValue, appendValue, equals, getID, getParentResource, getRepeatingFieldIndex, getRepeatingFieldTerminatingIndex, hashCode, init, init, reset, writeResourceString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

rResource

protected RuntimeResource rResource
A reference to the RuntimeResource this encapsulates

rAction

protected RuntimeAction rAction
A reference to the RuntimeAction this encapsulates

keys

protected java.lang.String[] keys
Array of keys for this resource

fieldtypes

protected java.lang.Integer[] fieldtypes
Array of field types for this resource
Constructor Detail

ResourceAction

public ResourceAction(RuntimeResource res,
                      RuntimeAction act)
Construct this object given a RuntimeResource and a RuntimeAction.

Parameters:
res - A RuntimeResource as passed through the public API.
act - A RuntimeAction as passed through the public API.
Method Detail

getResource

public RuntimeResource getResource()
Get the RuntimeResource as embedded in this class, which is ruled by a Name Authority


getAction

public RuntimeAction getAction()
Get the RuntimeAction as embedded in this class.


getKeys

public java.lang.String[] getKeys()
Get the keys from within this resource

Overrides:
getKeys in class weblogic.security.service.ResourceBase

getValues

public java.lang.String[] getValues()
Get the values from within this resource

Overrides:
getValues in class weblogic.security.service.ResourceBase

getType

public java.lang.String getType()
Get the type of this resource - the name of the resource authority


makeParent

protected weblogic.security.spi.Resource makeParent()
Make this resource's parent

Overrides:
makeParent in class weblogic.security.service.ResourceBase

toString

public java.lang.String toString()
We need to override the toString method only to ensure that the values have been calculated before we run the base class's toString method

Overrides:
toString in class weblogic.security.service.ResourceBase