src/org/ohmage/query/IDocumentQueries.java
String createDocument(byte[] contents, String name, String description,
			Document.PrivacyState privacyState,
			Map<String, Document.Role> campaignRoleMap,
			Map<String, Document.Role> classRoleMap, String creatorUsername)
			throws DataAccessException;
/**
	 * Creates a new document entry in the database. It saves the file to disk
	 * and the database entry contains a reference to that file.
	 * 
	 * @param contents The contents of the file.
	 * 
	 * @param name The name of the file.
	 * 
	 * @param description A description for the file.
	 * 
	 * @param privacyState The initial privacy state of the file.
	 * 
	 * @param campaignRoleMap A Map of campaign IDs to document roles for which
	 * 						  this document will have an initial association.
	 * 
	 * @param classRoleMap A Map of class IDs to document roles for which this
	 * 					   document will have an initial association.
	 * 
	 * @param creatorUsername The username of the creator of this document.
	 * 
	 * @return Returns a unique identifier for this document.
	 */
Creates a new document entry in the database. It saves the file to disk
and the database entry contains a reference to that file.

@param contents The contents of the file.

@param name The name of the file.

@param description A description for the file.

@param privacyState The initial privacy state of the file.

@param campaignRoleMap A Map of campaign IDs to document roles for which
this document will have an initial association.

@param classRoleMap A Map of class IDs to document roles for which this
document will have an initial association.

@param creatorUsername The username of the creator of this document.

@return Returns a unique identifier for this document.
Creates a new document entry in the database . It saves the file to disk and the database entry contains a reference to that file . @param contents The contents of the file . @param name The name of the file . @param description A description for the file . @param privacyState The initial privacy state of the file . @param campaignRoleMap A Map of campaign IDs to document roles for which this document will have an initial association . @param classRoleMap A Map of class IDs to document roles for which this document will have an initial association . @param creatorUsername The username of the creator of this document . @return Returns a unique identifier for this document .
String createDocument(byte[] contents, String name, String description,
			Document.PrivacyState privacyState,
			Map<String, Document.Role> campaignRoleMap,
			Map<String, Document.Role> classRoleMap, String creatorUsername)
			throws DataAccessException;
String createDocument ( byte [ ] contents , String name , String description , Document . PrivacyState privacyState , Map < String , Document . Role > campaignRoleMap , Map < String , Document . Role > classRoleMap , String creatorUsername ) throws DataAccessException ;
Creates a new document entry in the database.
Creates a new document entry in the database .