src/org/ohmage/service/UserDocumentServices.java
public void ensureRoleHighEnoughToDisassociateDocumentFromOtherUsers(
			final Document.Role role, final Collection<String> usernames, 
			final String documentId) throws ServiceException {
		
		for(String username : usernames) {
			ensureRoleHighEnoughToDisassociateOtherUserFromDocument(role, username, documentId);
		}
	}
/**
	 * Verifies that a given role has enough permissions to disassociate a
	 * document and each of the users in a collection based on the users' 
	 * individual roles with the document.
	 * 
	 * @param role The maximum role of the user that is attempting to 
	 * 			   disassociate the classes and document. 
	 * 
	 * @param usernames The other users' usernames.
	 * 
	 * @param documentId The document's unique identifier.
	 * 
	 * @throws ServiceException Thrown if the role is not high enough to
	 * 							disassociate a user and document.
	 */
Verifies that a given role has enough permissions to disassociate a
document and each of the users in a collection based on the users'
individual roles with the document.

@param role The maximum role of the user that is attempting to
disassociate the classes and document.

@param usernames The other users' usernames.

@param documentId The document's unique identifier.

@throws ServiceException Thrown if the role is not high enough to
disassociate a user and document.
Verifies that a given role has enough permissions to disassociate a document and each of the users in a collection based on the users ' individual roles with the document . @param role The maximum role of the user that is attempting to disassociate the classes and document . @param usernames The other users ' usernames . @param documentId The document ' s unique identifier . @throws ServiceException Thrown if the role is not high enough to disassociate a user and document .
public void ensureRoleHighEnoughToDisassociateDocumentFromOtherUsers(
			final Document.Role role, final Collection<String> usernames, 
			final String documentId) throws ServiceException {
		for(String username : usernames) {
			ensureRoleHighEnoughToDisassociateOtherUserFromDocument(role, username, documentId);
		}
	}
public void ensureRoleHighEnoughToDisassociateDocumentFromOtherUsers ( final Document . Role role , final Collection < String > usernames , final String documentId ) throws ServiceException { for ( String username : usernames ) { ensureRoleHighEnoughToDisassociateOtherUserFromDocument ( role , username , documentId ) ; } }
Verifies that a given role has enough permissions to disassociate a
 document and each of the users in a collection based on the users'
 individual roles with the document.
Verifies that a given role has enough permissions to disassociate a document and each of the users in a collection based on the users ' individual roles with the document .