public class VCSSingleNodeObserver extends java.lang.Object implements VCSEBComponent
Observer class to flush a status cache on node events, including reloading and file save notifications.
| Constructor and Description | 
|---|
VCSSingleNodeObserver()
Constructs a new  
VCSSingleNodeObserver whose VCSStatusCache and, optionally, URLFilter may be
 subsequently set using the setStatusCache(VCSStatusCache) and
 setURLFilter(URLFilter) methods. | 
VCSSingleNodeObserver(VCSStatusCache cache,
                     URLFilter urlfilter)
Deprecated. 
 
 | 
VCSSingleNodeObserver(VCSStatusCache cache,
                     URLFilter urlfilter,
                     java.lang.String vcsId)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
clearStatusCacheParentURLs(java.net.URL url)
Clears the internal status cache for any parent directories. 
 | 
oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> | 
getPolicyStatusCache()  | 
VCSStatusCache | 
getStatusCache()
Deprecated. 
 
replaced by  
getStatusCacheBridge() and getPolicyStatusCache(). | 
oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> | 
getStatusCacheBridge()  | 
java.lang.String | 
getSystemId()
Gets the VCS extension ID of the observer. 
 | 
URLFilter | 
getURLFilter()
Gets the url filter of this save observer. 
 | 
void | 
handleMessage(VCSEBMessage message)
Handles a message sent on the  
VCSEventBus. | 
protected boolean | 
isSaveStateChange(java.net.URL url)
Returns true if the specified url can change state due to a save operation. 
 | 
protected void | 
nodeReloaded(java.net.URL url)
Responds to notification that a node object has been reloaded. 
 | 
protected void | 
nodeRenamed(java.net.URL oldUrl,
           java.net.URL newUrl)
Responds to notification that a node object has been renamed. 
 | 
protected void | 
nodeSaved(java.net.URL url)
Deprecated. 
 
replaced by  
nodeSaved(URL[]). | 
protected void | 
nodeSaved(java.net.URL[] urls)
Responds to notification that node objects have been saved. 
 | 
void | 
setPolicyStatusCache(oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> cache)
Sets the status cache of this save observer. 
 | 
void | 
setStatusCache(VCSStatusCache cache)
 | 
void | 
setStatusCacheBridge(oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache)
Sets the status cache of this save observer. 
 | 
void | 
setSystemId(java.lang.String systemId)
Sets the VCS extension ID of the observer. 
 | 
void | 
setURLFilter(URLFilter filter)
Sets the url filter of this save observer. 
 | 
public VCSSingleNodeObserver()
VCSSingleNodeObserver whose VCSStatusCache and, optionally, URLFilter may be
 subsequently set using the setStatusCache(VCSStatusCache) and
 setURLFilter(URLFilter) methods.@Deprecated public VCSSingleNodeObserver(VCSStatusCache cache, URLFilter urlfilter)
VCSSingleNodeObserver(VCSStatusCache,URLFilter,String).cache - the status cache for the save observer.urlfilter - the URLFilter defining relevant
 urlspublic VCSSingleNodeObserver(VCSStatusCache cache, URLFilter urlfilter, java.lang.String vcsId)
cache - the status cache for the save observer.urlfilter - the URLFilter defining relevant
 urlsvcsId - the VCS extension ID.@Deprecated public VCSStatusCache getStatusCache()
getStatusCacheBridge() and getPolicyStatusCache().public oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> getPolicyStatusCache()
public oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> getStatusCacheBridge()
public void setStatusCache(VCSStatusCache cache)
setStatusCacheBridge(oracle.jdeveloper.vcs.cache.StatusCacheBridge<oracle.jdeveloper.vcs.spi.VCSStatus>) and setPolicyStatusCache(oracle.jdeveloper.vcs.cache.StatusCache<oracle.jdeveloper.vcs.spi.VCSStatus>).handleMessage(VCSEBMessage) is
 not defined.cache - the VCSStatusCache.public void setStatusCacheBridge(oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache)
handleMessage(VCSEBMessage) is
 not defined.cache - the StatusCacheBridge.public void setPolicyStatusCache(oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> cache)
handleMessage(VCSEBMessage) is
 not defined.cache - the StatusCache.public URLFilter getURLFilter()
URLFilter.public void setURLFilter(URLFilter filter)
handleMessage(VCSEBMessage) is
 not defined.filter - the required URLFilter.public java.lang.String getSystemId()
public void setSystemId(java.lang.String systemId)
systemId - the VCS extension ID.protected boolean isSaveStateChange(java.net.URL url)
url - the URL to checkprotected void clearStatusCacheParentURLs(java.net.URL url)
url - the URL whose parents should be cleared from the status cache.protected void nodeSaved(java.net.URL url)
nodeSaved(URL[]).url - the URL of the saved object.protected void nodeSaved(java.net.URL[] urls)
urls - the URLs of the saved objects.protected void nodeReloaded(java.net.URL url)
url - the URL of the reloaded object.protected void nodeRenamed(java.net.URL oldUrl,
                           java.net.URL newUrl)
oldUrl - the old URL of the renamed object.newUrl - the new URL of the renamed object.public void handleMessage(VCSEBMessage message)
VCSEBComponentVCSEventBus.handleMessage in interface VCSEBComponentmessage - the message to handle.