39 lines
1017 B
Java
39 lines
1017 B
Java
package eu.dnetlib.uoamonitorservice.entities;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public enum Visibility {
|
|
// Do not rename or remove existring values. This may cause problems with already stored values in DB
|
|
// PUBLIC("public"), RESTRICTED("restricted"), PRIVATE("private");
|
|
|
|
PUBLIC, RESTRICTED, PRIVATE
|
|
// private String label;
|
|
//
|
|
// private Visibility(String label) {
|
|
// this.label = label;
|
|
// }
|
|
//
|
|
// public String getLabel() {
|
|
// return this.label;
|
|
// }
|
|
//
|
|
// //Lookup table
|
|
// private static final Map<String, Visibility> lookup = new HashMap<>();
|
|
//
|
|
// //Populate the lookup table on loading time
|
|
// static
|
|
// {
|
|
// for(Visibility visibility : Visibility.values())
|
|
// {
|
|
// lookup.put(visibility.getLabel(), visibility);
|
|
// }
|
|
// }
|
|
//
|
|
// //This method can be used for reverse lookup purpose
|
|
// public static Visibility get(String visibility)
|
|
// {
|
|
// return lookup.get(visibility);
|
|
// }
|
|
}
|