org.jfree.repository
Interface ContentLocation

All Superinterfaces:
ContentEntity
All Known Implementing Classes:
DummyContentLocation, FileContentLocation, StreamContentLocation, ZipContentLocation

public interface ContentLocation
extends ContentEntity

This represents a container in the repository. If the repository is a filesystem, this will be a directory.

Author:
Thomas Morgner

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 interface org.jfree.repository.ContentEntity
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute
 

Method Detail

listContents

ContentEntity[] listContents()
                             throws ContentIOException
Throws:
ContentIOException

getEntry

ContentEntity getEntry(java.lang.String name)
                       throws ContentIOException
Throws:
ContentIOException

createItem

ContentItem createItem(java.lang.String name)
                       throws ContentCreationException
Creates a new data item in the current location. This method must never return null.

Parameters:
name -
Returns:
Throws:
ContentCreationException - if the item could not be created.

createLocation

ContentLocation createLocation(java.lang.String name)
                               throws ContentCreationException
Throws:
ContentCreationException

exists

boolean exists(java.lang.String name)