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

com.foilen.infra.api.model.permission.Role Maven / Gradle / Ivy

The newest version!
/*
    Foilen Infra API
    https://github.com/foilen/foilen-infra-api
    Copyright (c) 2017-2021 Foilen (https://foilen.com)

    The MIT License
    http://opensource.org/licenses/MIT

 */
package com.foilen.infra.api.model.permission;

import java.util.ArrayList;
import java.util.List;

import com.foilen.smalltools.restapi.model.AbstractApiBase;

public class Role extends AbstractApiBase {

    private String name;

    private List resources = new ArrayList<>();
    private List links = new ArrayList<>();

    public Role() {
    }

    public Role(String name) {
        this.name = name;
    }

    public List getLinks() {
        return links;
    }

    public String getName() {
        return name;
    }

    public List getResources() {
        return resources;
    }

    public Role setLinks(List links) {
        this.links = links;
        return this;
    }

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

    public Role setResources(List resources) {
        this.resources = resources;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy