org.jfree.repository.file

Class FileContentLocation

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, File backend)
FileContentLocation(Repository repository, File backend)

Method Summary

ContentItem
createItem(String name)
Creates a new data item in the current location.
ContentLocation
createLocation(String name)
boolean
exists(String name)
ContentEntity
getEntry(String name)
ContentEntity[]
listContents()

Methods inherited from class org.jfree.repository.file.FileContentEntity

delete, getAttribute, getBackend, getContentId, getName, getParent, getRepository, setAttribute

Constructor Details

FileContentLocation

public FileContentLocation(ContentLocation parent,
                           File backend)

FileContentLocation

public FileContentLocation(Repository repository,
                           File backend)

Method Details

createItem

public ContentItem createItem(String name)
            throws ContentCreationException
Creates a new data item in the current location. This method must never return null.
Specified by:
createItem in interface ContentLocation
Parameters:
name -
Returns:
Throws:
ContentCreationException - if the item could not be created.

createLocation

public ContentLocation createLocation(String name)
            throws ContentCreationException
Specified by:
createLocation in interface ContentLocation

exists

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

getEntry

public ContentEntity getEntry(String name)
            throws ContentIOException
Specified by:
getEntry in interface ContentLocation

listContents

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