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

com.icthh.xm.commons.permission.domain.Privilege Maven / Gradle / Ivy

There is a newer version: 4.0.17
Show newest version
package com.icthh.xm.commons.permission.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import java.util.*;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@EqualsAndHashCode(exclude = {"description", "resources", "customDescription"})
@ToString
@JsonPropertyOrder({"key", "description"})
public class Privilege implements Comparable {

    @JsonIgnore
    private String msName;
    private String key;
    private Map description = new TreeMap<>();
    private Set resources = new TreeSet<>();
    private String customDescription;

    public Privilege() {
    }

    @Override
    public int compareTo(Privilege o) {
        return key.compareTo(o.getKey());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy