// Path: src/main/java/it/univaq/incipict/profilemanager/business/model/Role.java
// @Entity
// @Table(name = "Role")
// public class Role implements java.io.Serializable {
//    private static final long serialVersionUID = -5400383771991397808L;
//    public static final Long ADMINISTRATOR_ROLE_ID = 1L;
//    public static final Long USER_ROLE_ID = 2L;
// 
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    @Column(name = "id")
//    private Long id;
// 
//    @Column(name = "name", nullable = false, length = 64)
//    private String name;
// 
//    @Column(name = "description", nullable = true, length = 512)
//    private String description;
// 
//    public Long getId() {
//       return id;
//    }
// 
//    public void setId(Long id) {
//       this.id = id;
//    }
// 
//    public String getName() {
//       return name;
//    }
// 
//    public void setName(String name) {
//       this.name = name;
//    }
// 
//    public String getDescription() {
//       return description;
//    }
// 
//    public void setDescription(String description) {
//       this.description = description;
//    }
// 
//    @Override
//    public int hashCode() {
//       final int prime = 31;
//       int result = 1;
//       result = prime * result + ((id == null) ? 0 : id.hashCode());
//       return result;
//    }
// 
//    @Override
//    public boolean equals(Object obj) {
//       if (this == obj)
//          return true;
//       if (obj == null)
//          return false;
//       if (getClass() != obj.getClass())
//          return false;
//       Role other = (Role) obj;
//       if (id == null) {
//          if (other.id != null)
//             return false;
//       } else if (!id.equals(other.id))
//          return false;
//       return true;
//    }
// 
// }


import org.springframework.security.core.GrantedAuthority;
import it.univaq.incipict.profilemanager.business.model.Role;
/*
 * Profile Manager - Copyright (C) 2016  Daniele Tellina
 *
 * Profile Manager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *  
 * Profile Manager 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 General Public License for more details.
 *  
 * You should have received a copy of the GNU General Public License
 * along with Profile Manager.  If not, see <http://www.gnu.org/licenses/>.
 */
package it.univaq.incipict.profilemanager.common.spring.security;



/**
 * 
 * @author Alexander Perucci (http://www.alexanderperucci.com/)
 *
 */
public class GrantedAuthorityImpl implements GrantedAuthority {
   private static final long serialVersionUID = -6656718807102452484L;
// Path: src/main/java/it/univaq/incipict/profilemanager/business/model/Role.java
// @Entity
// @Table(name = "Role")
// public class Role implements java.io.Serializable {
//    private static final long serialVersionUID = -5400383771991397808L;
//    public static final Long ADMINISTRATOR_ROLE_ID = 1L;
//    public static final Long USER_ROLE_ID = 2L;
// 
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    @Column(name = "id")
//    private Long id;
// 
//    @Column(name = "name", nullable = false, length = 64)
//    private String name;
// 
//    @Column(name = "description", nullable = true, length = 512)
//    private String description;
// 
//    public Long getId() {
//       return id;
//    }
// 
//    public void setId(Long id) {
//       this.id = id;
//    }
// 
//    public String getName() {
//       return name;
//    }
// 
//    public void setName(String name) {
//       this.name = name;
//    }
// 
//    public String getDescription() {
//       return description;
//    }
// 
//    public void setDescription(String description) {
//       this.description = description;
//    }
// 
//    @Override
//    public int hashCode() {
//       final int prime = 31;
//       int result = 1;
//       result = prime * result + ((id == null) ? 0 : id.hashCode());
//       return result;
//    }
// 
//    @Override
//    public boolean equals(Object obj) {
//       if (this == obj)
//          return true;
//       if (obj == null)
//          return false;
//       if (getClass() != obj.getClass())
//          return false;
//       Role other = (Role) obj;
//       if (id == null) {
//          if (other.id != null)
//             return false;
//       } else if (!id.equals(other.id))
//          return false;
//       return true;
//    }
// 
// }


// Path: src/main/java/it/univaq/incipict/profilemanager/common/spring/security/GrantedAuthorityImpl.java
import org.springframework.security.core.GrantedAuthority;
import it.univaq.incipict.profilemanager.business.model.Role;

/*
 * Profile Manager - Copyright (C) 2016  Daniele Tellina
 *
 * Profile Manager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *  
 * Profile Manager 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 General Public License for more details.
 *  
 * You should have received a copy of the GNU General Public License
 * along with Profile Manager.  If not, see <http://www.gnu.org/licenses/>.
 */
package it.univaq.incipict.profilemanager.common.spring.security;



/**
 * 
 * @author Alexander Perucci (http://www.alexanderperucci.com/)
 *
 */
public class GrantedAuthorityImpl implements GrantedAuthority {
   private static final long serialVersionUID = -6656718807102452484L;
   private Role role;