Skip navigation links

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

E17493-03


oracle.jdeveloper.audit.model
Interface ModelFactory

All Known Implementing Classes:
DefaultModelFactory

public interface ModelFactory

A factory for model adapters. It creates model adapters corresponding to IDE (@link Element} types and instances. Model adapters from different factory instances cannot be mixed.


Method Summary
 void close()
          Closes this factory.
 java.lang.Object getAttribute(java.lang.Object key)
          Gets an Audit object model configuration attribute, or null if none.
 java.util.Map getAttributes()
          Gets the Audit object model configuration attributes.
 java.util.Collection<ModelAdapter> getContainedModelAdapters(Element element, java.net.URL url, ContainerModelAdapter container)
          Gets the models in a container corresponding to an Element.
 ContentCache getContentSetCache(Project project, Workspace workspace)
          Gets the ContentCache for a project and workspace.
 long getMaximumFileSize()
          Gets the size of the largest file that can be audited, in Mb.
<T extends ModelAdapter>
ModelAdapter
getModelAdapter(java.lang.Class<T> type, java.net.URL url, Project project, Workspace workspace)
          Gets the model adapter of a type corresponding to a URL, or null if none.
 java.util.Collection<ModelAdapter> getModelAdapters(Element element, java.net.URL url, Project project, Workspace workspace)
          Gets the models corresponding to an Element or URL.
 Location getModelRoot()
          Gets the location of the root object of the aggregated Audit object model.
 ModelTypeFactory getModelTypeFactory()
          Gets the model type factory used by this model factory.
 WorkingSet getWorkingSet()
          Gets the working set to use when filtering projects.
 void setMaximumFileSize(long size)
          Sets the size of the largest auditable file.
 void setWorkingSet(WorkingSet workingSet)
          Sets whether to filter projects by their current working set.

 

Method Detail

getModelTypeFactory

ModelTypeFactory getModelTypeFactory()
Gets the model type factory used by this model factory.

setMaximumFileSize

void setMaximumFileSize(long size)
Sets the size of the largest auditable file.
Parameters:
size - The size, in Mb, of the largest file that can be audited.

getMaximumFileSize

long getMaximumFileSize()
Gets the size of the largest file that can be audited, in Mb.

setWorkingSet

void setWorkingSet(WorkingSet workingSet)
Sets whether to filter projects by their current working set.
Throws:
java.lang.IllegalStateException - if getContentSetCache(oracle.ide.model.Project, oracle.ide.model.Workspace) has already been invoked.

getWorkingSet

WorkingSet getWorkingSet()
Gets the working set to use when filtering projects.

getModelRoot

Location getModelRoot()
Gets the location of the root object of the aggregated Audit object model.

getContentSetCache

ContentCache getContentSetCache(Project project,
                                Workspace workspace)
Gets the ContentCache for a project and workspace.

getModelAdapters

java.util.Collection<ModelAdapter> getModelAdapters(Element element,
                                                    java.net.URL url,
                                                    Project project,
                                                    Workspace workspace)
Gets the models corresponding to an Element or URL.
Parameters:
element - The element.
url - The URL containing the element. Ignored if element is a node or a directory.
project - The project containing the element. Ignored if element corresponds to a project.
workspace - The workspace containing the element. Ignored if element corresponds to a workspace.

getModelAdapter

<T extends ModelAdapter> ModelAdapter getModelAdapter(java.lang.Class<T> type,
                                                      java.net.URL url,
                                                      Project project,
                                                      Workspace workspace)
Gets the model adapter of a type corresponding to a URL, or null if none.

Using the Class of the model type to identify the model type is problematic (the concrete model type classes are not in the public API), and hopefully will be replaced with some kind of public identifier.

Parameters:
type - The Class of the model type of the model.
url - The URL containing the model.
project - The project containing the model.
workspace - The workspace containing the model.

getContainedModelAdapters

java.util.Collection<ModelAdapter> getContainedModelAdapters(Element element,
                                                             java.net.URL url,
                                                             ContainerModelAdapter container)
Gets the models in a container corresponding to an Element.
Parameters:
element - The element.
url - The URL of the element.
container - The container containing the element.

close

void close()
Closes this factory.

getAttribute

java.lang.Object getAttribute(java.lang.Object key)
Gets an Audit object model configuration attribute, or null if none.
See Also:
Auditor.setAttribute(java.lang.Object, java.lang.Object)

getAttributes

java.util.Map getAttributes()
Gets the Audit object model configuration attributes.

Skip navigation links

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

E17493-03


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