PolicyEditorMBean (Abstract)


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

Provides a set of methods for creating, editing, and removing policies. An Authorization-provider MBean can optionally extend this MBean. The WebLogic Server Administration Console detects when an Authorization provider extends this MBean and automatically provides a GUI for using these methods.

   
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.management.security.authorization.PolicyEditorMBean
Factory Methods No factory methods. Instances of this MBean are created automatically.


Operations

This section describes the following operations:


createPolicy

Creates a policy for accessing a resource.

   
Operation Name"createPolicy"
ParametersObject [] {  resourceIdexpression }

where:

  • resourceId is an object of type java.lang.String that specifies:

    - The ID of the resource. A null value will trigger NullPointerException.

    For information about creating resources, refer to the Javadoc for weblogic.security.spi.Resource.

  • expression is an object of type java.lang.String that specifies:

    - The expression that determines the type of access this policy allows to the resource. A null value prohibits any type of access.

SignatureString [] { "java.lang.String", "java.lang.String" }
Returns void
Exceptions
  • weblogic.management.utils.AlreadyExistsException
  • weblogic.management.utils.CreateException

getPolicyExpression

Returns the expression of an existing policy.

   
Operation Name"getPolicyExpression"
ParametersObject [] {  resourceId }

where:

  • resourceId is an object of type java.lang.String that specifies:

    - The resource for which this method returns the policy expression. A null value will trigger NullPointerException.

SignatureString [] { "java.lang.String" }
ReturnsString
Exceptions
  • weblogic.management.utils.NotFoundException

isSet

Returns true if the specified attribute has been set explicitly in this MBean instance.

   
Operation Name"isSet"
ParametersObject [] {  propertyName }

where:

  • propertyName is an object of type java.lang.String that specifies:

    property to check

SignatureString [] { "java.lang.String" }
Returns boolean
Exceptions
  • java.lang.IllegalArgumentException

policyExists

Indicates whether a policy exists for a resource.

   
Operation Name"policyExists"
ParametersObject [] {  resourceId }

where:

  • resourceId is an object of type java.lang.String that specifies:

    - The resource within which this method searches for a policy. A null value will trigger NullPointerException.

SignatureString [] { "java.lang.String" }
Returns boolean

removePolicy

Removes a policy.

   
Operation Name"removePolicy"
ParametersObject [] {  resourceId }

where:

  • resourceId is an object of type java.lang.String that specifies:

    - The resource for which this method removes a policy. A null value may trigger NullPointerException.

SignatureString [] { "java.lang.String" }
Returns void
Exceptions
  • weblogic.management.utils.NotFoundException
  • weblogic.management.utils.RemoveException

setPolicyExpression

Sets a policy expression for a resource.

   
Operation Name"setPolicyExpression"
ParametersObject [] {  resourceIdexpression }

where:

  • resourceId is an object of type java.lang.String that specifies:

    - The resource for which this method sets the policy expression. A null value will trigger NullPointerException.

  • expression is an object of type java.lang.String that specifies:

    - The expression that determines the type of access this policy allows to the resource. A null value prohibits any type of access.

SignatureString [] { "java.lang.String", "java.lang.String" }
Returns void
Exceptions
  • weblogic.management.utils.NotFoundException
  • weblogic.management.utils.CreateException

unSet

Restore the given property to its default value.

   
Operation Name"unSet"
ParametersObject [] {  propertyName }

where:

  • propertyName is an object of type java.lang.String that specifies:

    property to restore

SignatureString [] { "java.lang.String" }
Returns void
Exceptions
  • java.lang.IllegalArgumentException
    UnsupportedOperationException if called on a runtime implementation.

wls_getDisplayName

   
Operation Name"wls_getDisplayName"
Parametersnull
Signaturenull
ReturnsString