src/org/ohmage/service/CampaignServices.java
public void createCampaign(
			final Campaign campaign,
			final Collection<String> classIds, 
			final String creatorUsername) 
			throws ServiceException {
		
		try {
			campaignQueries
				.createCampaign(campaign, classIds, creatorUsername);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Creates a new campaign.
	 * 
	 * @param campaignId The new campaign's unique identifier.
	 * 
	 * @param name The new campaign's name.
	 * 
	 * @param xml The new campaign's XML.
	 * 
	 * @param description The new campaign's description.
	 * 
	 * @param runningState The new campaign's initial running state.
	 * 
	 * @param privacyState The new campaign's initial privacy state.
	 * 
	 * @param classIds A List of class identifiers for classes that are going
	 * 				   to be initially associated with the campaign.
	 * 
	 * @param creatorUsername The username of the user that will be set as the
	 * 						  author.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Creates a new campaign.

@param campaignId The new campaign's unique identifier.

@param name The new campaign's name.

@param xml The new campaign's XML.

@param description The new campaign's description.

@param runningState The new campaign's initial running state.

@param privacyState The new campaign's initial privacy state.

@param classIds A List of class identifiers for classes that are going
to be initially associated with the campaign.

@param creatorUsername The username of the user that will be set as the
author.

@throws ServiceException Thrown if there is an error.
Creates a new campaign . @param campaignId The new campaign ' s unique identifier . @param name The new campaign ' s name . @param xml The new campaign ' s XML . @param description The new campaign ' s description . @param runningState The new campaign ' s initial running state . @param privacyState The new campaign ' s initial privacy state . @param classIds A List of class identifiers for classes that are going to be initially associated with the campaign . @param creatorUsername The username of the user that will be set as the author . @throws ServiceException Thrown if there is an error .
public void createCampaign(
			final Campaign campaign,
			final Collection<String> classIds, 
			final String creatorUsername) 
			throws ServiceException {
		try {
			campaignQueries
				.createCampaign(campaign, classIds, creatorUsername);
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void createCampaign ( final Campaign campaign , final Collection < String > classIds , final String creatorUsername ) throws ServiceException { try { campaignQueries . createCampaign ( campaign , classIds , creatorUsername ) ; } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Creates a new campaign.
Creates a new campaign .