Extension SDK 9.0.5

oracle.jdeveloper.vcs.spi
Class VCSURLFileSystemHelper

java.lang.Object
  extended byoracle.ide.net.URLFileSystemHelper
      extended byoracle.ide.net.URLFileSystemHelperDecorator
          extended byoracle.jdeveloper.vcs.spi.VCSURLFileSystemHelper

public class VCSURLFileSystemHelper
extends URLFileSystemHelperDecorator

Base class for URLFileSystem helper decorator objects suitable for version system integration.

Since:
9.0.5

Field Summary
static java.lang.String DEFAULT_AUTO_CHECK_OUT_COMMENTS
           
 
Fields inherited from class oracle.ide.net.URLFileSystemHelperDecorator
_helper
 
Constructor Summary
VCSURLFileSystemHelper(URLFileSystemHelper helper)
          Constructor.
 
Method Summary
 boolean delete(java.net.URL url)
          Deletes the content pointed to by the specified URL.
protected  boolean deleteImpl(java.net.URL url)
          Deletes the given URL through the version system.
 boolean isEnabled()
          Asks whether the file system helper decorator is enabled.
 boolean renameTo(java.net.URL oldUrl, java.net.URL newUrl)
          Renames the resource indicated by the first URL to the name indicated by the second URL.
protected  boolean renameToImpl(java.net.URL oldUrl, java.net.URL newUrl)
          Renames the given URL through the version system.
 void setEnabled(boolean enabled)
          Sets whether the file system helper decorator is enabled.
 boolean setReadOnly(java.net.URL url, boolean readOnly)
          Sets the read-only status of the resource indicated by the URL according to the specified readOnly flag.
protected  boolean setReadWrite(java.net.URL url)
          Sets the given URL read-write through the version system.
 
Methods inherited from class oracle.ide.net.URLFileSystemHelperDecorator
canCreate, canonicalize, canRead, canWrite, convertSuffix, createTempFile, ensureSuffix, equals, exists, getBaseParent, getDefaultIcon, getFileName, getHelper, getLength, getName, getParent, getPath, getPathNoExt, getPlatformPathName, getSuffix, getSystemIcon, hasSuffix, isBaseURLFor, isDirectory, isDirectoryPath, isHidden, isReadOnly, isRegularFile, isValid, lastModified, list, list, listRoots, ls, ls, mkdir, mkdirs, openInputStream, openOutputStream, setLastModified, toDisplayString, toEncodedString, toRelativeSpec, toRelativeSpec
 
Methods inherited from class oracle.ide.net.URLFileSystemHelper
appendRelativePath, areEqual, areEqualPathElems, haveSameAuthority, haveSameHost, haveSamePath, haveSamePort, haveSameProtocol, haveSameQuery, haveSameRef, haveSameUserInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_AUTO_CHECK_OUT_COMMENTS

public static final java.lang.String DEFAULT_AUTO_CHECK_OUT_COMMENTS
Constructor Detail

VCSURLFileSystemHelper

public VCSURLFileSystemHelper(URLFileSystemHelper helper)
Constructor.

Parameters:
helper - the delegate helper object.
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Sets whether the file system helper decorator is enabled.


isEnabled

public boolean isEnabled()
Asks whether the file system helper decorator is enabled.

Returns:
the enabled value.

delete

public boolean delete(java.net.URL url)
Description copied from class: URLFileSystemHelper
Deletes the content pointed to by the specified URL. If the content is a file (or analogous to a file), then the file is removed from its directory (or container). If the content is a directory (or analogous to a directory), then the directory is removed only if it is empty (i.e. contains no other files or directories).

The default implementation simply returns false without doing anything.

Overrides:
delete in class URLFileSystemHelperDecorator

renameTo

public boolean renameTo(java.net.URL oldUrl,
                        java.net.URL newUrl)
Description copied from class: URLFileSystemHelper
Renames the resource indicated by the first URL to the name indicated by the second URL.

The default implementation simply returns false without doing anything.

Overrides:
renameTo in class URLFileSystemHelperDecorator

setReadOnly

public boolean setReadOnly(java.net.URL url,
                           boolean readOnly)
Description copied from class: URLFileSystemHelper
Sets the read-only status of the resource indicated by the URL according to the specified readOnly flag. The return value indicates whether or not the setting of the read-only flag succeeded.

The default implementation always returns false without doing anything.

Overrides:
setReadOnly in class URLFileSystemHelperDecorator

deleteImpl

protected boolean deleteImpl(java.net.URL url)
Deletes the given URL through the version system. Override this method to perform a file removal.

Parameters:
url - the URL to be deleted.
Returns:
true if and only if the file or directory is successfully deleted; false otherwise.
See Also:
URLFileSystemHelper.delete(java.net.URL)

renameToImpl

protected boolean renameToImpl(java.net.URL oldUrl,
                               java.net.URL newUrl)
Renames the given URL through the version system. Override this method to perform a file move.

Parameters:
oldUrl - the URL to be renamed.
newUrl - the new URL location after renaming.
Returns:
true if and only if the file or directory is successfully renamed; false otherwise.
See Also:
URLFileSystemHelper.renameTo(java.net.URL, java.net.URL)

setReadWrite

protected boolean setReadWrite(java.net.URL url)
Sets the given URL read-write through the version system. Override this method to perform a file checkout.

Parameters:
url - the URL to be made read-write.
Returns:
true if and only if the file or directory is successfully made read-write; false otherwise.
See Also:
URLFileSystemHelper.setReadOnly(java.net.URL, boolean)

Extension SDK

 

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