src/org/ohmage/query/IDocumentQueries.java
void updateDocument(String documentId, byte[] contents, String name,
			String description, Document.PrivacyState privacyState,
			Map<String, Document.Role> campaignAndRolesToAdd,
			List<String> campaignsToRemove,
			Map<String, Document.Role> classAndRolesToAdd,
			Collection<String> classesToRemove,
			Map<String, Document.Role> userAndRolesToAdd,
			Collection<String> usersToRemove) throws DataAccessException;
/**
	 * Updates a document. The 'documentId' cannot be null as this is used to
	 * indicate which document is being updated, but the remaining parameters
	 * may all be null.
	 * 
	 * @param documentId The unique identifier for the document to be updated.
	 * 
	 * @param contents The new contents of the document.
	 * 
	 * @param name The new name of the document.
	 * 
	 * @param description The new description for the document.
	 * 
	 * @param privacyState The new privacy state for the document.
	 * 
	 * @param campaignAndRolesToAdd A Map of campaign IDs to document roles 
	 * 								where the document should be associated to
	 * 								the campaign with the given role or, if
	 * 								already associated, should have its role
	 * 								updated with the new role.
	 * 
	 * @param campaignsToRemove A List of campaign IDs that should no longer be
	 * 							associated with this document.
	 * 
	 * @param classAndRolesToAdd A Map of class IDs to document roles where the
	 * 							 document should be associated to the class 
	 * 							 with the given role or, if already associated,
	 * 							 should have its role updated with the new 
	 * 							 role.
	 * 
	 * @param classesToRemove A List of class IDs that should no longer be
	 * 						  associated with this document.
	 * 
	 * @param userAndRolesToAdd A Map of usernames to document roles where the
	 * 							document should be associated to the user with
	 * 							the given role or, if already associated, 
	 * 							should have its role updated with the new role.
	 * 
	 * @param usersToRemove A List of usernames that should no longer be 
	 * 						associated with this document.
	 */
Updates a document. The 'documentId' cannot be null as this is used to
indicate which document is being updated, but the remaining parameters
may all be null.

@param documentId The unique identifier for the document to be updated.

@param contents The new contents of the document.

@param name The new name of the document.

@param description The new description for the document.

@param privacyState The new privacy state for the document.

@param campaignAndRolesToAdd A Map of campaign IDs to document roles
where the document should be associated to
the campaign with the given role or, if
already associated, should have its role
updated with the new role.

@param campaignsToRemove A List of campaign IDs that should no longer be
associated with this document.

@param classAndRolesToAdd A Map of class IDs to document roles where the
document should be associated to the class
with the given role or, if already associated,
should have its role updated with the new
role.

@param classesToRemove A List of class IDs that should no longer be
associated with this document.

@param userAndRolesToAdd A Map of usernames to document roles where the
document should be associated to the user with
the given role or, if already associated,
should have its role updated with the new role.

@param usersToRemove A List of usernames that should no longer be
associated with this document.
Updates a document . The ' documentId ' cannot be null as this is used to indicate which document is being updated but the remaining parameters may all be null . @param documentId The unique identifier for the document to be updated . @param contents The new contents of the document . @param name The new name of the document . @param description The new description for the document . @param privacyState The new privacy state for the document . @param campaignAndRolesToAdd A Map of campaign IDs to document roles where the document should be associated to the campaign with the given role or if already associated should have its role updated with the new role . @param campaignsToRemove A List of campaign IDs that should no longer be associated with this document . @param classAndRolesToAdd A Map of class IDs to document roles where the document should be associated to the class with the given role or if already associated should have its role updated with the new role . @param classesToRemove A List of class IDs that should no longer be associated with this document . @param userAndRolesToAdd A Map of usernames to document roles where the document should be associated to the user with the given role or if already associated should have its role updated with the new role . @param usersToRemove A List of usernames that should no longer be associated with this document .
void updateDocument(String documentId, byte[] contents, String name,
			String description, Document.PrivacyState privacyState,
			Map<String, Document.Role> campaignAndRolesToAdd,
			List<String> campaignsToRemove,
			Map<String, Document.Role> classAndRolesToAdd,
			Collection<String> classesToRemove,
			Map<String, Document.Role> userAndRolesToAdd,
			Collection<String> usersToRemove) throws DataAccessException;
void updateDocument ( String documentId , byte [ ] contents , String name , String description , Document . PrivacyState privacyState , Map < String , Document . Role > campaignAndRolesToAdd , List < String > campaignsToRemove , Map < String , Document . Role > classAndRolesToAdd , Collection < String > classesToRemove , Map < String , Document . Role > userAndRolesToAdd , Collection < String > usersToRemove ) throws DataAccessException ;
Updates a document.
Updates a document .