portaview.server
Class Repository

java.lang.Object
  extended byportaview.server.Repository

public class Repository
extends java.lang.Object

Represents a photo repository. A repository is a mechanism for the PortaView program to load the picutres from the disk.

Version:
$Id: Repository.java,v 1.2 2003/12/10 06:18:57 wlee Exp $
Author:
William Lee

Constructor Summary
Repository(java.io.File albumDir)
          Creates a photo repository.
 
Method Summary
 Album getAlbum(java.lang.String name)
          Returns an album with a particular name.
 java.io.File getAlbumDir()
           
 java.util.List listAlbums()
          Returns a List of Album that are available in the repository.
 void setAlbumDir(java.io.File albumDir)
          Sets the album directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository(java.io.File albumDir)
Creates a photo repository.

Parameters:
albumDir -
Method Detail

getAlbumDir

public java.io.File getAlbumDir()
Returns:
the album directory

setAlbumDir

public void setAlbumDir(java.io.File albumDir)
Sets the album directory.

Parameters:
albumDir - the album directory

listAlbums

public java.util.List listAlbums()
Returns a List of Album that are available in the repository.

Returns:
list of album

getAlbum

public Album getAlbum(java.lang.String name)
Returns an album with a particular name.

Parameters:
name - name of album
Returns:
the album


Copyright © 2003 The PortaView Team. All Rights Reserved.