Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdevimpl.audit.core
Class DefaultAuditManager

java.lang.Object
  extended by oracle.jdeveloper.audit.AuditManager
      extended by oracle.jdevimpl.audit.core.DefaultAuditManager

public class DefaultAuditManager
extends AuditManager

The concrete implementation of the Audit manager.


Constructor Summary
DefaultAuditManager()
           
 
Method Summary
 Auditor createAuditor()
          Creates an Auditor which uses the default model type factory.
 Auditor createAuditor(ModelTypeFactory factory)
          Creates an Auditor.
 AuditModel createModel()
          Creates an AuditModel.
 ModelTypeFactory createModelTypeFactory(ModelType... modelTypes)
          Creates a ModelTypeFactory with specific model types and the standard container types (root, workspace, project, and directory).
 Profile createProfile(java.lang.String name, java.lang.Class<? extends Analyzer>... analyzers)
          Creates a new Profile with specific analyzers and with all rules and metrics enabled.
 Profile createProfile(java.lang.String key, java.lang.String name, java.net.URL url)
          Creates a new predefined Profile with all registered analyzers configured from a profile file.
 Transformer createTransformer()
          Creates a Transformer.
 java.util.Collection<java.lang.Class<? extends Analyzer>> getAnalyzers()
          Gets the analyzer classes registered with this Audit manager.
 java.util.Map<java.lang.Class<?>,BeanCustomizer> getBeanCustomizers()
          Gets the bean customizers registered with this Audit manager.
 java.util.Map<java.lang.String,ExtensionBean> getBeans()
          category, rule, metric: default value must be supplied for all required properties all values must correspond to a property values can reference own properties (check circularity) transform: no value need be supplied for required properties all values must correspond to a property values can reference own properties transform binding: value must be supplied for all required transform properties all values must correspond to a transform property values can reference own properties, rule properties, and rule parameters

Rule Knows properties.

 Converter getConverter(java.lang.Class<?> type)
          Gets the Converter defined for a type.
 ModelTypeFactory getDefaultModelTypeFactory()
          Gets the default ModelTypeFactory which uses all model types registered with Audit.
 java.util.Map<java.lang.Class<?>,java.beans.PersistenceDelegate> getPersistenceDelegates()
          Gets the persistence delegates registered with this Audit manager.
 AuditPreferences getPreferences()
          Gets the Audit preferences.
static java.lang.Class<?> getPrimitiveType(java.lang.Class type)
          Gets the primitive type corresponding to a class, or null if none.
 java.util.Collection<Profile> getProfiles()
          Gets the predefined profiles registered with this Audit manager.
 java.util.Collection<java.net.URL> getProfileStyleSheets()
          Gets the profile style sheet URLs registered with this Audit manager.
 java.util.Collection<java.net.URL> getStyleSheets()
          Gets the style sheet URLs registered with this Audit manager.
 boolean isRegistered(java.lang.Class<?> type)
          Gets whether an analyer or model type has been registered with Audit.
 void register(AuditProvider provider)
          Registers an Audit provider with this Audit manager.
 AuditModel runShowLogPage(Auditor auditor, java.lang.String label, java.lang.Thread.UncaughtExceptionHandler handler)
          Creates and shows an Audit log page for an Auditor, and runs the audit.
 void showLogPage(Auditor auditor, AuditModel model, java.lang.String label)
          Creates and shows an Audit log page for an Auditor and model.
 
Methods inherited from class oracle.jdeveloper.audit.AuditManager
getAuditManager, setAuditManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuditManager

public DefaultAuditManager()
Method Detail

register

public void register(AuditProvider provider)
Description copied from class: AuditManager
Registers an Audit provider with this Audit manager.

Specified by:
register in class AuditManager

getPreferences

public AuditPreferences getPreferences()
Description copied from class: AuditManager
Gets the Audit preferences.

Specified by:
getPreferences in class AuditManager

createModelTypeFactory

public ModelTypeFactory createModelTypeFactory(ModelType... modelTypes)
Description copied from class: AuditManager
Creates a ModelTypeFactory with specific model types and the standard container types (root, workspace, project, and directory).

Specified by:
createModelTypeFactory in class AuditManager

getDefaultModelTypeFactory

public ModelTypeFactory getDefaultModelTypeFactory()
Description copied from class: AuditManager
Gets the default ModelTypeFactory which uses all model types registered with Audit.

Specified by:
getDefaultModelTypeFactory in class AuditManager

createAuditor

public Auditor createAuditor()
Description copied from class: AuditManager
Creates an Auditor which uses the default model type factory.

Specified by:
createAuditor in class AuditManager

createAuditor

public Auditor createAuditor(ModelTypeFactory factory)
Description copied from class: AuditManager
Creates an Auditor.

Specified by:
createAuditor in class AuditManager
Parameters:
factory - The factory for the models to audit.

createModel

public AuditModel createModel()
Description copied from class: AuditManager
Creates an AuditModel.

Specified by:
createModel in class AuditManager

createProfile

public Profile createProfile(java.lang.String key,
                             java.lang.String name,
                             java.net.URL url)
Description copied from class: AuditManager
Creates a new predefined Profile with all registered analyzers configured from a profile file.

Specified by:
createProfile in class AuditManager
Parameters:
key - The profile id of the profile.
name - The name of the profile.
url - The url of a profile file.

createProfile

public Profile createProfile(java.lang.String name,
                             java.lang.Class<? extends Analyzer>... analyzers)
Description copied from class: AuditManager
Creates a new Profile with specific analyzers and with all rules and metrics enabled.

Specified by:
createProfile in class AuditManager
Parameters:
name - The name of this profile.
analyzers - The analyzer classes for this profile.

runShowLogPage

public AuditModel runShowLogPage(Auditor auditor,
                                 java.lang.String label,
                                 java.lang.Thread.UncaughtExceptionHandler handler)
Description copied from class: AuditManager
Creates and shows an Audit log page for an Auditor, and runs the audit. If a log page already exists for the label and the associated auditor is still auditing, that audit is cancelled, and that auditor is replaced by the auditor passed to this method.

Specified by:
runShowLogPage in class AuditManager
Parameters:
auditor - The auditor to run the audit.
label - The label for the log page.
handler - A handler for uncaught exceptions, or null for a default.
Returns:
the AuditModel, attached to the auditor, shown in the page.

showLogPage

public void showLogPage(Auditor auditor,
                        AuditModel model,
                        java.lang.String label)
Description copied from class: AuditManager
Creates and shows an Audit log page for an Auditor and model. The caller is responsible for attaching the model to the auditor and for running the audit.

Specified by:
showLogPage in class AuditManager
Parameters:
auditor - The auditor running the audit.
model - The AuditModel, attached to the auditor, to be shown.
label - The label for the log page.

createTransformer

public Transformer createTransformer()
Description copied from class: AuditManager
Creates a Transformer.

Specified by:
createTransformer in class AuditManager

getBeans

public java.util.Map<java.lang.String,ExtensionBean> getBeans()
category, rule, metric: default value must be supplied for all required properties all values must correspond to a property values can reference own properties (check circularity) transform: no value need be supplied for required properties all values must correspond to a property values can reference own properties transform binding: value must be supplied for all required transform properties all values must correspond to a transform property values can reference own properties, rule properties, and rule parameters

Rule Knows properties. Knows parameters. Knows transforms. Knows property values.

Transform Knows properties. Knows non-deferred transform property values. Knows deferred transform property value expressions. Knows deferred predicate expression, if any.

Specified by:
getBeans in class AuditManager

getAnalyzers

public java.util.Collection<java.lang.Class<? extends Analyzer>> getAnalyzers()
Description copied from class: AuditManager
Gets the analyzer classes registered with this Audit manager.

Specified by:
getAnalyzers in class AuditManager

getConverter

public Converter getConverter(java.lang.Class<?> type)
Gets the Converter defined for a type.


getPrimitiveType

public static java.lang.Class<?> getPrimitiveType(java.lang.Class type)
Gets the primitive type corresponding to a class, or null if none.


getPersistenceDelegates

public java.util.Map<java.lang.Class<?>,java.beans.PersistenceDelegate> getPersistenceDelegates()
Description copied from class: AuditManager
Gets the persistence delegates registered with this Audit manager.

Specified by:
getPersistenceDelegates in class AuditManager

getProfiles

public java.util.Collection<Profile> getProfiles()
Description copied from class: AuditManager
Gets the predefined profiles registered with this Audit manager.

Specified by:
getProfiles in class AuditManager

getStyleSheets

public java.util.Collection<java.net.URL> getStyleSheets()
Description copied from class: AuditManager
Gets the style sheet URLs registered with this Audit manager.

Specified by:
getStyleSheets in class AuditManager

getProfileStyleSheets

public java.util.Collection<java.net.URL> getProfileStyleSheets()
Description copied from class: AuditManager
Gets the profile style sheet URLs registered with this Audit manager.

Specified by:
getProfileStyleSheets in class AuditManager

getBeanCustomizers

public java.util.Map<java.lang.Class<?>,BeanCustomizer> getBeanCustomizers()
Description copied from class: AuditManager
Gets the bean customizers registered with this Audit manager.

Specified by:
getBeanCustomizers in class AuditManager

isRegistered

public boolean isRegistered(java.lang.Class<?> type)
Description copied from class: AuditManager
Gets whether an analyer or model type has been registered with Audit.

Specified by:
isRegistered in class AuditManager
Parameters:
type - The analyzer or model type to test.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.