de.digitalcollections.cudami.model.api.security.enums.Role Maven / Gradle / Ivy
package de.digitalcollections.cudami.model.api.security.enums;
import org.springframework.security.core.GrantedAuthority;
/**
* A user's role.
*/
public enum Role implements GrantedAuthority {
ADMIN, CONTENT_MANAGER;
/**
* Prefix needed by Spring Security
*/
public static final String PREFIX = "ROLE_";
@Override
public String getAuthority() {
return PREFIX + name();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy