All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.asu.diging.gilesecosystem.util.users.impl.GecoGrantedAuthority Maven / Gradle / Ivy

Go to download

Utility plugin for the Giles Ecoystem that for example provides utility classes for properties or file management.

The newest version!
package edu.asu.diging.gilesecosystem.util.users.impl;

import org.springframework.security.core.GrantedAuthority;

public class GecoGrantedAuthority implements GrantedAuthority {
    private static final long serialVersionUID = 711167440813692597L;

    public final static String ROLE_USER = "ROLE_USER";
    public final static String ROLE_ADMIN = "ROLE_ADMIN";

    private String roleName;

    public GecoGrantedAuthority(String name) {
        this.roleName = name;
    }

    public GecoGrantedAuthority() {}
 
    public String getAuthority() {
        return roleName;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy