public class DefaultAuditManager extends AuditManager
| Constructor and Description |
|---|
DefaultAuditManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ExtensionBeanFactory |
getDefaultExtensionBeanFactory()
Gets the default Audit profile repository.
|
ModelTypeFactory |
getDefaultModelTypeFactory()
Gets the default
ModelTypeFactory which uses all model types
registered with Audit. |
ProfileRepository |
getDefaultProfileRepository()
Gets the default Audit profile repository.
|
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)
|
getAuditManager, isDevelopment, setAuditManagerpublic void register(AuditProvider provider)
AuditManagerregister in class AuditManagerpublic AuditPreferences getPreferences()
AuditManagergetPreferences in class AuditManagerpublic ExtensionBeanFactory getDefaultExtensionBeanFactory()
AuditManagergetDefaultExtensionBeanFactory in class AuditManagerpublic ProfileRepository getDefaultProfileRepository()
AuditManagergetDefaultProfileRepository in class AuditManagerpublic ModelTypeFactory createModelTypeFactory(ModelType... modelTypes)
AuditManagerModelTypeFactory with specific model types and the
standard container types (root, workspace, project, and directory).createModelTypeFactory in class AuditManagerpublic ModelTypeFactory getDefaultModelTypeFactory()
AuditManagerModelTypeFactory which uses all model types
registered with Audit.getDefaultModelTypeFactory in class AuditManagerpublic Profile createProfile(java.lang.String name)
AuditManagerProfile with all registered beans included and
enabled.createProfile in class AuditManagername - The name of the profile.public Profile createProfile(java.lang.String name, BeanDefinition... beans)
AuditManagerProfile with beans from specified bean
definitions included and enabled.createProfile in class AuditManagername - The name of the profile.beans - The bean definitions for the profile.public Profile createProfile(java.lang.String name, java.lang.String... ids)
AuditManagerProfile with all registered beans included and with
beans from specified ids, if any, enabled.createProfile in class AuditManagername - The name of the profile.ids - Beans to enable for the profile.public Auditor createAuditor(java.lang.Class<? extends Analyzer>... analyzers)
AuditManagerAuditor which uses the default model type factory.
If no analyzers are specified, then all registered analyzers are included.createAuditor in class AuditManagerpublic Auditor createAuditor(ModelTypeFactory factory, java.lang.Class<? extends Analyzer>... analyzers)
AuditManagerAuditor. If no analyzers are specified, then all
registered analyzers are included.createAuditor in class AuditManagerfactory - The factory for the models to audit.public AuditModel createModel()
AuditManagerAuditModel.createModel in class AuditManagerpublic AuditModel runShowLogPage(Context context, Auditor auditor, java.lang.String label, java.lang.Thread.UncaughtExceptionHandler handler)
AuditManagerAuditor, 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.runShowLogPage in class AuditManagercontext - 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.AuditModel, attached to the auditor, shown in the page.public void showLogPage(Context context, Auditor auditor, AuditModel model, java.lang.String label)
AuditManagerAuditor and model. The caller is responsible for attaching the model to
the auditor and for running the audit.showLogPage in class AuditManagercontext - 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.public Transformer createTransformer()
AuditManagerTransformer.createTransformer in class AuditManagerpublic java.util.Collection<java.net.URL> getStyleSheets()
AuditManagergetStyleSheets in class AuditManagerpublic java.util.Collection<java.net.URL> getProfileStyleSheets()
AuditManagergetProfileStyleSheets in class AuditManagerpublic java.util.Map<java.lang.Class<?>,BeanCustomizer> getBeanCustomizers()
AuditManagergetBeanCustomizers in class AuditManager