org.apache.lokahi.core.api.file
Class FileModel

java.lang.Object
  extended by org.apache.lokahi.core.common.interfaces.LokahiModel<File>
      extended by org.apache.lokahi.core.api.file.FileModel

public class FileModel
extends LokahiModel<File>

Version:
$Id: FileModel.java,v 1.3 2006/03/07 20:18:47 drtobes Exp $
Author:
Stephen Toback

Field Summary
 
Fields inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jp, logger, tpe
 
Constructor Summary
FileModel()
           
 
Method Summary
 void addFile(User u, File fi, Function f)
           
 void deleteFile(User u, File fi, Function f)
           
 File getObject(int id)
           
 java.util.Collection<File> getObjects()
           
 void updateFile(User u, File fi, Function f)
           
 File viewFile(int id)
           
 java.util.Collection<File> viewFiles()
           
 
Methods inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jpInit, jpInit, jpInit, jpInit, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileModel

public FileModel()
Method Detail

addFile

public void addFile(User u,
                    File fi,
                    Function f)
             throws AuthorizationException,
                    TMCIllegalArgumentException,
                    java.sql.SQLException,
                    java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

deleteFile

public void deleteFile(User u,
                       File fi,
                       Function f)
                throws java.sql.SQLException,
                       AuthorizationException,
                       TMCIllegalArgumentException
Throws:
java.sql.SQLException
AuthorizationException
TMCIllegalArgumentException

updateFile

public void updateFile(User u,
                       File fi,
                       Function f)
                throws AuthorizationException,
                       TMCIllegalArgumentException,
                       java.sql.SQLException,
                       java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

viewFile

public File viewFile(int id)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

viewFiles

public java.util.Collection<File> viewFiles()
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getObjects

public java.util.Collection<File> getObjects()
                                      throws java.sql.SQLException
Specified by:
getObjects in class LokahiModel<File>
Throws:
java.sql.SQLException

getObject

public File getObject(int id)
               throws java.sql.SQLException
Specified by:
getObject in class LokahiModel<File>
Throws:
java.sql.SQLException