Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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(java.lang.Class<? extends Analyzer>... analyzers)
          Creates an Auditor which uses the default model type factory.
 Auditor createAuditor(ModelTypeFactory factory, java.lang.Class<? extends Analyzer>... analyzers)
          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)
          Creates a new Profile with all registered beans included and enabled.
 Profile createProfile(java.lang.String name, BeanDefinition... beans)
          Creates a new Profile with beans from specified bean definitions included and enabled.
 Profile createProfile(java.lang.String name, java.lang.String... ids)
          Creates a new Profile with all registered beans included and with beans from specified ids, if any, enabled.
 Transformer createTransformer()
          Creates a Transformer.
 java.util.Map<java.lang.Class<?>,BeanCustomizer> getBeanCustomizers()
          Gets the bean customizers registered with this Audit manager.
 ModelTypeFactory getDefaultModelTypeFactory()
          Gets the default ModelTypeFactory which uses all model types registered with Audit.
 AuditPreferences getPreferences()
          Gets the Audit preferences.
 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.
 void register(AuditProvider provider)
          Registers an Audit provider with this Audit manager.
 AuditModel runShowLogPage(Context context, 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(Context context, 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, isDevelopment, 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

createProfile

public Profile createProfile(java.lang.String name)
Description copied from class: AuditManager
Creates a new Profile with all registered beans included and enabled.
Specified by:
createProfile in class AuditManager
Parameters:
name - The name of the profile.

createProfile

public Profile createProfile(java.lang.String name,
                             BeanDefinition... beans)
Description copied from class: AuditManager
Creates a new Profile with beans from specified bean definitions included and enabled.
Specified by:
createProfile in class AuditManager
Parameters:
name - The name of the profile.
beans - The bean definitions for the profile.

createProfile

public Profile createProfile(java.lang.String name,
                             java.lang.String... ids)
Description copied from class: AuditManager
Creates a new Profile with all registered beans included and with beans from specified ids, if any, enabled.
Specified by:
createProfile in class AuditManager
Parameters:
name - The name of the profile.
ids - Beans to enable for the profile.

createAuditor

public Auditor createAuditor(java.lang.Class<? extends Analyzer>... analyzers)
Description copied from class: AuditManager
Creates an Auditor which uses the default model type factory. If no analyzers are specified, then all registered analyzers are included.
Specified by:
createAuditor in class AuditManager

createAuditor

public Auditor createAuditor(ModelTypeFactory factory,
                             java.lang.Class<? extends Analyzer>... analyzers)
Description copied from class: AuditManager
Creates an Auditor. If no analyzers are specified, then all registered analyzers are included.
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

runShowLogPage

public AuditModel runShowLogPage(Context context,
                                 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:
context - The current IDE context.
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(Context context,
                        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:
context - The current IDE context.
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

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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