com.bea.p13n.entitlements.resource
Class P13nSecurityResource

java.lang.Object
  extended by ResourceBase
      extended by com.bea.p13n.entitlements.resource.P13nResource
          extended by com.bea.p13n.entitlements.resource.P13nSecurityResource
All Implemented Interfaces
SecurityResource

public class P13nSecurityResource
extends P13nResource
implements SecurityResource

The SecurityResource class is used to represent an application defined resource for the runtime checking of security policies.

This class will search for security policies beginning at the application resource leaf node and then in a hiearchical manner, until located.


Field Summary
 
Fields inherited from class com.bea.p13n.entitlements.resource.P13nResource
empty
 
Constructor Summary
P13nSecurityResource(String entAppName, String webAppName, String appResourceID, String capability)
          Construct a resource to be used for location of security policies.
P13nSecurityResource(String entAppName, String webAppName, String appResourceID, String capability, int scopeOverride)
          Construct a resource to be used for location of security policies.
 
Method Summary
 int getResourceScope()
          Return the resource type of this class.
 
Methods inherited from class com.bea.p13n.entitlements.resource.P13nResource
getCapabilityName, getEntAppName, getKeys, getLibraryResourceId, getResourceName, getSecurityResource, getType, getWebAppName, makeParent, setInitialValues, setSecurityResource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

P13nSecurityResource

public P13nSecurityResource(String entAppName,
                            String webAppName,
                            String appResourceID,
                            String capability)
Construct a resource to be used for location of security policies.

Parameters
entAppName - Enterprise application name.
webAppName - Webapp name.
appResourceID - Application-defined resource taxonomy Id
capability - Optional application-defined capability to evaluate. If no capability name is specified, a policy with no capability name will be used if found.

P13nSecurityResource

public P13nSecurityResource(String entAppName,
                            String webAppName,
                            String appResourceID,
                            String capability,
                            int scopeOverride)
Construct a resource to be used for location of security policies.

Parameters
entAppName - Enterprise application name.
webAppName - Webapp name.
appResourceID - Application-defined resource taxonomy Id
capability - Optional application-defined capability to
scopeOverride - Internal constructor for class reuse evaluate. If no capability name is specified, a policy with no capability name will be used if found.
Method Detail

getResourceScope

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

Specified by:
getResourceScope in class P13nResource
Returns
EntitlementConstants.SECURITY_POLICY_INHERITANCE.


Copyright © 2006 BEA Systems, Inc. All Rights Reserved