com.unblu.webapi.model.v3.EAuthorizationRole Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of models-v3 Show documentation
Show all versions of models-v3 Show documentation
Java classes corresponding to the JSON bodies
package com.unblu.webapi.model.v3;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* The authorization role is mainly used for access definition of a service
*/
public enum EAuthorizationRole {
/**
* SUPER_ADMIN: Super admin role. Only for unblu or system admins
*/
SUPER_ADMIN("SUPER_ADMIN"),
/**
* PARTNER: Partner role. (no longer used)
*/
PARTNER("PARTNER"),
/**
* TECHNICAL_ADMIN: Technical admin role.
*/
TECHNICAL_ADMIN("TECHNICAL_ADMIN"),
/**
* ADMIN: Admin role. For Admins of the system
*/
ADMIN("ADMIN"),
/**
* SUPERVISOR: Supervisor role. For users which manage teams
*/
SUPERVISOR("SUPERVISOR"),
/**
* REGISTERED_USER: User role. For normal users (agents)
*/
REGISTERED_USER("REGISTERED_USER"),
/**
* WEBUSER: Webuser role. For internal representation of users from the outside
*/
WEBUSER("WEBUSER"),
/**
* ANONYMOUS_USER: Anonymous role. For internal representation of unknown users
*/
ANONYMOUS_USER("ANONYMOUS_USER");
private String value;
EAuthorizationRole(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static EAuthorizationRole fromValue(String value) {
for (EAuthorizationRole b : EAuthorizationRole.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}