org.pentaho.platform.repository.solution.filebased
Class SolutionRepositoryVfsFileObject

java.lang.Object
  extended by org.pentaho.platform.repository.solution.filebased.SolutionRepositoryVfsFileObject
All Implemented Interfaces:
org.apache.commons.vfs.FileObject

public class SolutionRepositoryVfsFileObject
extends Object
implements org.apache.commons.vfs.FileObject


Constructor Summary
SolutionRepositoryVfsFileObject(String fileRef, ISolutionRepository repository)
           
SolutionRepositoryVfsFileObject(String fileRef, ISolutionRepository repository, org.apache.commons.vfs.FileType type)
           
 
Method Summary
 boolean canRenameTo(org.apache.commons.vfs.FileObject arg0)
           
 void close()
           
 void copyFrom(org.apache.commons.vfs.FileObject arg0, org.apache.commons.vfs.FileSelector arg1)
           
 void createFile()
           
 void createFolder()
           
 boolean delete()
           
 int delete(org.apache.commons.vfs.FileSelector arg0)
           
 boolean exists()
           
 org.apache.commons.vfs.FileObject[] findFiles(org.apache.commons.vfs.FileSelector arg0)
           
 void findFiles(org.apache.commons.vfs.FileSelector arg0, boolean arg1, List arg2)
           
 org.apache.commons.vfs.FileObject getChild(String arg0)
           
 org.apache.commons.vfs.FileObject[] getChildren()
           
 org.apache.commons.vfs.FileContent getContent()
           
 org.apache.commons.vfs.operations.FileOperations getFileOperations()
           
 String getFileRef()
           
 org.apache.commons.vfs.FileSystem getFileSystem()
           
 org.apache.commons.vfs.FileName getName()
           
 org.apache.commons.vfs.FileObject getParent()
           
 ISolutionRepository getRepository()
           
 org.apache.commons.vfs.FileType getType()
           
 URL getURL()
           
 boolean isAttached()
           
 boolean isContentOpen()
           
 boolean isHidden()
           
 boolean isReadable()
           
 boolean isWriteable()
           
 void moveTo(org.apache.commons.vfs.FileObject arg0)
           
 void refresh()
           
 org.apache.commons.vfs.FileObject resolveFile(String arg0)
           
 org.apache.commons.vfs.FileObject resolveFile(String arg0, org.apache.commons.vfs.NameScope arg1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolutionRepositoryVfsFileObject

public SolutionRepositoryVfsFileObject(String fileRef,
                                       ISolutionRepository repository)

SolutionRepositoryVfsFileObject

public SolutionRepositoryVfsFileObject(String fileRef,
                                       ISolutionRepository repository,
                                       org.apache.commons.vfs.FileType type)
Method Detail

getRepository

public ISolutionRepository getRepository()

getFileRef

public String getFileRef()

getName

public org.apache.commons.vfs.FileName getName()
Specified by:
getName in interface org.apache.commons.vfs.FileObject

getURL

public URL getURL()
           throws org.apache.commons.vfs.FileSystemException
Specified by:
getURL in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

exists

public boolean exists()
               throws org.apache.commons.vfs.FileSystemException
Specified by:
exists in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

isHidden

public boolean isHidden()
                 throws org.apache.commons.vfs.FileSystemException
Specified by:
isHidden in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

isReadable

public boolean isReadable()
                   throws org.apache.commons.vfs.FileSystemException
Specified by:
isReadable in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

isWriteable

public boolean isWriteable()
                    throws org.apache.commons.vfs.FileSystemException
Specified by:
isWriteable in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

getType

public org.apache.commons.vfs.FileType getType()
                                        throws org.apache.commons.vfs.FileSystemException
Specified by:
getType in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

getParent

public org.apache.commons.vfs.FileObject getParent()
                                            throws org.apache.commons.vfs.FileSystemException
Specified by:
getParent in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

getFileSystem

public org.apache.commons.vfs.FileSystem getFileSystem()
Specified by:
getFileSystem in interface org.apache.commons.vfs.FileObject

getChildren

public org.apache.commons.vfs.FileObject[] getChildren()
                                                throws org.apache.commons.vfs.FileSystemException
Specified by:
getChildren in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

getChild

public org.apache.commons.vfs.FileObject getChild(String arg0)
                                           throws org.apache.commons.vfs.FileSystemException
Specified by:
getChild in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

resolveFile

public org.apache.commons.vfs.FileObject resolveFile(String arg0,
                                                     org.apache.commons.vfs.NameScope arg1)
                                              throws org.apache.commons.vfs.FileSystemException
Specified by:
resolveFile in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

resolveFile

public org.apache.commons.vfs.FileObject resolveFile(String arg0)
                                              throws org.apache.commons.vfs.FileSystemException
Specified by:
resolveFile in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

findFiles

public org.apache.commons.vfs.FileObject[] findFiles(org.apache.commons.vfs.FileSelector arg0)
                                              throws org.apache.commons.vfs.FileSystemException
Specified by:
findFiles in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

findFiles

public void findFiles(org.apache.commons.vfs.FileSelector arg0,
                      boolean arg1,
                      List arg2)
               throws org.apache.commons.vfs.FileSystemException
Specified by:
findFiles in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

delete

public boolean delete()
               throws org.apache.commons.vfs.FileSystemException
Specified by:
delete in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

delete

public int delete(org.apache.commons.vfs.FileSelector arg0)
           throws org.apache.commons.vfs.FileSystemException
Specified by:
delete in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

createFolder

public void createFolder()
                  throws org.apache.commons.vfs.FileSystemException
Specified by:
createFolder in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

createFile

public void createFile()
                throws org.apache.commons.vfs.FileSystemException
Specified by:
createFile in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

copyFrom

public void copyFrom(org.apache.commons.vfs.FileObject arg0,
                     org.apache.commons.vfs.FileSelector arg1)
              throws org.apache.commons.vfs.FileSystemException
Specified by:
copyFrom in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

moveTo

public void moveTo(org.apache.commons.vfs.FileObject arg0)
            throws org.apache.commons.vfs.FileSystemException
Specified by:
moveTo in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

canRenameTo

public boolean canRenameTo(org.apache.commons.vfs.FileObject arg0)
Specified by:
canRenameTo in interface org.apache.commons.vfs.FileObject

getContent

public org.apache.commons.vfs.FileContent getContent()
                                              throws org.apache.commons.vfs.FileSystemException
Specified by:
getContent in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

close

public void close()
           throws org.apache.commons.vfs.FileSystemException
Specified by:
close in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

refresh

public void refresh()
             throws org.apache.commons.vfs.FileSystemException
Specified by:
refresh in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException

isAttached

public boolean isAttached()
Specified by:
isAttached in interface org.apache.commons.vfs.FileObject

isContentOpen

public boolean isContentOpen()
Specified by:
isContentOpen in interface org.apache.commons.vfs.FileObject

getFileOperations

public org.apache.commons.vfs.operations.FileOperations getFileOperations()
                                                                   throws org.apache.commons.vfs.FileSystemException
Specified by:
getFileOperations in interface org.apache.commons.vfs.FileObject
Throws:
org.apache.commons.vfs.FileSystemException