org.sakaiproject.tool.assessment.business.entity
Class FileNamer

java.lang.Object
  extended by org.sakaiproject.tool.assessment.business.entity.FileNamer

public class FileNamer
extends Object

Copyright: Copyright (c) 2003

Organization: Stanford University

This class implements common methods for describing data needed to record/save and retrieve audio recordings.

Usage (hypothetical example):

RecordingData rd = new RecordingData( agent_name, agent_id, course_name, course_id); log.debug("file" + rd.getFileName() + "." + rd.getFileExtension());

Version:
$Id $
Author:
Ed Smiley

Constructor Summary
FileNamer()
           
 
Method Summary
static void main(String[] args)
          DOCUMENTATION PENDING
static String make(String agent_name, String agent_id, String course_assignment_context)
          Makes a unique file name from the data supplied.
static void unitTest()
          unit test for use with jUnit etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNamer

public FileNamer()
Method Detail

make

public static String make(String agent_name,
                          String agent_id,
                          String course_assignment_context)
Makes a unique file name from the data supplied.

Parameters:
agent_name - The name of the person uploading the file
agent_id - The id code of the person uploading the file
course_assignment_context - The name of the course, assignment, part, quetion etc.
Returns:
a meaningful file name

unitTest

public static void unitTest()
unit test for use with jUnit etc.


main

public static void main(String[] args)
DOCUMENTATION PENDING

Parameters:
args - DOCUMENTATION PENDING


Copyright © 2005-2012 Sakai Project. All Rights Reserved.