edu.mssm.crover.ims.submissions
Class SubmissionManager

java.lang.Object
  |
  +--edu.mssm.crover.ims.IMSObject
        |
        +--edu.mssm.crover.ims.IMSManager
              |
              +--edu.mssm.crover.ims.submissions.SubmissionManager

public class SubmissionManager
extends IMSManager

SubmissionManager Contains all business logic relating to Submissions


Constructor Summary
SubmissionManager(TransactionManager tm)
           
 
Method Summary
 void addFile(Submission subm, byte[] file, java.lang.String fname)
           
 Submission create(IMSUser owner, java.lang.String title)
           
 Submission create(java.lang.String ownerUsername, java.lang.String password, java.lang.String title)
           
 void insert(Submission newSubmission)
           
 Submission lookup(java.lang.String owner, java.lang.String title)
           
 java.util.ArrayList multiLookup(java.lang.String title, java.lang.String fname, java.lang.String owner)
           
 boolean remove(Submission oldSubmission)
           
 
Methods inherited from class edu.mssm.crover.ims.IMSObject
debug, debug, error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmissionManager

public SubmissionManager(TransactionManager tm)
Method Detail

create

public Submission create(java.lang.String ownerUsername,
                         java.lang.String password,
                         java.lang.String title)
                  throws SubmissionOwnerNotFoundException
SubmissionOwnerNotFoundException

create

public Submission create(IMSUser owner,
                         java.lang.String title)

addFile

public void addFile(Submission subm,
                    byte[] file,
                    java.lang.String fname)
             throws java.io.IOException
Throws:
java.io.IOException - when an error occurs writing file to Blob NOTE: can only be accessed inside a transaction as Blob handling requires a transaction context

insert

public void insert(Submission newSubmission)

remove

public boolean remove(Submission oldSubmission)

lookup

public Submission lookup(java.lang.String owner,
                         java.lang.String title)

multiLookup

public java.util.ArrayList multiLookup(java.lang.String title,
                                       java.lang.String fname,
                                       java.lang.String owner)


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.