src/org/ohmage/service/CampaignServices.java
public void updateCampaign(final String campaignId, 
			final String xml, final String description, 
			final Campaign.RunningState runningState, 
			final Campaign.PrivacyState privacyState,
			final Boolean editable,
			final Collection<String> classesToAdd, 
			final Collection<String> classesToRemove,
			final Map<String, Set<Campaign.Role>> usersAndRolesToAdd, 
			final Map<String, Set<Campaign.Role>> usersAndRolesToRemove) 
			throws ServiceException {
		
		try {
			campaignQueries.updateCampaign(campaignId, xml, description, runningState, privacyState, editable, classesToAdd, classesToRemove, usersAndRolesToAdd, usersAndRolesToRemove);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Updates a campaign. The 'request' and 'campaignId' are required; 
	 * however, the remaining parameters may be null indicating that they 
	 * should not be updated.
	 * 
	 * @param campaignId The campaign's unique identifier.
	 * 
	 * @param xml The new XML for the campaign or null if the XML should not be
	 * 			  updated.
	 * 
	 * @param description The new description for the campaign or null if the
	 * 					  description should not be updated.
	 * 
	 * @param runningState The new running state for the campaign or null if 
	 * 					   the running state should not be updated.
	 * 
	 * @param privacyState The new privacy state for the campaign or null if 
	 * 					   the privacy state should not be updated.
	 * 
	 * @param classesToAdd The collection of classes to associate with the
	 * 					   campaign.
	 * 
	 * @param classesToRemove The collection of classes to disassociate from
	 * 						  the campaign.
	 * 
	 * @param usersAndRolesToAdd A map of usernames to a list of roles that the
	 * 							 users should be granted in the campaign or 
	 * 							 null if no users should be granted any new 
	 * 							 roles.
	 * 
	 * @param usersAndRolesToRemove A map of usernames to a list of roles that
	 * 								should be revoked from the user in the
	 * 								campaign or null if no users should have 
	 * 								any of their roles revoked.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Updates a campaign. The 'request' and 'campaignId' are required;
however, the remaining parameters may be null indicating that they
should not be updated.

@param campaignId The campaign's unique identifier.

@param xml The new XML for the campaign or null if the XML should not be
updated.

@param description The new description for the campaign or null if the
description should not be updated.

@param runningState The new running state for the campaign or null if
the running state should not be updated.

@param privacyState The new privacy state for the campaign or null if
the privacy state should not be updated.

@param classesToAdd The collection of classes to associate with the
campaign.

@param classesToRemove The collection of classes to disassociate from
the campaign.

@param usersAndRolesToAdd A map of usernames to a list of roles that the
users should be granted in the campaign or
null if no users should be granted any new
roles.

@param usersAndRolesToRemove A map of usernames to a list of roles that
should be revoked from the user in the
campaign or null if no users should have
any of their roles revoked.

@throws ServiceException Thrown if there is an error.
Updates a campaign . The ' request ' and ' campaignId ' are required ; however the remaining parameters may be null indicating that they should not be updated . @param campaignId The campaign ' s unique identifier . @param xml The new XML for the campaign or null if the XML should not be updated . @param description The new description for the campaign or null if the description should not be updated . @param runningState The new running state for the campaign or null if the running state should not be updated . @param privacyState The new privacy state for the campaign or null if the privacy state should not be updated . @param classesToAdd The collection of classes to associate with the campaign . @param classesToRemove The collection of classes to disassociate from the campaign . @param usersAndRolesToAdd A map of usernames to a list of roles that the users should be granted in the campaign or null if no users should be granted any new roles . @param usersAndRolesToRemove A map of usernames to a list of roles that should be revoked from the user in the campaign or null if no users should have any of their roles revoked . @throws ServiceException Thrown if there is an error .
public void updateCampaign(final String campaignId, 
			final String xml, final String description, 
			final Campaign.RunningState runningState, 
			final Campaign.PrivacyState privacyState,
			final Boolean editable,
			final Collection<String> classesToAdd, 
			final Collection<String> classesToRemove,
			final Map<String, Set<Campaign.Role>> usersAndRolesToAdd, 
			final Map<String, Set<Campaign.Role>> usersAndRolesToRemove) 
			throws ServiceException {
		try {
			campaignQueries.updateCampaign(campaignId, xml, description, runningState, privacyState, editable, classesToAdd, classesToRemove, usersAndRolesToAdd, usersAndRolesToRemove);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void updateCampaign ( final String campaignId , final String xml , final String description , final Campaign . RunningState runningState , final Campaign . PrivacyState privacyState , final Boolean editable , final Collection < String > classesToAdd , final Collection < String > classesToRemove , final Map < String , Set < Campaign . Role > > usersAndRolesToAdd , final Map < String , Set < Campaign . Role > > usersAndRolesToRemove ) throws ServiceException { try { campaignQueries . updateCampaign ( campaignId , xml , description , runningState , privacyState , editable , classesToAdd , classesToRemove , usersAndRolesToAdd , usersAndRolesToRemove ) ; } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Updates a campaign.
Updates a campaign .