Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.admin.tools.policy
Class PolicyManager

    java.lang.Object
      oracle.ifs.admin.tools.policy.PolicyManager

    public class PolicyManager

extends java.lang.Object

PolicyManager creates Policies, PolicyLists, and PolicyListElements.

(Unpublished)

Constructor Summary
`PolicyManager()` Default constructor.

Method Summary
`protected void` | `disableLogging()` Disable logging.
`protected void` | `enableLogging()` Re-enable logging.
`java.util.HashMap` | `getClassPolicyActionContexts(java.lang.String policyFileName)` Gets the PolicyActionContexts specified by the policy file.
`void` | `log()` Puts out a blank line to the log
`void` | `log(int indentLevel, java.lang.String msg)` Puts out an indented string to the log.
`void` | `log(java.lang.String msg)` Puts out a string to the log
`void` | `log(java.lang.Throwable throwable)` Puts out an exception to the log
`protected ClassObject` | `lookupClassObject(java.lang.String name)` Find a ClassObject by name; throw an exception if no ClassObject exists with the specified name.
`protected PolicyList` | `lookupPolicyList(java.lang.String name)` Find a PolicyList by name; return null if no PolicyList exists with the specified name.
`static void` | `main(java.lang.String[] args)` Creates Policies, PolicyLists, and PolicyListElements from the command line.
`void` | `printStackTrace(java.lang.Throwable e)` Add stack trace to the log.
`void` | `run(java.lang.String[] args)` Creates Policies, PolicyLists, and PolicyListElements.
`static int` | `toExecutionMode(java.lang.String executionModeLabel)` Convert an execution mode label to a numeric execution mode.
`static java.lang.String` | `toExecutionModeLabel(int executionMode)` Convert an execution mode to a String label representation.

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

Constructor Detail

### PolicyManager

    public PolicyManager()

  Default constructor.

  (Unpublished)

Method Detail

### main

    public static void main(java.lang.String[] args)

  Description copied from class: `PolicyManager`
  Creates Policies, PolicyLists, and PolicyListElements from the command line.

  Parameters:
    `args` - the command-line arguments
  (Unpublished)

### run

    public void run(java.lang.String[] args)
             throws java.lang.Exception

  Description copied from class: `PolicyManager`
  Creates Policies, PolicyLists, and PolicyListElements.

  Throws:
    `java.lang.Exception` - if the operation fails
  (Unpublished)

### getClassPolicyActionContexts

    public java.util.HashMap getClassPolicyActionContexts(java.lang.String policyFileName)
                                                   throws java.lang.Exception

  Description copied from class: `PolicyManager`
  Gets the PolicyActionContexts specified by the policy file.

  This method is used for bootstrapping the policy framework at schema creation time. It processes the specified policy file and creates, for each ClassObject to which a ClassPolicyList is applied, the list of PolicyActionContexts for that ClassObject (not including any PolicyActionContexts inherited from the superclasses).

  The return value is a HashMap whose keys are the uppercased ClassObject names and whose values are Lists of PolicyActionContexts.

  Parameters:
    `policyFileName` - the name of the policy file
  Returns:
    see method description
  Throws:
    `java.lang.Exception` - if the operation fails
  (Unpublished)

### toExecutionMode

    public static int toExecutionMode(java.lang.String executionModeLabel)

  Description copied from class: `PolicyManager`
  Convert an execution mode label to a numeric execution mode.

  Parameters:
    `executionModeLabel` - the string representation of an exceution mode; expected to be one of: PREEXISTING, USER, DISCOVERYADMINISTRATION, ADMINISTRATION, SYSTEMADMINISTRATION, INSTALLATION
  Returns:
    the numeric execution mode
  (Unpublished)

### toExecutionModeLabel

    public static java.lang.String toExecutionModeLabel(int executionMode)

  Description copied from class: `PolicyManager`
  Convert an execution mode to a String label representation.

  Parameters:
    `executionMode` - the numeric execution mode
  Returns:
    the string representation of an exceution mode; expected to be one of: PREEXISTING, USER, DISCOVERYADMINISTRATION, ADMINISTRATION, SYSTEMADMINISTRATION, INSTALLATION, UNDEFINED
  (Unpublished)

### lookupClassObject

    protected ClassObject lookupClassObject(java.lang.String name)
                                     throws IfsException

  Description copied from class: `PolicyManager`
  Find a ClassObject by name; throw an exception if no ClassObject exists with the specified name.

  Parameters:
    `name` - ClassObject name
  Returns:
    the ClassObject
  Throws:
    `IfsException` - if operation fails
  (Unpublished)

### lookupPolicyList

    protected PolicyList lookupPolicyList(java.lang.String name)
                                   throws IfsException

  Description copied from class: `PolicyManager`
  Find a PolicyList by name; return null if no PolicyList exists with the specified name.

  Parameters:
    `name` - PolicyList name
  Returns:
    the PolicyList or null if none found
  Throws:
    `IfsException` - if operation fails
  (Unpublished)

### disableLogging

    protected void disableLogging()

  Description copied from class: `PolicyManager`
  Disable logging.

  (Unpublished)

### enableLogging

    protected void enableLogging()

  Description copied from class: `PolicyManager`
  Re-enable logging.

  (Unpublished)

### log

    public void log()

  Description copied from class: `PolicyManager`
  Puts out a blank line to the log

  (Unpublished)

### log

    public void log(java.lang.String msg)

  Description copied from class: `PolicyManager`
  Puts out a string to the log

  Parameters:
    `msg` - the String
  (Unpublished)

### log

    public void log(int indentLevel,
                    java.lang.String msg)

  Description copied from class: `PolicyManager`
  Puts out an indented string to the log.

  Parameters:
    `indentLevel` - degree to which the message should be indented
    `msg` - the String
  (Unpublished)

### log

    public void log(java.lang.Throwable throwable)

  Description copied from class: `PolicyManager`
  Puts out an exception to the log

  Parameters:
    `throwable` - the exception
  (Unpublished)

### printStackTrace

    public void printStackTrace(java.lang.Throwable e)

  Description copied from class: `PolicyManager`
  Add stack trace to the log.

  Parameters:
    `e` - the exception for which to print a stack trace
  (Unpublished)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD