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

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

@param campaignIds The campaigns' unique identifiers.

@param documentId The document's unique identifier.

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