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

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

@param classIds The classes' unique identifiers.

@param documentId The document's unique identifier.

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