/**
 * Revenue Settlement and Sharing System GE
 * Copyright (C) 2011-2014, Javier Lucio - lucio@tid.es
 * Telefonica Investigacion y Desarrollo, S.A.
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program 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 for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 **/
package es.tid.fiware.rss.oauth.model;

import java.util.List;

public class ValidatedToken {

    private String id;
    private String actorId;
    private String nickName;
    private String displayName;
    private String name;
    private String email;
    private List<Role> roles;
    private List<Organization> organizations;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getActorId() {
        return actorId;
    }

    public void setActorId(String actorId) {
        this.actorId = actorId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Organization> getOrganizations() {
        return organizations;
    }

    public void setOrganizations(List<Organization> organizations) {
        this.organizations = organizations;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

}

@@ -144,24 +144,97 @@
 o, S.A.%0A * %0A
+ * Copyright (C) 2015, CoNWeT Lab., Universidad Polit%C3%A9cnica de Madrid%0A *%0A
  * This prog
@@ -293,16 +293,16 @@
  modify%0A
-
  * it un
@@ -1147,24 +1147,80 @@
 ring email;%0A
+    private String app_id;%0A    private String app_slug;%0A
     private 
@@ -2487,17 +2487,265 @@
  email;%0A
-
     %7D%0A%0A
+%09public String getApp_id() %7B%0A%09%09return app_id;%0A%09%7D%0A%0A%09public void setApp_id(String app_id) %7B%0A%09%09this.app_id = app_id;%0A%09%7D%0A%0A%09public String getApp_slug() %7B%0A%09%09return app_slug;%0A%09%7D%0A%0A%09public void setApp_slug(String app_slug) %7B%0A%09%09this.app_slug = app_slug;%0A%09%7D%0A%0A
 %7D%0A

Update ValidatedToken model to new user info structure returned by the idm