content: /*
   *  Copyright (C) 2010-2014 Stichting Akvo (Akvo Foundation)
   *
   *  This file is part of Akvo FLOW.
   *
   *  Akvo FLOW is free software: you can redistribute it and modify it under the terms of
   *  the GNU Affero General Public License (AGPL) as published by the Free Software Foundation,
   *  either version 3 of the License or any later version.
   *
   *  Akvo FLOW is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
   *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   *  See the GNU Affero General Public License included below for more details.
   *
   *  The full license text can also be seen at <http://www.gnu.org/licenses/agpl.html>.
   */
  
  package com.gallatinsystems.user.domain;
  
  import java.util.Set;
  
  import javax.jdo.annotations.PersistenceCapable;
  import javax.jdo.annotations.Persistent;
  
  import com.gallatinsystems.framework.domain.BaseDomain;
  
  /**
   * UserRole represents a role that can be assumed by a user of the application. A role captures a
   * set of permissions that define the level of authorisation for a user.
   *
   * @author emmanuel
   */
  @PersistenceCapable
  public class UserRole extends BaseDomain {
  
      private static final long serialVersionUID = 7519627602488288941L;
  
      @Persistent
      private String name;
  
      @Persistent
      private Set<Permission> permissions;
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public Set<Permission> getPermissions() {
          return permissions;
      }
  
      public void setPermissions(Set<Permission> permissions) {
          this.permissions = permissions;
      }
  
  }
  