src/org/ohmage/domain/UserInformation.java
public void addCampaigns(
			final Map<String, Set<Campaign.Role>> campaigns)
			throws DomainException {
		
		if(campaigns == null) {
			throw new DomainException("The campaigns map is null.");
		}
		
		if(this.campaigns == null) {
			this.campaigns = 
					new HashMap<String, Set<Campaign.Role>>(campaigns);
		}
		else {
			campaigns.putAll(campaigns);
		}
	}
/**
	 * Adds a set of campaigns and the user's respective roles. The map cannot 
	 * be null, but it may be empty. None of the sets of roles may be null or 
	 * empty.
	 * 
	 * @param campaigns The map of campaign IDs to their roles for this user.
	 * 
	 * @throws DomainException The map was null or one of the lists of roles 
	 * 						   was null or empty.
	 */
Adds a set of campaigns and the user's respective roles. The map cannot
be null, but it may be empty. None of the sets of roles may be null or
empty.

@param campaigns The map of campaign IDs to their roles for this user.

@throws DomainException The map was null or one of the lists of roles
was null or empty.
Adds a set of campaigns and the user ' s respective roles . The map cannot be null but it may be empty . None of the sets of roles may be null or empty . @param campaigns The map of campaign IDs to their roles for this user . @throws DomainException The map was null or one of the lists of roles was null or empty .
public void addCampaigns(
			final Map<String, Set<Campaign.Role>> campaigns)
			throws DomainException {
		if(campaigns == null) {
			throw new DomainException("The campaigns map is null.");
		}
		if(this.campaigns == null) {
			this.campaigns = 
					new HashMap<String, Set<Campaign.Role>>(campaigns);
		}
		else {
			campaigns.putAll(campaigns);
		}
	}
public void addCampaigns ( final Map < String , Set < Campaign . Role > > campaigns ) throws DomainException { if ( campaigns == null ) { throw new DomainException ( "The campaigns map is null." ) ; } if ( this . campaigns == null ) { this . campaigns = new HashMap < String , Set < Campaign . Role > > ( campaigns ) ; } else { campaigns . putAll ( campaigns ) ; } }
Adds a set of campaigns and the user's respective roles.
Adds a set of campaigns and the user ' s respective roles .