org.jfree.repository.file
Class FileContentLocation

java.lang.Object
  extended by org.jfree.repository.file.FileContentEntity
      extended by org.jfree.repository.file.FileContentLocation
All Implemented Interfaces:
ContentEntity, ContentLocation

public class FileContentLocation
extends FileContentEntity
implements ContentLocation

Creation-Date: 13.11.2006, 12:01:11

Author:
Thomas Morgner

Constructor Summary
FileContentLocation(ContentLocation parent, java.io.File backend)
           
FileContentLocation(Repository repository, java.io.File backend)
           
 
Method Summary
 ContentItem createItem(java.lang.String name)
          Creates a new data item in the current location.
 ContentLocation createLocation(java.lang.String name)
           
 boolean exists(java.lang.String name)
           
 ContentEntity getEntry(java.lang.String name)
           
 ContentEntity[] listContents()
           
 
Methods inherited from class org.jfree.repository.file.FileContentEntity
delete, getAttribute, getBackend, getContentId, getName, getParent, getRepository, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.repository.ContentEntity
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute
 

Constructor Detail

FileContentLocation

public FileContentLocation(ContentLocation parent,
                           java.io.File backend)
                    throws ContentIOException
Throws:
ContentIOException

FileContentLocation

public FileContentLocation(Repository repository,
                           java.io.File backend)
                    throws ContentIOException
Throws:
ContentIOException
Method Detail

listContents

public ContentEntity[] listContents()
                             throws ContentIOException
Specified by:
listContents in interface ContentLocation
Throws:
ContentIOException

getEntry

public ContentEntity getEntry(java.lang.String name)
                       throws ContentIOException
Specified by:
getEntry in interface ContentLocation
Throws:
ContentIOException

createItem

public ContentItem createItem(java.lang.String name)
                       throws ContentCreationException
Description copied from interface: ContentLocation
Creates a new data item in the current location. This method must never return null.

Specified by:
createItem in interface ContentLocation
Returns:
Throws:
ContentCreationException - if the item could not be created.

createLocation

public ContentLocation createLocation(java.lang.String name)
                               throws ContentCreationException
Specified by:
createLocation in interface ContentLocation
Throws:
ContentCreationException

exists

public boolean exists(java.lang.String name)
Specified by:
exists in interface ContentLocation