Skip navigation links

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

E52944-01


oracle.jdeveloper.audit.model
Interface ContentCache

All Known Implementing Classes:
DefaultContentCache

public interface ContentCache

A cache of the content sets of a workspace or project. Any filters to be applied to the entire contents of the project, such as the global ignore list or the current working set, must be supplied to the constructor.

Note: updating is possible, but not needed by Audit currently.


Method Summary
 boolean acceptsUrl(ContentRoot root, java.net.URL url)
          Gets whether a content root accepts a URL.
 ContentDirectory getContainingDirectory(ContentDirectory directory)
          Gets the containing content directory of a content set directory, or null if the directory is a root directory.
 java.util.Collection<ContentDirectory> getDirectories(java.net.URL url)
          Gets the content directories for a URL.
 java.util.Collection<ContentDirectory> getRootDirectories(java.util.Set<ContentRoot.Type> types)
          Gets the content directories for the content roots of the cached projects.
 java.util.Collection<ContentRoot> getRoots()
          Gets the content roots of the workspace or project.
 java.util.Collection<ContentRoot> getRoots(java.net.URL url)
          Gets the content roots which contain a URL, ordered from longest to shortest, or empty if none.

 

Method Detail

getRoots

java.util.Collection<ContentRoot> getRoots()
Gets the content roots of the workspace or project.

getRoots

java.util.Collection<ContentRoot> getRoots(java.net.URL url)
Gets the content roots which contain a URL, ordered from longest to shortest, or empty if none.
See Also:
acceptsUrl(ContentRoot, URL)

acceptsUrl

boolean acceptsUrl(ContentRoot root,
                   java.net.URL url)
Gets whether a content root accepts a URL. To be accepted, the URL must pass both the root pattern filters and the project filters. For file URLs, acceptance is determined with IntersectedFilters.isIncluded(String); for directory URLs, with IntersectedFilters.inferFromFilters(String).
Parameters:
root - The content set root.
url - The URL to test.

getRootDirectories

java.util.Collection<ContentDirectory> getRootDirectories(java.util.Set<ContentRoot.Type> types)
Gets the content directories for the content roots of the cached projects.

Since roots from different content sets that have the same URL are merged into a single content directory, there may be fewer content directories than roots. Note that neither project nor root filters apply to the roots themselves.

Parameters:
types - The content root types for which to get directories.

getDirectories

java.util.Collection<ContentDirectory> getDirectories(java.net.URL url)
Gets the content directories for a URL. If the URL does not pass project and root filters with respect to a root, the root is not included. There will only be one directory unless the URL is contained by two or more content sets with different roots (and thus the URL has a different relative path with respect to each root).

If the specified URL is a directory URL, the URL of the directories will be that URL; if the specified URL is a file URL, the URL of the directories will be the parent of that URL.


getContainingDirectory

ContentDirectory getContainingDirectory(ContentDirectory directory)
Gets the containing content directory of a content set directory, or null if the directory is a root directory.

Skip navigation links

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

E52944-01


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