com.healthcit.analytics.model.Role.java Source code

Java tutorial

Introduction

Here is the source code for com.healthcit.analytics.model.Role.java

Source

/*L
 * Copyright HealthCare IT, Inc.
 *
 * Distributed under the OSI-approved BSD 3-Clause License.
 * See http://ncip.github.com/edct-analytics/LICENSE.txt for details.
 */

package com.healthcit.analytics.model;

import org.springframework.security.core.GrantedAuthority;

public class Role implements GrantedAuthority {

    private static final long serialVersionUID = 7605042967844766652L;

    private Long id;
    private String authority;
    private String displayName;

    public Role() {
        // TODO Auto-generated constructor stub
    }

    public Role(Long id, String authority, String displayName) {
        this.id = id;
        this.authority = authority;
        this.displayName = displayName;
    }

    public Long getId() {
        return this.id;
    }

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

    @Override
    public String getAuthority() {
        return this.authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    public String getDisplayName() {
        return this.displayName;
    }

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

}