org.molgenis.data.plugin.model.PluginPermission Maven / Gradle / Ivy
package org.molgenis.data.plugin.model;
import static java.util.Objects.requireNonNull;
import org.molgenis.security.core.Permission;
public enum PluginPermission implements Permission {
VIEW_PLUGIN("Permission to view this plugin");
private String defaultDescription;
PluginPermission(String defaultDescription) {
this.defaultDescription = requireNonNull(defaultDescription);
}
@Override
public String getDefaultDescription() {
return defaultDescription;
}
}