|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--audiojury.proxy.ResultPlugin
Deals with result storage details.
ProjectResults
Constructor Summary | |
ResultPlugin()
Constructor |
Method Summary | |
int |
autoImport()
Fetches ProjectResults from the shared folder and imports them in the administrator program. |
void |
createReport(java.lang.String filename,
java.util.Vector results)
Creates a report file from the results of a Project .
|
protected ConfigManager |
getConfigManager()
Returns the unique instance of ConfigManager . |
int |
manualImport(java.io.File[] resfiles)
Fetches ProjectResults from the given files and imports them in the admininstrator program. |
java.util.Vector |
openResults(java.lang.String projname,
int state)
Returns all the ProjectResults of a specific Project . |
void |
saveResults(ProjectResults results)
Saves ProjectResults from the client. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultPlugin()
Method Detail |
public java.util.Vector openResults(java.lang.String projname, int state) throws ResultOperationException
ProjectResults
of a specific Project
.
openResults
in interface ResultProcessing
projname
- The name of the Project
to retrive the ProjectResults
from.state
- In which state to look for the Project
.
ProjectResults
.
ResultOperationException
- if there was an unhandled exception while performing the operation.public void createReport(java.lang.String filename, java.util.Vector results) throws ResultOperationException
Project
.
The report file is comma-separated and can be opened in a spreadsheet
program such as Microsoft Excel. Reports are saved in the directory called
reports in the AudioJury base directory.
createReport
in interface ResultProcessing
filename
- The name of the report to create.results
- A vector containing ProjectResults
objects.
ResultOperationException
- if there was an unhandled exception while performing the operation.public int manualImport(java.io.File[] resfiles) throws ResultOperationException
ProjectResults
from the given files and imports them in the admininstrator program.
manualImport
in interface ResultProcessing
resfiles
- An array of files containing project results (a number of ProjectResults
).
ResultOperationException
- if there was an unhandled exception while performing the operation.public int autoImport() throws ResultOperationException, NoSharedFolderException
ProjectResults
from the shared folder and imports them in the administrator program.
autoImport
in interface ResultProcessing
ProjectResults
imported.
ResultOperationException
- if there was an unhandled exception while performing the operation.
NoSharedFolderException
- if the shared folder could not be found.public void saveResults(ProjectResults results) throws ResultOperationException
ProjectResults
from the client.
saveResults
in interface ResultProcessing
results
- The ProjectResults
to save.
ResultOperationException
- if there was an unhandled exception while performing the operation.protected ConfigManager getConfigManager()
ConfigManager
.
ConfigManager
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |