package com.continuuity.passport.core;

import com.google.common.collect.ImmutableSet;

import java.util.HashSet;
import java.util.Set;


/**
 * Account entity
 */

public class Account {

  private String accountId;
  private String name;
  private Set<User.UserRole> userRoles;
  private Set<Component> components = new HashSet<Component>();
  //TODO: Add billing info

  private void addUserRoles(User.UserRole role) {
    this.userRoles.add(role);
  }

  public Set<User.UserRole> getUserRoles() {
    return this.userRoles;
  }

  /**
   * getComponents for the account
   * @return ImmutableSet of Component
   */
  public ImmutableSet<Component> getComponents() {
    return ImmutableSet.copyOf(this.getComponents());
  }

  private void addComponent(Component c) {
    this.components.add(c);
  }

   public static class Builder {
    //TODO: Add Builders to create build the object
   }

}

@@ -210,16 +210,17 @@
 ountId;%0A
+%0A
   privat
@@ -234,16 +234,17 @@
 g name;%0A
+%0A
   privat
@@ -275,16 +275,17 @@
 rRoles;%0A
+%0A
   privat
@@ -340,16 +340,17 @@
 ent%3E();%0A
+%0A
   //TODO

Add space